Fixed bug with dub option.

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1873 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
mfederico 2008-08-05 11:44:50 +00:00
parent 5dee5d04aa
commit 7a0e5811ba

View File

@ -118,7 +118,7 @@ bool LanguageModelIRST::Load(const std::string &filePath,
m_lmtb->init_statecache();
m_lmtb->init_lmtcaches(m_lmtb->maxlevel()>2?m_lmtb->maxlevel()-1:2);
m_lmtb->setlogOOVpenalty(m_lmtb_dub);
if (m_lmtb_dub >0) m_lmtb->setlogOOVpenalty(m_lmtb_dub);
return true;
}