Moses::LanguageModelParallelBackoff Class Reference

#include <LanguageModelParallelBackoff.h>

Inheritance diagram for Moses::LanguageModelParallelBackoff:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ~LanguageModelParallelBackoff ()
bool Load (const std::string &filePath, const std::vector< FactorType > &factorTypes, size_t nGramOrder)
VocabIndex GetLmID (const std::string &str) const
VocabIndex GetLmID (const Factor *factor, FactorType ft) const
void CreateFactors ()
LMResult GetValueForgotState (const std::vector< const Word * > &contextFactor, FFState &outState) const
const FFStateGetNullContextState () const
const FFStateGetBeginSentenceState () const
FFStateNewState (const FFState *from) const


Detailed Description

LM of multiple factors. A simple extension of single factor LM - factors backoff together. Rather slow as this uses string concatenation/split

Definition at line 62 of file LanguageModelParallelBackoff.h.


Constructor & Destructor Documentation

Moses::LanguageModelParallelBackoff::~LanguageModelParallelBackoff (  ) 

Definition at line 38 of file LanguageModelParallelBackoff.cpp.


Member Function Documentation

void Moses::LanguageModelParallelBackoff::CreateFactors (  ) 

const FFState * Moses::LanguageModelParallelBackoff::GetBeginSentenceState (  )  const [virtual]

VocabIndex Moses::LanguageModelParallelBackoff::GetLmID ( const Factor factor,
FactorType  ft 
) const

Definition at line 143 of file LanguageModelParallelBackoff.cpp.

References Moses::Factor::GetId().

Here is the call graph for this function:

VocabIndex Moses::LanguageModelParallelBackoff::GetLmID ( const std::string &  str  )  const

Definition at line 138 of file LanguageModelParallelBackoff.cpp.

Referenced by CreateFactors(), and GetValueForgotState().

Here is the caller graph for this function:

const FFState * Moses::LanguageModelParallelBackoff::GetNullContextState (  )  const [virtual]

LMResult Moses::LanguageModelParallelBackoff::GetValueForgotState ( const std::vector< const Word * > &  contextFactor,
FFState outState 
) const [virtual]

bool Moses::LanguageModelParallelBackoff::Load ( const std::string &  filePath,
const std::vector< FactorType > &  factorTypes,
size_t  nGramOrder 
) [virtual]

FFState * Moses::LanguageModelParallelBackoff::NewState ( const FFState from  )  const [virtual]


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

Generated on Thu Oct 13 15:04:20 2011 for Moses by  doxygen 1.5.9