Moses::ExampleTranslationOptionListFeature Class Reference

#include <ExampleTranslationOptionListFeature.h>

Inheritance diagram for Moses::ExampleTranslationOptionListFeature:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ExampleTranslationOptionListFeature (const std::string &line)
bool IsUseable (const FactorMask &mask) const
void EvaluateInIsolation (const Phrase &source, const TargetPhrase &targetPhrase, ScoreComponentCollection &scoreBreakdown, ScoreComponentCollection &estimatedFutureScore) const
void EvaluateWithSourceContext (const InputType &input, const InputPath &inputPath, const TargetPhrase &targetPhrase, const StackVec *stackVec, ScoreComponentCollection &scoreBreakdown, ScoreComponentCollection *estimatedFutureScore=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
void SetParameter (const std::string &key, const std::string &value)


Detailed Description

Definition at line 9 of file ExampleTranslationOptionListFeature.h.


Constructor & Destructor Documentation

Moses::ExampleTranslationOptionListFeature::ExampleTranslationOptionListFeature ( const std::string &  line  )  [inline]

Definition at line 12 of file ExampleTranslationOptionListFeature.h.

References Moses::FeatureFunction::ReadParameters().

Here is the call graph for this function:


Member Function Documentation

void Moses::ExampleTranslationOptionListFeature::EvaluateInIsolation ( const Phrase source,
const TargetPhrase targetPhrase,
ScoreComponentCollection scoreBreakdown,
ScoreComponentCollection estimatedFutureScore 
) const [inline, virtual]

Implements Moses::FeatureFunction.

Definition at line 21 of file ExampleTranslationOptionListFeature.h.

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

void Moses::ExampleTranslationOptionListFeature::EvaluateWhenApplied ( const ChartHypothesis hypo,
ScoreComponentCollection accumulator 
) const [inline, virtual]

Same for chart-based features.

Implements Moses::StatelessFeatureFunction.

Definition at line 56 of file ExampleTranslationOptionListFeature.h.

void Moses::ExampleTranslationOptionListFeature::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 52 of file ExampleTranslationOptionListFeature.h.

void Moses::ExampleTranslationOptionListFeature::EvaluateWithSourceContext ( const InputType input,
const InputPath inputPath,
const TargetPhrase targetPhrase,
const StackVec stackVec,
ScoreComponentCollection scoreBreakdown,
ScoreComponentCollection estimatedFutureScore = NULL 
) const [inline, virtual]

Implements Moses::FeatureFunction.

Definition at line 27 of file ExampleTranslationOptionListFeature.h.

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

Implements Moses::FeatureFunction.

Definition at line 17 of file ExampleTranslationOptionListFeature.h.

void Moses::ExampleTranslationOptionListFeature::SetParameter ( const std::string &  key,
const std::string &  value 
) [inline, virtual]

Reimplemented from Moses::FeatureFunction.

Definition at line 61 of file ExampleTranslationOptionListFeature.h.


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

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