diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-01-14 14:07:42 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-01-14 14:07:42 +0300 |
commit | 05ead45e71916c5763c5c4b6375e2ca6838f3995 (patch) | |
tree | c279bd4aacfb31758720ffbaf5aaf62022574a52 /moses/TrainingTask.h | |
parent | 91cb549ccf09fc33122f3d531f47c38ad0e99b3d (diff) |
beautify
Diffstat (limited to 'moses/TrainingTask.h')
-rw-r--r-- | moses/TrainingTask.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/moses/TrainingTask.h b/moses/TrainingTask.h index b67bbcd52..885e8fd16 100644 --- a/moses/TrainingTask.h +++ b/moses/TrainingTask.h @@ -17,23 +17,22 @@ class TrainingTask : public Moses::Task public: TrainingTask(Moses::InputType* source, Moses::IOWrapper &ioWrapper) - : m_source(source) - , m_ioWrapper(ioWrapper) - {} + : m_source(source) + , m_ioWrapper(ioWrapper) { + } - ~TrainingTask() - {} + ~TrainingTask() { + } - void Run() - { + void Run() { StaticData::Instance().InitializeForInput(*m_source); - + std::cerr << *m_source << std::endl; - + TranslationOptionCollection *transOptColl = m_source->CreateTranslationOptionCollection(); transOptColl->CreateTranslationOptions(); delete transOptColl; - + StaticData::Instance().CleanUpAfterSentenceProcessing(*m_source); } |