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/ChartManager.cpp
parenta311f07d1fcfbc5666ebd1bcd711fb2c80941fc7 (diff)
enum StatelessFeatureType
Diffstat (limited to 'moses/ChartManager.cpp')
-rw-r--r--moses/ChartManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/ChartManager.cpp b/moses/ChartManager.cpp
index f13569970..754badf51 100644
--- a/moses/ChartManager.cpp
+++ b/moses/ChartManager.cpp
@@ -355,7 +355,7 @@ void ChartManager::PreCalculateScores()
StatelessFeatureFunction::GetStatelessFeatureFunctions();
ScoreComponentCollection& breakdown = m_precalculatedScores[*targetPhrase];
for (size_t k = 0; k < sfs.size(); ++k) {
- if (!sfs[k]->ComputeValueInTranslationTable()) {
+ if (sfs[k]->GetStatelessFeatureType() == DependsOnSource) {
sfs[k]->EvaluateChart(context,&breakdown);
}
}