mosesdecoder/moses/FF/WordPenaltyProducer.h

30 lines
617 B
C
Raw Normal View History

#pragma once
#include <string>
#include "StatelessFeatureFunction.h"
#include "util/check.hh"
namespace Moses
{
class TargetPhrase;
class ScoreComponentCollection;
class WordPenaltyProducer : public StatelessFeatureFunction
{
public:
WordPenaltyProducer(const std::string &line);
2013-05-30 15:51:40 +04:00
bool IsUseable(const FactorMask &mask) const {
return true;
}
virtual void Evaluate(const Phrase &source
2013-05-29 21:16:15 +04:00
, const TargetPhrase &targetPhrase
, ScoreComponentCollection &scoreBreakdown
, ScoreComponentCollection &estimatedFutureScore) const;
};
}