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-08-08 20:10:56 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-08-08 20:10:56 +0400
commitb044f31012fcd5c7b840453b91b36d0718f0cb5d (patch)
tree48d394de3c70700e7aaddb6286c3a0e1fba9266b /moses/DecodeStepTranslation.cpp
parent4b28daeed2ede54196d570e342546d0884adb28c (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.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/moses/DecodeStepTranslation.cpp b/moses/DecodeStepTranslation.cpp
index d764ded05..788d96f60 100644
--- a/moses/DecodeStepTranslation.cpp
+++ b/moses/DecodeStepTranslation.cpp
@@ -49,7 +49,6 @@ void DecodeStepTranslation::Process(const TranslationOption &inputPartialTranslO
, PartialTranslOptColl &outputPartialTranslOptColl
, TranslationOptionCollection *toc
, bool adhereTableLimit
- , const Phrase &sourcePhrase
, const TargetPhraseCollection *phraseColl) const
{
if (inputPartialTranslOpt.GetTargetPhrase().GetSize() == 0) {
@@ -60,6 +59,7 @@ void DecodeStepTranslation::Process(const TranslationOption &inputPartialTranslO
// normal trans step
const WordsRange &sourceWordsRange = inputPartialTranslOpt.GetSourceWordsRange();
+ const Phrase &sourcePhrase = inputPartialTranslOpt.GetSourcePhrase();
const PhraseDictionary* phraseDictionary =
decodeStep.GetPhraseDictionaryFeature();
const TargetPhrase &inPhrase = inputPartialTranslOpt.GetTargetPhrase();
@@ -211,8 +211,7 @@ void DecodeStepTranslation::ProcessLegacy(const TranslationOption &inputPartialT
, const DecodeStep &decodeStep
, PartialTranslOptColl &outputPartialTranslOptColl
, TranslationOptionCollection *toc
- , bool adhereTableLimit
- , const Phrase &deleteME) const
+ , bool adhereTableLimit) const
{
if (inputPartialTranslOpt.GetTargetPhrase().GetSize() == 0) {
// word deletion