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 <fishandfrolick@gmail.com>2012-12-31 04:57:21 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2012-12-31 04:57:21 +0400
commit6885e04b42a542bc67b4a00329d50b40f8361398 (patch)
tree3c1ec23f64cc18470a594fbbc691c50a03cc9f2c /moses/ChartHypothesis.cpp
parentd24485e4a3a8fa0f15759cd52a714623074922a6 (diff)
move feature function variables into FeatureFunction.h
Diffstat (limited to 'moses/ChartHypothesis.cpp')
-rw-r--r--moses/ChartHypothesis.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/ChartHypothesis.cpp b/moses/ChartHypothesis.cpp
index 562b7b995..3c22f2995 100644
--- a/moses/ChartHypothesis.cpp
+++ b/moses/ChartHypothesis.cpp
@@ -51,7 +51,7 @@ ChartHypothesis::ChartHypothesis(const ChartTranslationOptions &transOpt,
ChartManager &manager)
:m_targetPhrase(*(item.GetTranslationDimension().GetTargetPhrase()))
,m_currSourceWordsRange(transOpt.GetSourceWordsRange())
- ,m_ffStates(StaticData::Instance().GetStatefulFeatureFunctions().size())
+ ,m_ffStates(StatefulFeatureFunction::GetStatefulFeatureFunctions().size())
,m_arcList(NULL)
,m_winningHypo(NULL)
,m_manager(manager)
@@ -166,13 +166,13 @@ void ChartHypothesis::CalcScore()
// compute values of stateless feature functions that were not
// cached in the translation option-- there is no principled distinction
const std::vector<const StatelessFeatureFunction*>& sfs =
- StaticData::Instance().GetStatelessFeatureFunctions();
+ StatelessFeatureFunction::GetStatelessFeatureFunctions();
for (unsigned i = 0; i < sfs.size(); ++i)
if (sfs[i]->ComputeValueInTranslationOption() == false)
sfs[i]->EvaluateChart(ChartBasedFeatureContext(this),&m_scoreBreakdown);
const std::vector<const StatefulFeatureFunction*>& ffs =
- StaticData::Instance().GetStatefulFeatureFunctions();
+ StatefulFeatureFunction::GetStatefulFeatureFunctions();
for (unsigned i = 0; i < ffs.size(); ++i)
m_ffStates[i] = ffs[i]->EvaluateChart(*this,i,&m_scoreBreakdown);