mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
my change to weight-wt
This commit is contained in:
parent
338b7656a6
commit
0c5d000192
@ -1852,7 +1852,7 @@ bool StaticData::LoadWordTranslationFeature()
|
||||
return true;
|
||||
|
||||
const vector<float> &weight = Scan<float>(m_parameter->GetParam("weight-wt"));
|
||||
if (weight.size() != 1) {
|
||||
if (weight.size() > 1) {
|
||||
std::cerr << "Only one sparse producer weight allowed for the word translation feature" << std::endl;
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user