Moses::LanguageModelDelegate Class Reference

#include <LanguageModelDelegate.h>

Inheritance diagram for Moses::LanguageModelDelegate:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LanguageModelDelegate (bool registerScore, ScoreIndexManager &scoreIndexManager, LanguageModelSingleFactor *delegate)
bool Load (const std::string &, FactorType, size_t)
float GetValueGivenState (const std::vector< const Word * > &contextFactor, FFState &state, unsigned int *len=0) const
float GetValueForgotState (const std::vector< const Word * > &contextFactor, FFState &state, unsigned int *len=0) const
void GetState (const std::vector< const Word * > &contextFactor, FFState &outState) const
 get State for a particular n-gram. We don't care what the score is.
FFStateNewState (const FFState *from=NULL) const


Detailed Description

A language model which delegates all its calculation to another language model. Used when you want to have the same language model with two different weights.

Constructor & Destructor Documentation

Moses::LanguageModelDelegate::LanguageModelDelegate ( bool  registerScore,
ScoreIndexManager scoreIndexManager,
LanguageModelSingleFactor delegate 
) [inline]


Member Function Documentation

void Moses::LanguageModelDelegate::GetState ( const std::vector< const Word * > &  contextFactor,
FFState outState 
) const [inline, virtual]

get State for a particular n-gram. We don't care what the score is.

Reimplemented from Moses::LanguageModel.

References Moses::LanguageModel::GetState().

Here is the call graph for this function:

float Moses::LanguageModelDelegate::GetValueForgotState ( const std::vector< const Word * > &  contextFactor,
FFState state,
unsigned int *  len = 0 
) const [inline, virtual]

Implements Moses::LanguageModel.

References Moses::LanguageModel::GetValueForgotState().

Here is the call graph for this function:

float Moses::LanguageModelDelegate::GetValueGivenState ( const std::vector< const Word * > &  contextFactor,
FFState state,
unsigned int *  len = 0 
) const [inline, virtual]

Reimplemented from Moses::LanguageModel.

References Moses::LanguageModel::GetValueGivenState().

Here is the call graph for this function:

bool Moses::LanguageModelDelegate::Load ( const std::string &  ,
FactorType  ,
size_t   
) [inline, virtual]

FFState* Moses::LanguageModelDelegate::NewState ( const FFState from = NULL  )  const [inline, virtual]

Implements Moses::LanguageModel.

References Moses::LanguageModel::NewState().

Here is the call graph for this function:


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

Generated on Sun Nov 14 20:05:06 2010 for Moses by  doxygen 1.5.9