WordTranslationFeature: fix loading of word lists

This commit is contained in:
Matthias Huck 2016-02-20 00:39:02 +00:00
parent 5f06e3310f
commit ebb18b2dc2

View File

@ -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);