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

23 lines
553 B
C++

#include "PhrasePenalty.h"
#include "moses/ScoreComponentCollection.h"
namespace Moses
{
PhrasePenalty::PhrasePenalty(const std::string &line)
: StatelessFeatureFunction("PhrasePenalty",1, line)
{
ReadParameters();
}
void PhrasePenalty::Evaluate(const Phrase &source
, const TargetPhrase &targetPhrase
, ScoreComponentCollection &scoreBreakdown
, ScoreComponentCollection &estimatedFutureScore) const
{
scoreBreakdown.Assign(this, 1.0f);
}
} // namespace