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-12-17 18:54:12 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-12-17 18:54:12 +0400
commite8b2d2a2694b29bbc4c4d5671236d886a67f3d29 (patch)
treef25a51ff22a524ec0d098e87aefff0f1eb814562 /moses/ChartHypothesis.cpp
parentea8837b5b9a375b6e6716e965c9331e3644a0c39 (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.cpp2
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