mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-11-10 10:59:21 +03:00
22 lines
479 B
C++
22 lines
479 B
C++
#include "SetSourcePhrase.h"
|
|
#include "moses/TargetPhrase.h"
|
|
|
|
namespace Moses
|
|
{
|
|
SetSourcePhrase::SetSourcePhrase(const std::string &line)
|
|
:StatelessFeatureFunction(0, line)
|
|
{
|
|
m_tuneable = false;
|
|
ReadParameters();
|
|
}
|
|
|
|
void SetSourcePhrase::EvaluateInIsolation(const Phrase &source
|
|
, const TargetPhrase &targetPhrase
|
|
, ScoreComponentCollection &scoreBreakdown
|
|
, ScoreComponentCollection &estimatedFutureScore) const
|
|
{
|
|
targetPhrase.SetRuleSource(source);
|
|
}
|
|
|
|
}
|