Moses::LanguageModelORLM Class Reference

#include <ORLM.h>

Inheritance diagram for Moses::LanguageModelORLM:

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

Collaboration graph
[legend]

List of all members.

Public Types

typedef count_t T

Public Member Functions

 LanguageModelORLM (const std::string &line)
bool Load (const std::string &filePath, FactorType factorType, size_t nGramOrder)
virtual LMResult GetValue (const std::vector< const Word * > &contextFactor, State *finalState=NULL) const
 ~LanguageModelORLM ()
void CleanUpAfterSentenceProcessing ()
bool UpdateORLM (const std::vector< std::string > &ngram, const int value)

Protected Member Functions

void CreateFactors ()
wordID_t GetLmID (const std::string &str) const
wordID_t GetLmID (const Factor *factor) const

Protected Attributes

OnlineRLM< T > * m_lm
wordID_t m_oov_id
std::vector< wordID_tlm_ids_vec_


Detailed Description

Todo:
ask ollie

Definition at line 20 of file ORLM.h.


Member Typedef Documentation

Definition at line 23 of file ORLM.h.


Constructor & Destructor Documentation

Moses::LanguageModelORLM::LanguageModelORLM ( const std::string &  line  )  [inline]

Definition at line 24 of file ORLM.h.

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

Definition at line 30 of file ORLM.h.

References Moses::LanguageModelImplementation::m_filePath, m_lm, and Utils::rtrim().

Here is the call graph for this function:


Member Function Documentation

void Moses::LanguageModelORLM::CleanUpAfterSentenceProcessing (  )  [inline]

Definition at line 38 of file ORLM.h.

References m_lm.

void Moses::LanguageModelORLM::CreateFactors (  )  [protected]

wordID_t Moses::LanguageModelORLM::GetLmID ( const Factor factor  )  const [protected]

Definition at line 68 of file ORLM.cpp.

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

Here is the call graph for this function:

wordID_t Moses::LanguageModelORLM::GetLmID ( const std::string &  str  )  const [protected]

Definition at line 64 of file ORLM.cpp.

References m_lm.

Referenced by GetValue().

Here is the caller graph for this function:

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

bool Moses::LanguageModelORLM::Load ( const std::string &  filePath,
FactorType  factorType,
size_t  nGramOrder 
)

bool Moses::LanguageModelORLM::UpdateORLM ( const std::vector< std::string > &  ngram,
const int  value 
)


Member Data Documentation

Definition at line 47 of file ORLM.h.

Referenced by CreateFactors(), and GetLmID().

Definition at line 46 of file ORLM.h.

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


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

Generated on Mon Aug 17 00:33:48 2015 for Moses by  doxygen 1.5.9