Moses::SyntacticLanguageModel Class Reference

#include <SyntacticLanguageModel.h>

Inheritance diagram for Moses::SyntacticLanguageModel:

Inheritance graph
Collaboration diagram for Moses::SyntacticLanguageModel:

Collaboration graph

List of all members.

Public Member Functions

 SyntacticLanguageModel (const std::string &line)
 ~SyntacticLanguageModel ()
size_t GetNumScoreComponents () const
const FFStateEmptyHypothesisState (const InputType &input) const
 return the state associated with the empty hypothesis for a given sentence
FFStateEvaluate (const Hypothesis &cur_hypo, const FFState *prev_state, ScoreComponentCollection *accumulator) const
FFStateEvaluateWhenApplied (const ChartHypothesis &cur_hypo, int featureID, ScoreComponentCollection *accumulator) const

Detailed Description

Definition at line 17 of file SyntacticLanguageModel.h.

Constructor & Destructor Documentation

Moses::SyntacticLanguageModel::SyntacticLanguageModel ( const std::string &  line  ) 

Moses::SyntacticLanguageModel::~SyntacticLanguageModel (  ) 

Member Function Documentation

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]

Implements Moses::StatefulFeatureFunction.

Definition at line 33 of file SyntacticLanguageModel.h.

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.

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

Generated on Thu Jul 6 00:33:35 2017 for Moses by  doxygen 1.5.9