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-09-25 23:19:05 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-09-25 23:19:05 +0400
commit56c1224c28621b0b991c8b495397407f04412d76 (patch)
treecef8ce14649c5d38a5c39ba254c29bc6934d2619 /moses/FF/SkeletonStatelessFF.h
parent1758381c986b9999448094122db2bccb70e157b4 (diff)
put some meat onto skeleton FFs
Diffstat (limited to 'moses/FF/SkeletonStatelessFF.h')
-rw-r--r--moses/FF/SkeletonStatelessFF.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/moses/FF/SkeletonStatelessFF.h b/moses/FF/SkeletonStatelessFF.h
index 05791f213..a09e078ed 100644
--- a/moses/FF/SkeletonStatelessFF.h
+++ b/moses/FF/SkeletonStatelessFF.h
@@ -10,7 +10,7 @@ class SkeletonStatelessFF : public StatelessFeatureFunction
{
public:
SkeletonStatelessFF(const std::string &line)
- :StatelessFeatureFunction("SkeletonStatelessFF", line)
+ :StatelessFeatureFunction("SkeletonStatelessFF", 2, line)
{}
bool IsUseable(const FactorMask &mask) const
@@ -19,19 +19,15 @@ public:
void Evaluate(const Phrase &source
, const TargetPhrase &targetPhrase
, ScoreComponentCollection &scoreBreakdown
- , ScoreComponentCollection &estimatedFutureScore) const
- {}
+ , ScoreComponentCollection &estimatedFutureScore) const;
void Evaluate(const InputType &input
, const InputPath &inputPath
, const TargetPhrase &targetPhrase
- , ScoreComponentCollection &scoreBreakdown) const
- {}
- virtual void Evaluate(const Hypothesis& hypo,
- ScoreComponentCollection* accumulator) const
- {}
+ , ScoreComponentCollection &scoreBreakdown) const;
+ void Evaluate(const Hypothesis& hypo,
+ ScoreComponentCollection* accumulator) const;
void EvaluateChart(const ChartHypothesis &hypo,
- ScoreComponentCollection* accumulator) const
- {}
+ ScoreComponentCollection* accumulator) const;
};