mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-10-26 19:37:58 +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();
|
||||
} else if (!m_filePathSource.empty() || !m_filePathTarget.empty()) {
|
||||
return;
|
||||
} else {
|
||||
// restricted source word vocabulary
|
||||
ifstream inFileSource(m_filePathSource.c_str());
|
||||
UTIL_THROW_IF2(!inFileSource, "could not open file " << m_filePathSource);
|
||||
|
Loading…
Reference in New Issue
Block a user