diff --git a/moses/LM/bilingual-lm/BiLM_NPLM.cpp b/moses/LM/bilingual-lm/BiLM_NPLM.cpp index 213c40e37..964313a48 100644 --- a/moses/LM/bilingual-lm/BiLM_NPLM.cpp +++ b/moses/LM/bilingual-lm/BiLM_NPLM.cpp @@ -21,7 +21,7 @@ BilingualLM_NPLM::BilingualLM_NPLM(const std::string &line) float BilingualLM_NPLM::Score(std::vector& source_words, std::vector& target_words) const { source_words.reserve(source_ngrams+target_ngrams+1); source_words.insert( source_words.end(), target_words.begin(), target_words.end() ); - return m_neuralLM->lookup_ngram(source_words); + return FloorScore(m_neuralLM->lookup_ngram(source_words)); } const Word& BilingualLM_NPLM::getNullWord() const {