diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2012-12-20 20:38:15 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2012-12-20 20:38:15 +0400 |
commit | efbc8bb6c47cde67274eb3038c0cf4c9e22b9600 (patch) | |
tree | 86d90e83d5fd0ab53454be60a46b74e77bf23fef /moses/TranslationOption.cpp | |
parent | 874be94d72468fe2c4ecee9eb7abef01949ed6fa (diff) |
move language model from TranslationSystem back to StaticData
Diffstat (limited to 'moses/TranslationOption.cpp')
-rw-r--r-- | moses/TranslationOption.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/TranslationOption.cpp b/moses/TranslationOption.cpp index d13188386..2d273fe06 100644 --- a/moses/TranslationOption.cpp +++ b/moses/TranslationOption.cpp @@ -107,9 +107,9 @@ void TranslationOption::CalcScore(const TranslationSystem* system) float retFullScore = 0; float oovScore = 0; - const LMList &allLM = system->GetLanguageModels(); + const LMList &lmList = StaticData::Instance().GetLMList(); - allLM.CalcScore(GetTargetPhrase(), retFullScore, ngramScore, oovScore, &m_scoreBreakdown); + lmList.CalcScore(GetTargetPhrase(), retFullScore, ngramScore, oovScore, &m_scoreBreakdown); size_t phraseSize = GetTargetPhrase().GetSize(); |