mosesdecoder/moses/FF/PhrasePenalty.h
2013-06-26 17:19:09 +01:00

25 lines
521 B
C++

#pragma once
#include "StatelessFeatureFunction.h"
namespace Moses
{
class PhrasePenalty : public StatelessFeatureFunction
{
public:
PhrasePenalty(const std::string &line);
bool IsUseable(const FactorMask &mask) const {
return true;
}
virtual void Evaluate(const Phrase &source
, const TargetPhrase &targetPhrase
, ScoreComponentCollection &scoreBreakdown
, ScoreComponentCollection &estimatedFutureScore) const;
};
} //namespace