diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-04-25 21:24:02 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-04-25 21:24:02 +0400 |
commit | 75c85acd5e81e741345a41371010b25769b9f4b2 (patch) | |
tree | 0f249d7d40d85a8dd394381132d6da5457b38476 /moses/DecodeStepTranslation.cpp | |
parent | b53b93f09f589abddecc9e563eca46b9c1c67c06 (diff) |
delete PhraseDictionaryMemory. Use PhraseDictionarySCFG
Diffstat (limited to 'moses/DecodeStepTranslation.cpp')
-rw-r--r-- | moses/DecodeStepTranslation.cpp | 3 |
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"); } |