diff options
Diffstat (limited to 'moses/TranslationTask.h')
-rw-r--r-- | moses/TranslationTask.h | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/moses/TranslationTask.h b/moses/TranslationTask.h index 0225f75b0..5eff7b825 100644 --- a/moses/TranslationTask.h +++ b/moses/TranslationTask.h @@ -26,7 +26,7 @@ class TranslationTask : public Moses::Task public: - TranslationTask(Moses::InputType* source, Moses::IOWrapper &ioWrapper, int pbOrChart); + TranslationTask(Moses::InputType* source, Moses::IOWrapper &ioWrapper); ~TranslationTask(); @@ -36,33 +36,9 @@ public: private: - int m_pbOrChart; // 1=pb. 2=chart Moses::InputType* m_source; Moses::IOWrapper &m_ioWrapper; - void RunPb(); - void RunChart(); - - - template<typename Parser> - void DecodeS2T() { - const StaticData &staticData = StaticData::Instance(); - const std::size_t translationId = m_source->GetTranslationId(); - Syntax::S2T::Manager<Parser> manager(*m_source); - manager.Decode(); - // 1-best - manager.OutputBest(m_ioWrapper.GetSingleBestOutputCollector()); - - // n-best - manager.OutputNBest(m_ioWrapper.GetNBestOutputCollector()); - - // Write 1-best derivation (-translation-details / -T option). - - manager.OutputDetailedTranslationReport(m_ioWrapper.GetDetailedTranslationCollector()); - - manager.OutputUnknowns(m_ioWrapper.GetUnknownsCollector()); - } - }; |