Moses::SkeletonTranslationOptionListFeature Class Reference

#include <SkeletonTranslationOptionListFeature.h>

Inheritance diagram for Moses::SkeletonTranslationOptionListFeature:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SkeletonTranslationOptionListFeature (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 SkeletonTranslationOptionListFeature.h.


Constructor & Destructor Documentation

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

Definition at line 12 of file SkeletonTranslationOptionListFeature.h.

References Moses::FeatureFunction::ReadParameters().

Here is the call graph for this function:


Member Function Documentation

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

Implements Moses::FeatureFunction.

Definition at line 21 of file SkeletonTranslationOptionListFeature.h.

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

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

Same for chart-based features.

Implements Moses::StatelessFeatureFunction.

Definition at line 56 of file SkeletonTranslationOptionListFeature.h.

void Moses::SkeletonTranslationOptionListFeature::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 SkeletonTranslationOptionListFeature.h.

void Moses::SkeletonTranslationOptionListFeature::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 SkeletonTranslationOptionListFeature.h.

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

Implements Moses::FeatureFunction.

Definition at line 17 of file SkeletonTranslationOptionListFeature.h.

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

Reimplemented from Moses::FeatureFunction.

Definition at line 61 of file SkeletonTranslationOptionListFeature.h.


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

Generated on Wed Apr 26 00:32:08 2017 for Moses by  doxygen 1.5.9