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>2013-08-30 18:49:00 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-08-30 18:49:00 +0400
commit03fd06b38b2d21ac6d0c8ac14a2bdce13fcb9feb (patch)
tree55712b252e6b69962baed2d8ffa6d1e2e9b3d73b /moses/FF/TargetNgramFeature.h
parent70eb3f13b9d0a77d7826a6f8eaeab75ed160138e (diff)
convert Evaluate() methods into abstract, rather than empty functions. Every FF must implement them all
Diffstat (limited to 'moses/FF/TargetNgramFeature.h')
-rw-r--r--moses/FF/TargetNgramFeature.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/moses/FF/TargetNgramFeature.h b/moses/FF/TargetNgramFeature.h
index 08a15514d..cb9cd8745 100644
--- a/moses/FF/TargetNgramFeature.h
+++ b/moses/FF/TargetNgramFeature.h
@@ -191,6 +191,17 @@ public:
virtual FFState* EvaluateChart(const ChartHypothesis& cur_hypo, int featureId,
ScoreComponentCollection* accumulator) const;
+
+ void Evaluate(const InputType &input
+ , const InputPath &inputPath
+ , ScoreComponentCollection &scoreBreakdown) const
+ {}
+ void Evaluate(const Phrase &source
+ , const TargetPhrase &targetPhrase
+ , ScoreComponentCollection &scoreBreakdown
+ , ScoreComponentCollection &estimatedFutureScore) const
+ {}
+
void SetParameter(const std::string& key, const std::string& value);
private: