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 <fishandfrolick@gmail.com>2013-05-28 04:25:27 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2013-05-28 04:25:27 +0400
commit805eef6c18eeee511a5f03fd4e4cd8ae96f47eb5 (patch)
treeda1d55846d37ec9c0587ec5bbedad89aef0b6433 /moses/DecodeStepTranslation.cpp
parentae82d02a05a199b8876972640dc831285005f09f (diff)
delete sourcePhrase variable in TargetPhrase class
Diffstat (limited to 'moses/DecodeStepTranslation.cpp')
-rw-r--r--moses/DecodeStepTranslation.cpp7
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);