2013-06-25 09:54:23 +04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "StatelessFeatureFunction.h"
|
|
|
|
|
|
|
|
namespace Moses
|
|
|
|
{
|
|
|
|
|
|
|
|
class PhrasePenalty : public StatelessFeatureFunction
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PhrasePenalty(const std::string &line);
|
|
|
|
|
|
|
|
bool IsUseable(const FactorMask &mask) const {
|
2013-06-26 20:19:09 +04:00
|
|
|
return true;
|
2013-06-25 09:54:23 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
virtual void Evaluate(const Phrase &source
|
2013-06-26 20:19:09 +04:00
|
|
|
, const TargetPhrase &targetPhrase
|
|
|
|
, ScoreComponentCollection &scoreBreakdown
|
|
|
|
, ScoreComponentCollection &estimatedFutureScore) const;
|
2013-06-25 09:54:23 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} //namespace
|
|
|
|
|