#include <FeatureFunction.h>


Public Member Functions | |
| virtual FFState * | Evaluate (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 FFState * | EvaluateChart (const ChartHypothesis &, int, ScoreComponentCollection *accumulator) const =0 |
| virtual const FFState * | EmptyHypothesisState (const InputType &input) const =0 |
| return the state associated with the empty hypothesis for a given sentence | |
| bool | IsStateless () const |
Definition at line 45 of file FeatureFunction.h.
| 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] |
Implemented in Moses::DistortionScoreProducer, Moses::LexicalReordering, and Moses::LMRefCount.
| bool Moses::StatefulFeatureFunction::IsStateless | ( | ) | const [virtual] |
1.5.9