mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
fixed operator [] adding bug
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@4216 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
e95c004145
commit
3824ca3ea2
@ -302,7 +302,7 @@ bool Parameter::Validate()
|
||||
}
|
||||
}
|
||||
|
||||
if (m_setting["lmodel-file"].size() * (m_setting["lmodel-oov-feature"].size() ? 2 : 1)
|
||||
if (m_setting["lmodel-file"].size() * (m_setting.find("lmodel-oov-feature") != m_setting.end() ? 2 : 1)
|
||||
!= m_setting["weight-l"].size()) {
|
||||
stringstream errorMsg("");
|
||||
errorMsg << "Config and parameters specify "
|
||||
|
Loading…
Reference in New Issue
Block a user