diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-10-01 20:43:51 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-10-01 20:43:51 +0400 |
commit | 8d0f74c6e4f67fb4e7f45bc130562ca2b7f3528b (patch) | |
tree | 3a6b17b5250b25440456a4f6a0aa1b9291eec552 /moses/TranslationTask.h | |
parent | f205f5e99c2b304472bfe38d80829ddf880d0a18 (diff) |
merge TranslationTask and IOWrapper. Move m_singleBestOutputCollector into IOWrapper
Diffstat (limited to 'moses/TranslationTask.h')
-rw-r--r-- | moses/TranslationTask.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/moses/TranslationTask.h b/moses/TranslationTask.h index 05b257a6a..474bc014d 100644 --- a/moses/TranslationTask.h +++ b/moses/TranslationTask.h @@ -14,6 +14,8 @@ namespace Moses namespace MosesCmd { +class IOWrapper; + /** Translates a sentence. * - calls the search (Manager) * - applies the decision rule @@ -24,8 +26,8 @@ class TranslationTask : public Moses::Task public: - TranslationTask(size_t lineNumber, - Moses::InputType* source, Moses::OutputCollector* outputCollector, Moses::OutputCollector* nbestCollector, + TranslationTask(size_t lineNumber, Moses::InputType* source, MosesCmd::IOWrapper &ioWrapper, + Moses::OutputCollector* nbestCollector, Moses::OutputCollector* latticeSamplesCollector, Moses::OutputCollector* wordGraphCollector, Moses::OutputCollector* searchGraphCollector, Moses::OutputCollector* detailedTranslationCollector, @@ -44,7 +46,8 @@ public: private: Moses::InputType* m_source; size_t m_lineNumber; - Moses::OutputCollector* m_outputCollector; + MosesCmd::IOWrapper &m_ioWrapper; + Moses::OutputCollector* m_nbestCollector; Moses::OutputCollector* m_latticeSamplesCollector; Moses::OutputCollector* m_wordGraphCollector; |