mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
WordTranslationFeature: fix loading of word lists
This commit is contained in:
parent
5f06e3310f
commit
ebb18b2dc2
@ -111,8 +111,7 @@ void WordTranslationFeature::Load(AllOptions::ptr const& opts)
|
|||||||
}
|
}
|
||||||
|
|
||||||
inFileSource.close();
|
inFileSource.close();
|
||||||
} else if (!m_filePathSource.empty() || !m_filePathTarget.empty()) {
|
} else {
|
||||||
return;
|
|
||||||
// restricted source word vocabulary
|
// restricted source word vocabulary
|
||||||
ifstream inFileSource(m_filePathSource.c_str());
|
ifstream inFileSource(m_filePathSource.c_str());
|
||||||
UTIL_THROW_IF2(!inFileSource, "could not open file " << m_filePathSource);
|
UTIL_THROW_IF2(!inFileSource, "could not open file " << m_filePathSource);
|
||||||
|
Loading…
Reference in New Issue
Block a user