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: 24671aac69f349b6f80cf88d46f612c2f9212738 (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 &estimatedScores) const
{
  targetPhrase.SetRuleSource(source);
}

}