mosesdecoder/moses/FF/SkeletonStatelessFF.h

38 lines
1.0 KiB
C
Raw Normal View History

2013-09-01 19:58:23 +04:00
#pragma once
#include <string>
#include "StatelessFeatureFunction.h"
namespace Moses
{
class SkeletonStatelessFF : public StatelessFeatureFunction
{
public:
2013-09-27 12:35:24 +04:00
SkeletonStatelessFF(const std::string &line)
:StatelessFeatureFunction(2, line)
2013-09-27 12:35:24 +04:00
{}
bool IsUseable(const FactorMask &mask) const {
return true;
}
void Evaluate(const Phrase &source
, const TargetPhrase &targetPhrase
, ScoreComponentCollection &scoreBreakdown
, ScoreComponentCollection &estimatedFutureScore) const;
void Evaluate(const InputType &input
, const InputPath &inputPath
, const TargetPhrase &targetPhrase
, ScoreComponentCollection &scoreBreakdown
, ScoreComponentCollection *estimatedFutureScore = NULL) const;
2013-09-27 12:35:24 +04:00
void Evaluate(const Hypothesis& hypo,
ScoreComponentCollection* accumulator) const;
void EvaluateChart(const ChartHypothesis &hypo,
ScoreComponentCollection* accumulator) const;
2013-09-01 19:58:23 +04:00
};
}