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:
authorMatthias Huck <huck@i6.informatik.rwth-aachen.de>2014-12-03 23:04:26 +0300
committerMatthias Huck <huck@i6.informatik.rwth-aachen.de>2014-12-03 23:04:26 +0300
commit24a8a6a51104c8518fcb8d252f83ff580986c2db (patch)
tree1fc5f912f7623dda8d1a1f08fb0e9acfff32cba8 /moses/FF/FeatureFunction.cpp
parent5bbd30ec12e4bcb88e29246e4fce71cc33528d44 (diff)
PhraseOrientationFeature
Diffstat (limited to 'moses/FF/FeatureFunction.cpp')
-rw-r--r--moses/FF/FeatureFunction.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/moses/FF/FeatureFunction.cpp b/moses/FF/FeatureFunction.cpp
index 5d4e0f91e..4b5faa91e 100644
--- a/moses/FF/FeatureFunction.cpp
+++ b/moses/FF/FeatureFunction.cpp
@@ -45,6 +45,7 @@ void FeatureFunction::CallChangeSource(InputType *&input)
FeatureFunction::
FeatureFunction(const std::string& line)
: m_tuneable(true)
+ , m_verbosity(1)
, m_numScoreComponents(1)
{
Initialize(line);
@@ -54,6 +55,7 @@ FeatureFunction::
FeatureFunction(size_t numScoreComponents,
const std::string& line)
: m_tuneable(true)
+ , m_verbosity(0)
, m_numScoreComponents(numScoreComponents)
{
Initialize(line);
@@ -115,6 +117,8 @@ void FeatureFunction::SetParameter(const std::string& key, const std::string& va
{
if (key == "tuneable") {
m_tuneable = Scan<bool>(value);
+ } else if (key == "verbosity") {
+ m_verbosity = Scan<size_t>(value);
} else if (key == "filterable") { //ignore
} else {
UTIL_THROW(util::Exception, "Unknown argument " << key << "=" << value);