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:
authorHieu Hoang <hieu@hoang.co.uk>2013-04-25 21:24:02 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-04-25 21:24:02 +0400
commit75c85acd5e81e741345a41371010b25769b9f4b2 (patch)
tree0f249d7d40d85a8dd394381132d6da5457b38476 /moses/DecodeStepTranslation.cpp
parentb53b93f09f589abddecc9e563eca46b9c1c67c06 (diff)
delete PhraseDictionaryMemory. Use PhraseDictionarySCFG
Diffstat (limited to 'moses/DecodeStepTranslation.cpp')
-rw-r--r--moses/DecodeStepTranslation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/moses/DecodeStepTranslation.cpp b/moses/DecodeStepTranslation.cpp
index 1145dccd0..947b3c5f1 100644
--- a/moses/DecodeStepTranslation.cpp
+++ b/moses/DecodeStepTranslation.cpp
@@ -116,7 +116,8 @@ void DecodeStepTranslation::ProcessInitialTranslation(const TranslationSystem* s
for (iterTargetPhrase = phraseColl->begin() ; iterTargetPhrase != iterEnd ; ++iterTargetPhrase) {
const TargetPhrase &targetPhrase = **iterTargetPhrase;
- outputPartialTranslOptColl.Add (system, new TranslationOption(wordsRange, targetPhrase, source) );
+ TranslationOption *transOpt = new TranslationOption(wordsRange, targetPhrase, source);
+ outputPartialTranslOptColl.Add (system, transOpt);
VERBOSE(3,"\t" << targetPhrase << "\n");
}