my change to weight-wt

This commit is contained in:
phikoehn 2012-12-01 13:44:57 +00:00
parent 338b7656a6
commit 0c5d000192

View File

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