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-04 22:18:20 +0300
committerMatthias Huck <huck@i6.informatik.rwth-aachen.de>2014-12-04 22:18:20 +0300
commit31eb7b969329d3b195943d364d9c188d48a62530 (patch)
tree5e2dc0b25881976bdc8c7f7c74a6591bd18e25f7
parent59fd278ef7f71da99076113fac1bd6c72e35b7ec (diff)
tuneable parameter is set in base class
-rw-r--r--moses/FF/PhraseOrientationFeature.cpp6
-rw-r--r--moses/FF/SoftSourceSyntacticConstraintsFeature.cpp2
2 files changed, 1 insertions, 7 deletions
diff --git a/moses/FF/PhraseOrientationFeature.cpp b/moses/FF/PhraseOrientationFeature.cpp
index 4e2a8c637..0727330c0 100644
--- a/moses/FF/PhraseOrientationFeature.cpp
+++ b/moses/FF/PhraseOrientationFeature.cpp
@@ -40,11 +40,7 @@ PhraseOrientationFeature::PhraseOrientationFeature(const std::string &line)
void PhraseOrientationFeature::SetParameter(const std::string& key, const std::string& value)
{
- if (key == "tuneable")
- {
- m_tuneable = Scan<bool>(value);
- }
- else if (key == "glueTargetLHS")
+ if (key == "glueTargetLHS")
{
m_glueTargetLHSStr = value;
}
diff --git a/moses/FF/SoftSourceSyntacticConstraintsFeature.cpp b/moses/FF/SoftSourceSyntacticConstraintsFeature.cpp
index fe1144465..39156b09a 100644
--- a/moses/FF/SoftSourceSyntacticConstraintsFeature.cpp
+++ b/moses/FF/SoftSourceSyntacticConstraintsFeature.cpp
@@ -35,8 +35,6 @@ void SoftSourceSyntacticConstraintsFeature::SetParameter(const std::string& key,
m_coreSourceLabelSetFile = value;
} else if (key == "targetSourceLeftHandSideJointCountFile") {
m_targetSourceLHSJointCountFile = value;
- } else if (key == "tuneable") {
- m_tuneable = Scan<bool>(value);
} else if (key == "featureVariant") {
m_featureVariant = Scan<size_t>(value); // 0: only dense features, 1: no mismatches (also set weights 1 0 0 and tuneable=false), 2: with sparse features, 3: with sparse features for core labels only
} else {