diff options
author | Kenneth Heafield <github@kheafield.com> | 2012-11-15 22:24:21 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2012-11-16 02:10:30 +0400 |
commit | 6a3fdcd8c043148769736d113562fc8c92e917ca (patch) | |
tree | 1dd9330721a398220a7f443567e9aa728c739bbb /moses/Incremental.h | |
parent | 9340f9f465a29e7653f9285963bcad0fe4a60ec6 (diff) |
Rename Incremental/Manager.cpp to just Incremental.cpp
Diffstat (limited to 'moses/Incremental.h')
-rw-r--r-- | moses/Incremental.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/moses/Incremental.h b/moses/Incremental.h new file mode 100644 index 000000000..9661ec021 --- /dev/null +++ b/moses/Incremental.h @@ -0,0 +1,38 @@ +#pragma once + +#include "lm/word_index.hh" + +#include "moses/ChartCellCollection.h" +#include "moses/ChartParser.h" + +#include <vector> +#include <string> + +namespace Moses { +class InputType; +class TranslationSystem; +namespace Incremental { + +class Manager { + public: + Manager(const InputType &source, const TranslationSystem &system); + + ~Manager(); + + template <class Model> void LMCallback(const Model &model, const std::vector<lm::WordIndex> &words); + + void ProcessSentence(); + + const std::string &String() const { return output_; } + + private: + const InputType &source_; + const TranslationSystem &system_; + ChartCellCollectionBase cells_; + ChartParser parser_; + + std::string output_; +}; +} // namespace Incremental +} // namespace Moses + |