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-cmd/src/Main.cpp')
-rw-r--r--moses-cmd/src/Main.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/moses-cmd/src/Main.cpp b/moses-cmd/src/Main.cpp
index 4e8fe56f8..ef3c3cd25 100644
--- a/moses-cmd/src/Main.cpp
+++ b/moses-cmd/src/Main.cpp
@@ -117,11 +117,8 @@ int main(int argc, char* argv[])
{
TRACE_ERR("TRANSLATING: " << *source <<"\n");
- TranslationOptionCollection *translationOptionCollection=source->CreateTranslationOptionCollection();
- assert(translationOptionCollection);
-
staticData.InitializeBeforeSentenceProcessing(*source);
- Manager manager(*source, *translationOptionCollection, staticData);
+ Manager manager(*source, staticData);
manager.ProcessSentence();
inputOutput->SetOutput(manager.GetBestHypothesis(), source->GetTranslationId(),
staticData.GetReportSourceSpan(),
@@ -142,7 +139,6 @@ int main(int argc, char* argv[])
// delete source
// inputOutput->Release(source);
staticData.CleanUpAfterSentenceProcessing();
- delete translationOptionCollection;
delete source;
}