diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2012-12-19 19:38:57 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2012-12-19 19:38:57 +0400 |
commit | 5d9980af918fb30a7ebb198e2eca3c24f99180b8 (patch) | |
tree | b582ab42cc57341d0488d211ce47b4c58d737aae /moses/TranslationOption.cpp | |
parent | c2d9d84ba02f21fb191b966f2635d078fd130059 (diff) |
move WordPenalty to staticData
Diffstat (limited to 'moses/TranslationOption.cpp')
-rw-r--r-- | moses/TranslationOption.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/TranslationOption.cpp b/moses/TranslationOption.cpp index d9b4547a7..d13188386 100644 --- a/moses/TranslationOption.cpp +++ b/moses/TranslationOption.cpp @@ -116,7 +116,7 @@ void TranslationOption::CalcScore(const TranslationSystem* system) // future score m_futureScore = retFullScore - ngramScore + oovScore + m_scoreBreakdown.InnerProduct(StaticData::Instance().GetAllWeights()) - phraseSize * - system->GetWeightWordPenalty(); + StaticData::Instance().GetWeightWordPenalty(); } TO_STRING_BODY(TranslationOption); |