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)
|
2013-10-29 22:44:33 +04:00
|
|
|
: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
|
2013-12-03 19:50:41 +04:00
|
|
|
, 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
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|