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:
authorHieu Hoang <hieu@hoang.co.uk>2013-04-30 22:27:49 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-04-30 22:27:49 +0400
commit3e64d4b341e7d23c579b5c46368240978533063a (patch)
treedb0d71f4841bf7ca506bc1fb6f9cc2484e33ccd7 /moses/ChartHypothesis.cpp
parenta311f07d1fcfbc5666ebd1bcd711fb2c80941fc7 (diff)
enum StatelessFeatureType
Diffstat (limited to 'moses/ChartHypothesis.cpp')
-rw-r--r--moses/ChartHypothesis.cpp2
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 =