diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-24 19:04:38 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-24 19:04:38 +0400 |
commit | d2738122315fb7185a69001d281db66be0a0d6fc (patch) | |
tree | a54d4d679d51567ac21e20588cb6b8f5c0fb3ddb /moses/ChartHypothesis.cpp | |
parent | 78591e53e450ed5659d7ed26024acac7bd9756f2 (diff) |
delete enum StatelessFeatureType. Features can be multiple types at once. Just overload the Evaluate() function you need
Diffstat (limited to 'moses/ChartHypothesis.cpp')
-rw-r--r-- | moses/ChartHypothesis.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/ChartHypothesis.cpp b/moses/ChartHypothesis.cpp index 2db08b503..e7d02e497 100644 --- a/moses/ChartHypothesis.cpp +++ b/moses/ChartHypothesis.cpp @@ -166,9 +166,9 @@ void ChartHypothesis::CalcScore() // cached in the translation option-- there is no principled distinction const std::vector<const StatelessFeatureFunction*>& sfs = StatelessFeatureFunction::GetStatelessFeatureFunctions(); - for (unsigned i = 0; i < sfs.size(); ++i) - if (sfs[i]->GetStatelessFeatureType() == RequiresSegmentation) - sfs[i]->EvaluateChart(ChartBasedFeatureContext(this),&m_scoreBreakdown); + for (unsigned i = 0; i < sfs.size(); ++i) { + sfs[i]->EvaluateChart(ChartBasedFeatureContext(this),&m_scoreBreakdown); + } const std::vector<const StatefulFeatureFunction*>& ffs = StatefulFeatureFunction::GetStatefulFeatureFunctions(); |