mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
don't load file if none is specified
This commit is contained in:
parent
585786d26b
commit
03d5c670e7
@ -36,10 +36,12 @@ m_unrestricted(true)
|
||||
}
|
||||
|
||||
// load word list for restricted feature set
|
||||
cerr << "loading source word deletion word list from " << filename << endl;
|
||||
if (!Load(filename)) {
|
||||
UserMessage::Add("Unable to load word list for source word deletion feature from file " + filename);
|
||||
//return false;
|
||||
if (filename != "") {
|
||||
cerr << "loading source word deletion word list from " << filename << endl;
|
||||
if (!Load(filename)) {
|
||||
UserMessage::Add("Unable to load word list for source word deletion feature from file " + filename);
|
||||
//return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user