mosesdecoder/moses/FF/SetSourcePhrase.cpp

22 lines
479 B
C++
Raw Normal View History

2014-04-06 19:57:54 +04:00
#include "SetSourcePhrase.h"
#include "moses/TargetPhrase.h"
namespace Moses
{
SetSourcePhrase::SetSourcePhrase(const std::string &line)
2014-05-07 22:29:09 +04:00
:StatelessFeatureFunction(0, line)
2014-04-06 19:57:54 +04:00
{
m_tuneable = false;
ReadParameters();
2014-04-06 19:57:54 +04:00
}
void SetSourcePhrase::EvaluateInIsolation(const Phrase &source
2014-04-06 19:57:54 +04:00
, const TargetPhrase &targetPhrase
, ScoreComponentCollection &scoreBreakdown
, ScoreComponentCollection &estimatedFutureScore) const
{
targetPhrase.SetRuleSource(source);
}
}