Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SetSourcePhrase.cpp « FF « moses - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f89683f28b825bb14680a84ed7244872fb8d8041 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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);
}

}