#include <SyntacticLanguageModel.h>
Public Member Functions | |
SyntacticLanguageModel (const std::string &line) | |
~SyntacticLanguageModel () | |
size_t | GetNumScoreComponents () const |
const FFState * | EmptyHypothesisState (const InputType &input) const |
return the state associated with the empty hypothesis for a given sentence | |
FFState * | Evaluate (const Hypothesis &cur_hypo, const FFState *prev_state, ScoreComponentCollection *accumulator) const |
FFState * | EvaluateWhenApplied (const ChartHypothesis &cur_hypo, int featureID, ScoreComponentCollection *accumulator) const |
Definition at line 17 of file SyntacticLanguageModel.h.
Moses::SyntacticLanguageModel::SyntacticLanguageModel | ( | const std::string & | line | ) |
Moses::SyntacticLanguageModel::~SyntacticLanguageModel | ( | ) |
const FFState* Moses::SyntacticLanguageModel::EmptyHypothesisState | ( | const InputType & | input | ) | const [virtual] |
return the state associated with the empty hypothesis for a given sentence
Implements Moses::StatefulFeatureFunction.
FFState* Moses::SyntacticLanguageModel::Evaluate | ( | const Hypothesis & | cur_hypo, | |
const FFState * | prev_state, | |||
ScoreComponentCollection * | accumulator | |||
) | const |
FFState* Moses::SyntacticLanguageModel::EvaluateWhenApplied | ( | const ChartHypothesis & | cur_hypo, | |
int | featureID, | |||
ScoreComponentCollection * | accumulator | |||
) | const [inline, virtual] |
size_t Moses::SyntacticLanguageModel::GetNumScoreComponents | ( | ) | const |
returns the number of scores that a subclass produces. For example, a language model conventionally produces 1, a translation table some arbitrary number, etc
Reimplemented from Moses::FeatureFunction.