Moses::LanguageModelInternal Class Reference

#include <LanguageModelInternal.h>

Inheritance diagram for Moses::LanguageModelInternal:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

bool Load (const std::string &filePath, FactorType factorType, size_t nGramOrder)
LMResult GetValue (const std::vector< const Word * > &contextFactor, State *finalState=0) const

Protected Member Functions

const NGramNodeGetLmID (const Factor *factor) const
LMResult GetValue (const Factor *factor0, State *finalState) const
LMResult GetValue (const Factor *factor0, const Factor *factor1, State *finalState) const
LMResult GetValue (const Factor *factor0, const Factor *factor1, const Factor *factor2, State *finalState) const

Protected Attributes

std::vector< const NGramNode * > m_lmIdLookup
NGramCollection m_map


Detailed Description

Guaranteed cross-platform LM implementation designed to mimic LM used in regression tests

Definition at line 12 of file LanguageModelInternal.h.


Member Function Documentation

const NGramNode* Moses::LanguageModelInternal::GetLmID ( const Factor factor  )  const [inline, protected]

Definition at line 18 of file LanguageModelInternal.h.

References Moses::Factor::GetId(), and m_lmIdLookup.

Referenced by GetValue().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements Moses::LanguageModelPointerState.

Definition at line 104 of file LanguageModelInternal.cpp.

References GetValue(), and Moses::LanguageModelSingleFactor::m_factorType.

Here is the call graph for this function:

LMResult Moses::LanguageModelInternal::GetValue ( const Factor factor0,
const Factor factor1,
const Factor factor2,
State finalState 
) const [protected]

LMResult Moses::LanguageModelInternal::GetValue ( const Factor factor0,
const Factor factor1,
State finalState 
) const [protected]

LMResult Moses::LanguageModelInternal::GetValue ( const Factor factor0,
State finalState 
) const [protected]

Definition at line 127 of file LanguageModelInternal.cpp.

References Moses::FloorScore(), GetLmID(), Moses::NGramNode::GetScore(), Moses::LMResult::score, and Moses::LMResult::unknown.

Referenced by GetValue().

Here is the call graph for this function:

Here is the caller graph for this function:

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


Member Data Documentation

std::vector<const NGramNode*> Moses::LanguageModelInternal::m_lmIdLookup [protected]

Definition at line 15 of file LanguageModelInternal.h.

Referenced by GetLmID(), and Load().

Definition at line 16 of file LanguageModelInternal.h.

Referenced by Load().


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