diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-04-30 22:27:49 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-04-30 22:27:49 +0400 |
commit | 3e64d4b341e7d23c579b5c46368240978533063a (patch) | |
tree | db0d71f4841bf7ca506bc1fb6f9cc2484e33ccd7 /moses/ChartHypothesis.cpp | |
parent | a311f07d1fcfbc5666ebd1bcd711fb2c80941fc7 (diff) |
enum StatelessFeatureType
Diffstat (limited to 'moses/ChartHypothesis.cpp')
-rw-r--r-- | moses/ChartHypothesis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/ChartHypothesis.cpp b/moses/ChartHypothesis.cpp index 3c22f2995..f3c527595 100644 --- a/moses/ChartHypothesis.cpp +++ b/moses/ChartHypothesis.cpp @@ -168,7 +168,7 @@ void ChartHypothesis::CalcScore() const std::vector<const StatelessFeatureFunction*>& sfs = StatelessFeatureFunction::GetStatelessFeatureFunctions(); for (unsigned i = 0; i < sfs.size(); ++i) - if (sfs[i]->ComputeValueInTranslationOption() == false) + if (sfs[i]->GetStatelessFeatureType() == NotCacheable) sfs[i]->EvaluateChart(ChartBasedFeatureContext(this),&m_scoreBreakdown); const std::vector<const StatefulFeatureFunction*>& ffs = |