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 <hieuhoang@gmail.com>2014-07-10 02:41:08 +0400
committerHieu Hoang <hieuhoang@gmail.com>2014-07-10 02:41:08 +0400
commit12a14221e283e6e1d69f14d35437f36b9a728e50 (patch)
tree2534bf2ed996393d4dffb650e36b9e183cea4316 /moses/Hypothesis.cpp
parent587b5fd716f0cfc5207bbd790accd38ab1ae0ad6 (diff)
rename Evaluate() to EvaluateWhenApplied()
Diffstat (limited to 'moses/Hypothesis.cpp')
-rw-r--r--moses/Hypothesis.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/Hypothesis.cpp b/moses/Hypothesis.cpp
index 400fd0e0f..61e7c3f71 100644
--- a/moses/Hypothesis.cpp
+++ b/moses/Hypothesis.cpp
@@ -211,7 +211,7 @@ void Hypothesis::EvaluateWith(const StatefulFeatureFunction &sfff,
{
const StaticData &staticData = StaticData::Instance();
if (! staticData.IsFeatureFunctionIgnored( sfff )) {
- m_ffStates[state_idx] = sfff.Evaluate(
+ m_ffStates[state_idx] = sfff.EvaluateWhenApplied(
*this,
m_prevHypo ? m_prevHypo->m_ffStates[state_idx] : NULL,
&m_scoreBreakdown);
@@ -222,7 +222,7 @@ void Hypothesis::EvaluateWith(const StatelessFeatureFunction& slff)
{
const StaticData &staticData = StaticData::Instance();
if (! staticData.IsFeatureFunctionIgnored( slff )) {
- slff.Evaluate(*this, &m_scoreBreakdown);
+ slff.EvaluateWhenApplied(*this, &m_scoreBreakdown);
}
}
@@ -254,7 +254,7 @@ void Hypothesis::Evaluate(const SquareMatrix &futureScore)
const StatefulFeatureFunction &ff = *ffs[i];
const StaticData &staticData = StaticData::Instance();
if (! staticData.IsFeatureFunctionIgnored(ff)) {
- m_ffStates[i] = ff.Evaluate(*this,
+ m_ffStates[i] = ff.EvaluateWhenApplied(*this,
m_prevHypo ? m_prevHypo->m_ffStates[i] : NULL,
&m_scoreBreakdown);
}