diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2013-08-30 18:49:00 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2013-08-30 18:49:00 +0400 |
commit | 03fd06b38b2d21ac6d0c8ac14a2bdce13fcb9feb (patch) | |
tree | 55712b252e6b69962baed2d8ffa6d1e2e9b3d73b /moses/FF/PhrasePairFeature.h | |
parent | 70eb3f13b9d0a77d7826a6f8eaeab75ed160138e (diff) |
convert Evaluate() methods into abstract, rather than empty functions. Every FF must implement them all
Diffstat (limited to 'moses/FF/PhrasePairFeature.h')
-rw-r--r-- | moses/FF/PhrasePairFeature.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/moses/FF/PhrasePairFeature.h b/moses/FF/PhrasePairFeature.h index eb94fb48b..e373d8ec8 100644 --- a/moses/FF/PhrasePairFeature.h +++ b/moses/FF/PhrasePairFeature.h @@ -45,6 +45,16 @@ public: throw std::logic_error("PhrasePairFeature not valid in chart decoder"); } + 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 Load(); void SetParameter(const std::string& key, const std::string& value); |