Moses::StatefulFeatureFunction Class Reference

#include <FeatureFunction.h>

Inheritance diagram for Moses::StatefulFeatureFunction:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual FFStateEvaluate (const Hypothesis &cur_hypo, const FFState *prev_state, ScoreComponentCollection *accumulator) const =0
 This interface should be implemented. Notes: When evaluating the value of this feature function, you should avoid calling hypo.GetPrevHypo(). If you need something from the "previous" hypothesis, you should store it in an FFState object which will be passed in as prev_state. If you don't do this, you will get in trouble.
virtual FFStateEvaluateChart (const ChartHypothesis &, int, ScoreComponentCollection *accumulator) const =0
virtual const FFStateEmptyHypothesisState (const InputType &input) const =0
 return the state associated with the empty hypothesis for a given sentence
bool IsStateless () const


Detailed Description

Definition at line 45 of file FeatureFunction.h.


Member Function Documentation

virtual const FFState* Moses::StatefulFeatureFunction::EmptyHypothesisState ( const InputType input  )  const [pure virtual]

return the state associated with the empty hypothesis for a given sentence

Implemented in Moses::DistortionScoreProducer, Moses::LexicalReordering, Moses::SyntacticLanguageModel, Moses::LanguageModel, and Moses::LMRefCount.

virtual FFState* Moses::StatefulFeatureFunction::Evaluate ( const Hypothesis cur_hypo,
const FFState prev_state,
ScoreComponentCollection accumulator 
) const [pure virtual]

This interface should be implemented. Notes: When evaluating the value of this feature function, you should avoid calling hypo.GetPrevHypo(). If you need something from the "previous" hypothesis, you should store it in an FFState object which will be passed in as prev_state. If you don't do this, you will get in trouble.

Implemented in Moses::DistortionScoreProducer, Moses::LexicalReordering, Moses::SyntacticLanguageModel, and Moses::LMRefCount.

virtual FFState* Moses::StatefulFeatureFunction::EvaluateChart ( const ChartHypothesis ,
int  ,
ScoreComponentCollection accumulator 
) const [pure virtual]

bool Moses::StatefulFeatureFunction::IsStateless (  )  const [virtual]

Implements Moses::FeatureFunction.

Definition at line 25 of file FeatureFunction.cpp.


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

Generated on Thu Feb 9 00:04:11 2012 for Moses by  doxygen 1.5.9