diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-08 18:58:01 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-08 18:58:01 +0400 |
commit | 4b28daeed2ede54196d570e342546d0884adb28c (patch) | |
tree | fafa7bc3ede57a6e49a246edd975f237570837a0 /moses/DecodeStepTranslation.cpp | |
parent | a60bbbf892c982c5a93549142166db0d654c7e11 (diff) |
consistently set source phrase in translation options as soon as the trans opt is created
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 622a2247f..d764ded05 100644 --- a/moses/DecodeStepTranslation.cpp +++ b/moses/DecodeStepTranslation.cpp @@ -212,7 +212,7 @@ void DecodeStepTranslation::ProcessLegacy(const TranslationOption &inputPartialT , PartialTranslOptColl &outputPartialTranslOptColl , TranslationOptionCollection *toc , bool adhereTableLimit - , const Phrase &sourcePhrase) const + , const Phrase &deleteME) const { if (inputPartialTranslOpt.GetTargetPhrase().GetSize() == 0) { // word deletion @@ -222,6 +222,7 @@ void DecodeStepTranslation::ProcessLegacy(const TranslationOption &inputPartialT // normal trans step const WordsRange &sourceWordsRange = inputPartialTranslOpt.GetSourceWordsRange(); + const Phrase &sourcePhrase = inputPartialTranslOpt.GetSourcePhrase(); const PhraseDictionary* phraseDictionary = decodeStep.GetPhraseDictionaryFeature(); const TargetPhrase &inPhrase = inputPartialTranslOpt.GetTargetPhrase(); |