diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-12-17 18:54:12 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-12-17 18:54:12 +0400 |
commit | e8b2d2a2694b29bbc4c4d5671236d886a67f3d29 (patch) | |
tree | f25a51ff22a524ec0d098e87aefff0f1eb814562 /moses/ChartHypothesis.cpp | |
parent | ea8837b5b9a375b6e6716e965c9331e3644a0c39 (diff) |
bug - should get score for translation rule from the translation option, not the target phrase.
Diffstat (limited to 'moses/ChartHypothesis.cpp')
-rw-r--r-- | moses/ChartHypothesis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/ChartHypothesis.cpp b/moses/ChartHypothesis.cpp index 07660396b..01eb49ccc 100644 --- a/moses/ChartHypothesis.cpp +++ b/moses/ChartHypothesis.cpp @@ -175,7 +175,7 @@ void ChartHypothesis::Evaluate() } // scores from current translation rule. eg. translation models & word penalty - const ScoreComponentCollection &scoreBreakdown = GetCurrTargetPhrase().GetScoreBreakdown(); + const ScoreComponentCollection &scoreBreakdown = GetTranslationOption().GetScores(); m_scoreBreakdown.PlusEquals(scoreBreakdown); // compute values of stateless feature functions that were not |