bug - should get score for translation rule from the translation option, not the target phrase.

This commit is contained in:
Hieu Hoang 2013-12-17 14:54:12 +00:00
parent ea8837b5b9
commit e8b2d2a269

View File

@ -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