mosesdecoder/moses/FF/SetSourcePhrase.cpp
2014-04-07 12:00:13 +01:00

22 lines
468 B
C++

#include "SetSourcePhrase.h"
#include "moses/TargetPhrase.h"
namespace Moses
{
SetSourcePhrase::SetSourcePhrase(const std::string &line)
:StatelessFeatureFunction(1, line)
{
m_tuneable = false;
ReadParameters();
}
void SetSourcePhrase::Evaluate(const Phrase &source
, const TargetPhrase &targetPhrase
, ScoreComponentCollection &scoreBreakdown
, ScoreComponentCollection &estimatedFutureScore) const
{
targetPhrase.SetRuleSource(source);
}
}