#include <SyntaxRHS.h>
Public Member Functions | |
SyntaxRHS (const std::string &line) | |
bool | IsUseable (const FactorMask &mask) const |
void | EvaluateInIsolation (const Phrase &source, const TargetPhrase &targetPhrase, ScoreComponentCollection &scoreBreakdown, ScoreComponentCollection &estimatedScores) const |
void | EvaluateWithSourceContext (const InputType &input, const InputPath &inputPath, const TargetPhrase &targetPhrase, const StackVec *stackVec, ScoreComponentCollection &scoreBreakdown, ScoreComponentCollection *estimatedScores=NULL) const |
void | EvaluateTranslationOptionListWithSourceContext (const InputType &input, const TranslationOptionList &translationOptionList) const |
void | EvaluateWhenApplied (const Hypothesis &hypo, ScoreComponentCollection *accumulator) const |
void | EvaluateWhenApplied (const ChartHypothesis &hypo, ScoreComponentCollection *accumulator) const |
Definition at line 9 of file SyntaxRHS.h.
Moses::SyntaxRHS::SyntaxRHS | ( | const std::string & | line | ) |
Definition at line 11 of file SyntaxRHS.cpp.
References Moses::FeatureFunction::ReadParameters().
void Moses::SyntaxRHS::EvaluateInIsolation | ( | const Phrase & | source, | |
const TargetPhrase & | targetPhrase, | |||
ScoreComponentCollection & | scoreBreakdown, | |||
ScoreComponentCollection & | estimatedScores | |||
) | const [virtual] |
void Moses::SyntaxRHS::EvaluateTranslationOptionListWithSourceContext | ( | const InputType & | input, | |
const TranslationOptionList & | translationOptionList | |||
) | const [inline, virtual] |
void Moses::SyntaxRHS::EvaluateWhenApplied | ( | const ChartHypothesis & | hypo, | |
ScoreComponentCollection * | accumulator | |||
) | const [inline, virtual] |
Same for chart-based features.
Implements Moses::StatelessFeatureFunction.
Definition at line 37 of file SyntaxRHS.h.
void Moses::SyntaxRHS::EvaluateWhenApplied | ( | const Hypothesis & | hypo, | |
ScoreComponentCollection * | accumulator | |||
) | const [inline, virtual] |
This should be implemented for features that apply to phrase-based models.
Implements Moses::StatelessFeatureFunction.
Definition at line 33 of file SyntaxRHS.h.
void Moses::SyntaxRHS::EvaluateWithSourceContext | ( | const InputType & | input, | |
const InputPath & | inputPath, | |||
const TargetPhrase & | targetPhrase, | |||
const StackVec * | stackVec, | |||
ScoreComponentCollection & | scoreBreakdown, | |||
ScoreComponentCollection * | estimatedScores = NULL | |||
) | const [virtual] |
Implements Moses::FeatureFunction.
Definition at line 24 of file SyntaxRHS.cpp.
References Moses::Phrase::GetNumNonTerminals(), Moses::FeatureFunction::m_numScoreComponents, and Moses::ScoreComponentCollection::PlusEquals().
bool Moses::SyntaxRHS::IsUseable | ( | const FactorMask & | mask | ) | const [inline, virtual] |