diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2013-05-28 04:25:27 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2013-05-28 04:25:27 +0400 |
commit | 805eef6c18eeee511a5f03fd4e4cd8ae96f47eb5 (patch) | |
tree | da1d55846d37ec9c0587ec5bbedad89aef0b6433 /moses/DecodeStepTranslation.cpp | |
parent | ae82d02a05a199b8876972640dc831285005f09f (diff) |
delete sourcePhrase variable in TargetPhrase class
Diffstat (limited to 'moses/DecodeStepTranslation.cpp')
-rw-r--r-- | moses/DecodeStepTranslation.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/moses/DecodeStepTranslation.cpp b/moses/DecodeStepTranslation.cpp index 22e0810e1..0acd3479f 100644 --- a/moses/DecodeStepTranslation.cpp +++ b/moses/DecodeStepTranslation.cpp @@ -38,13 +38,12 @@ void DecodeStepTranslation::Process(const TranslationOption &inputPartialTranslO , const DecodeStep &decodeStep , PartialTranslOptColl &outputPartialTranslOptColl , TranslationOptionCollection *toc - , bool adhereTableLimit) const + , bool adhereTableLimit + , const Phrase &src) const { if (inputPartialTranslOpt.GetTargetPhrase().GetSize() == 0) { // word deletion - outputPartialTranslOptColl.Add(new TranslationOption(inputPartialTranslOpt)); - return; } @@ -77,7 +76,7 @@ void DecodeStepTranslation::Process(const TranslationOption &inputPartialTranslO } outPhrase.GetScoreBreakdown().PlusEquals(transScores); - outPhrase.Evaluate(); // need to do this as all non-transcores would be screwed up + outPhrase.Evaluate(src); // need to do this as all non-transcores would be screwed up outPhrase.MergeFactors(targetPhrase, m_newOutputFactors); |