Moses::LanguageModelRandLM Class Reference

#include <LanguageModelRandLM.h>

Inheritance diagram for Moses::LanguageModelRandLM:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LanguageModelRandLM ()
bool Load (const std::string &filePath, FactorType factorType, size_t nGramOrder)
virtual LMResult GetValue (const std::vector< const Word * > &contextFactor, State *finalState=NULL) const
 ~LanguageModelRandLM ()
void CleanUpAfterSentenceProcessing ()
void InitializeBeforeSentenceProcessing ()
 overrideable funtions for IRST LM to cleanup. Maybe something to do with on demand/cache loading/unloading

Protected Member Functions

void CreateFactors (FactorCollection &factorCollection)
randlm::WordID GetLmID (const std::string &str) const
randlm::WordID GetLmID (const Factor *factor) const

Protected Attributes

std::vector< randlm::WordID > m_randlm_ids_vec
randlm::RandLM * m_lm
randlm::WordID m_oov_id


Detailed Description

Definition at line 39 of file LanguageModelRandLM.h.


Constructor & Destructor Documentation

Moses::LanguageModelRandLM::LanguageModelRandLM (  )  [inline]

Definition at line 42 of file LanguageModelRandLM.h.

Moses::LanguageModelRandLM::~LanguageModelRandLM (  )  [inline]

Definition at line 46 of file LanguageModelRandLM.h.

References m_lm.


Member Function Documentation

void Moses::LanguageModelRandLM::CleanUpAfterSentenceProcessing (  )  [inline, virtual]

Reimplemented from Moses::LanguageModelImplementation.

Definition at line 49 of file LanguageModelRandLM.h.

References m_lm.

void Moses::LanguageModelRandLM::CreateFactors ( FactorCollection factorCollection  )  [protected]

randlm::WordID Moses::LanguageModelRandLM::GetLmID ( const Factor factor  )  const [inline, protected]

Definition at line 62 of file LanguageModelRandLM.h.

References Moses::Factor::GetId(), m_oov_id, and m_randlm_ids_vec.

Here is the call graph for this function:

randlm::WordID Moses::LanguageModelRandLM::GetLmID ( const std::string &  str  )  const [protected]

Definition at line 89 of file LanguageModelRandLM.cpp.

References m_lm.

virtual LMResult Moses::LanguageModelRandLM::GetValue ( const std::vector< const Word * > &  contextFactor,
State finalState = NULL 
) const [virtual]

void Moses::LanguageModelRandLM::InitializeBeforeSentenceProcessing (  )  [inline, virtual]

overrideable funtions for IRST LM to cleanup. Maybe something to do with on demand/cache loading/unloading

Reimplemented from Moses::LanguageModelImplementation.

Definition at line 52 of file LanguageModelRandLM.h.

References m_lm.

bool Moses::LanguageModelRandLM::Load ( const std::string &  filePath,
FactorType  factorType,
size_t  nGramOrder 
) [virtual]


Member Data Documentation

randlm::RandLM* Moses::LanguageModelRandLM::m_lm [protected]

randlm::WordID Moses::LanguageModelRandLM::m_oov_id [protected]

Definition at line 59 of file LanguageModelRandLM.h.

Referenced by CreateFactors(), GetLmID(), and Load().

std::vector<randlm::WordID> Moses::LanguageModelRandLM::m_randlm_ids_vec [protected]

Definition at line 57 of file LanguageModelRandLM.h.

Referenced by CreateFactors(), and GetLmID().


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

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