Moses::SyntaxRHS Class Reference

#include <SyntaxRHS.h>

Inheritance diagram for Moses::SyntaxRHS:

Inheritance graph
[legend]
Collaboration diagram for Moses::SyntaxRHS:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Definition at line 9 of file SyntaxRHS.h.


Constructor & Destructor Documentation

Moses::SyntaxRHS::SyntaxRHS ( const std::string &  line  ) 

Definition at line 11 of file SyntaxRHS.cpp.

References Moses::FeatureFunction::ReadParameters().

Here is the call graph for this function:


Member Function Documentation

void Moses::SyntaxRHS::EvaluateInIsolation ( const Phrase source,
const TargetPhrase targetPhrase,
ScoreComponentCollection scoreBreakdown,
ScoreComponentCollection estimatedScores 
) const [virtual]

Implements Moses::FeatureFunction.

Definition at line 17 of file SyntaxRHS.cpp.

void Moses::SyntaxRHS::EvaluateTranslationOptionListWithSourceContext ( const InputType input,
const TranslationOptionList translationOptionList 
) const [inline, virtual]

Implements Moses::FeatureFunction.

Definition at line 29 of file SyntaxRHS.h.

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]

bool Moses::SyntaxRHS::IsUseable ( const FactorMask mask  )  const [inline, virtual]

Implements Moses::FeatureFunction.

Definition at line 14 of file SyntaxRHS.h.


The documentation for this class was generated from the following files:

Generated on Thu Jul 6 00:33:11 2017 for Moses by  doxygen 1.5.9