mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 21:42:19 +03:00
tuneable parameter is set in base class
This commit is contained in:
parent
59fd278ef7
commit
31eb7b9693
@ -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;
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user