Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'moses/TrainingTask.h')
-rw-r--r--moses/TrainingTask.h19
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);
}