diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2014-05-08 20:51:45 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2014-05-08 20:51:45 +0400 |
commit | 15566f7fc543047b0d3358541de0a384ff4adace (patch) | |
tree | c186a520b0aaf5f83c1f68115a9a043befda4216 /moses/ChartTranslationOption.cpp | |
parent | 3ef5d76860d060d6cc3b0df2070d8d722ba87d31 (diff) |
extend FF framework by add StackVec* argument to 2nd Evaluate(). NULL if phrase-based
Diffstat (limited to 'moses/ChartTranslationOption.cpp')
-rw-r--r-- | moses/ChartTranslationOption.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/moses/ChartTranslationOption.cpp b/moses/ChartTranslationOption.cpp index 8e7d79897..0fece0a09 100644 --- a/moses/ChartTranslationOption.cpp +++ b/moses/ChartTranslationOption.cpp @@ -10,13 +10,15 @@ ChartTranslationOption::ChartTranslationOption(const TargetPhrase &targetPhrase) { } -void ChartTranslationOption::Evaluate(const InputType &input, const InputPath &inputPath) +void ChartTranslationOption::Evaluate(const InputType &input, + const InputPath &inputPath, + const StackVec &stackVec) { const std::vector<FeatureFunction*> &ffs = FeatureFunction::GetFeatureFunctions(); for (size_t i = 0; i < ffs.size(); ++i) { const FeatureFunction &ff = *ffs[i]; - ff.Evaluate(input, inputPath, m_targetPhrase, m_scoreBreakdown); + ff.Evaluate(input, inputPath, m_targetPhrase, &stackVec, m_scoreBreakdown); } } |