Moses::StatelessFeatureFunction Class Reference

#include <StatelessFeatureFunction.h>

Inheritance diagram for Moses::StatelessFeatureFunction:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 StatelessFeatureFunction (const std::string &description, const std::string &line)
 StatelessFeatureFunction (const std::string &description, size_t numScoreComponents, const std::string &line)
virtual void Evaluate (const PhraseBasedFeatureContext &context, ScoreComponentCollection *accumulator) const
virtual void EvaluateChart (const ChartBasedFeatureContext &context, ScoreComponentCollection *accumulator) const
virtual bool IsStateless () const

Static Public Member Functions

static const std::vector
< const
StatelessFeatureFunction * > & 
GetStatelessFeatureFunctions ()


Detailed Description

base class for all stateless feature functions. eg. phrase table, word penalty, phrase penalty

Definition at line 11 of file StatelessFeatureFunction.h.


Constructor & Destructor Documentation

Moses::StatelessFeatureFunction::StatelessFeatureFunction ( const std::string &  description,
const std::string &  line 
)

Definition at line 6 of file StatelessFeatureFunction.cpp.

Moses::StatelessFeatureFunction::StatelessFeatureFunction ( const std::string &  description,
size_t  numScoreComponents,
const std::string &  line 
)

Definition at line 12 of file StatelessFeatureFunction.cpp.


Member Function Documentation

virtual void Moses::StatelessFeatureFunction::Evaluate ( const PhraseBasedFeatureContext context,
ScoreComponentCollection accumulator 
) const [inline, virtual]

This should be implemented for features that apply to phrase-based models.

Reimplemented in Moses::GlobalLexicalModel, Moses::PhrasePairFeature, Moses::WordTranslationFeature, and MockStatelessFeatureFunction.

Definition at line 26 of file StatelessFeatureFunction.h.

Referenced by Moses::Hypothesis::EvaluateWith().

Here is the caller graph for this function:

virtual void Moses::StatelessFeatureFunction::EvaluateChart ( const ChartBasedFeatureContext context,
ScoreComponentCollection accumulator 
) const [inline, virtual]

static const std::vector<const StatelessFeatureFunction*>& Moses::StatelessFeatureFunction::GetStatelessFeatureFunctions (  )  [inline, static]

Definition at line 17 of file StatelessFeatureFunction.h.

Referenced by Moses::Hypothesis::Evaluate(), Moses::ChartHypothesis::Evaluate(), and Moses::SearchNormalBatch::SearchNormalBatch().

Here is the caller graph for this function:

virtual bool Moses::StatelessFeatureFunction::IsStateless (  )  const [inline, virtual]

Implements Moses::FeatureFunction.

Definition at line 37 of file StatelessFeatureFunction.h.


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

Generated on Thu Oct 23 00:31:24 2014 for Moses by  doxygen 1.5.9