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
|
|
|
{
|
2014-04-07 15:00:13 +04:00
|
|
|
m_tuneable = false;
|
|
|
|
ReadParameters();
|
2014-04-06 19:57:54 +04:00
|
|
|
}
|
|
|
|
|
2014-07-10 01:35:59 +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);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|