diff options
Diffstat (limited to 'moses/src/LM/Implementation.cpp')
-rw-r--r-- | moses/src/LM/Implementation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/src/LM/Implementation.cpp b/moses/src/LM/Implementation.cpp index 2fe4bc122..94663cc9f 100644 --- a/moses/src/LM/Implementation.cpp +++ b/moses/src/LM/Implementation.cpp @@ -395,11 +395,11 @@ FFState* LanguageModelImplementation::EvaluateChart(const ChartHypothesis& hypo, // loop over rule for (size_t phrasePos = 0, wordPos = 0; - phrasePos < target.GetSize(); + phrasePos < hypo.GetCurrTargetPhrase().GetSize(); phrasePos++) { // consult rule for either word or non-terminal - const Word &word = target.GetWord(phrasePos); + const Word &word = hypo.GetCurrTargetPhrase().GetWord(phrasePos); // regular word if (!word.IsNonTerminal()) |