Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEva Hasler <ehasler@saxnot.inf.ed.ac.uk>2012-11-30 22:04:50 +0400
committerEva Hasler <ehasler@saxnot.inf.ed.ac.uk>2012-11-30 22:04:50 +0400
commit650d31fe73bba9e73902d09ebb8a3bd960e02497 (patch)
tree8e78ab503f9cff07de4d7e6a8558086d7581aa3f /moses/StaticData.cpp
parenta07f71d095b86a4c635adc81e8f4bd692d78cc6e (diff)
don't need to specify weight-wt
Diffstat (limited to 'moses/StaticData.cpp')
-rw-r--r--moses/StaticData.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/StaticData.cpp b/moses/StaticData.cpp
index 6190541b5..2b6f301d8 100644
--- a/moses/StaticData.cpp
+++ b/moses/StaticData.cpp
@@ -1663,7 +1663,7 @@ bool StaticData::LoadPhraseBoundaryFeature()
{
const vector<float> &weight = Scan<float>(m_parameter->GetParam("weight-pb"));
if (weight.size() > 1) {
- std::cerr << "only one sparse producer weight allowed for the phrase boundary feature" << std::endl;
+ std::cerr << "Only one sparse producer weight allowed for the phrase boundary feature" << std::endl;
return false;
}
@@ -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;
}