Moses::StatelessFeatureFunction Class Reference

#include <StatelessFeatureFunction.h>

Inheritance diagram for Moses::StatelessFeatureFunction:

Inheritance graph
Collaboration diagram for Moses::StatelessFeatureFunction:

Collaboration graph

List of all members.

Public Member Functions

 StatelessFeatureFunction (const std::string &line, bool registerNow)
 StatelessFeatureFunction (size_t numScoreComponents, const std::string &line)
virtual void EvaluateWhenApplied (const Hypothesis &hypo, ScoreComponentCollection *accumulator) const =0
virtual void EvaluateWhenApplied (const ChartHypothesis &hypo, ScoreComponentCollection *accumulator) const =0
virtual void EvaluateWhenApplied (const Syntax::SHyperedge &, ScoreComponentCollection *) 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 17 of file StatelessFeatureFunction.h.

Constructor & Destructor Documentation

Moses::StatelessFeatureFunction::StatelessFeatureFunction ( const std::string &  line,
bool  registerNow 

Definition at line 9 of file StatelessFeatureFunction.cpp.

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

Definition at line 16 of file StatelessFeatureFunction.cpp.

Member Function Documentation

virtual void Moses::StatelessFeatureFunction::EvaluateWhenApplied ( const Syntax::SHyperedge ,
) const [inline, virtual]

virtual void Moses::StatelessFeatureFunction::EvaluateWhenApplied ( const ChartHypothesis hypo,
ScoreComponentCollection accumulator 
) const [pure virtual]

virtual void Moses::StatelessFeatureFunction::EvaluateWhenApplied ( const Hypothesis hypo,
ScoreComponentCollection accumulator 
) const [pure virtual]

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

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

Implements Moses::FeatureFunction.

Definition at line 47 of file StatelessFeatureFunction.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