Moses::LanguageModelJoint Class Reference

#include <Joint.h>

Inheritance diagram for Moses::LanguageModelJoint:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LanguageModelJoint (LanguageModelSingleFactor *lmImpl)
 ~LanguageModelJoint ()
bool Load (const std::string &filePath, const std::vector< FactorType > &factorTypes, size_t nGramOrder)
LMResult GetValueForgotState (const std::vector< const Word * > &contextFactor, FFState &outState) const
const FFStateGetNullContextState () const
const FFStateGetBeginSentenceState () const
FFStateNewState (const FFState *from) const

Protected Attributes

LanguageModelSingleFactorm_lmImpl
std::vector< FactorTypem_factorTypesOrdered
size_t m_implFactor


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 43 of file Joint.h.


Constructor & Destructor Documentation

Moses::LanguageModelJoint::LanguageModelJoint ( LanguageModelSingleFactor lmImpl  )  [inline]

Definition at line 51 of file Joint.h.

References m_lmImpl.

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

Definition at line 55 of file Joint.h.

References m_lmImpl.


Member Function Documentation

const FFState* Moses::LanguageModelJoint::GetBeginSentenceState (  )  const [inline, virtual]

Implements Moses::LanguageModelImplementation.

Definition at line 126 of file Joint.h.

References Moses::LanguageModelImplementation::GetBeginSentenceState(), and m_lmImpl.

Here is the call graph for this function:

const FFState* Moses::LanguageModelJoint::GetNullContextState (  )  const [inline, virtual]

Implements Moses::LanguageModelImplementation.

Definition at line 122 of file Joint.h.

References Moses::LanguageModelImplementation::GetNullContextState(), and m_lmImpl.

Here is the call graph for this function:

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

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

FFState* Moses::LanguageModelJoint::NewState ( const FFState from  )  const [inline, virtual]

Implements Moses::LanguageModelImplementation.

Definition at line 130 of file Joint.h.

References m_lmImpl, and Moses::LanguageModelImplementation::NewState().

Here is the call graph for this function:


Member Data Documentation

Definition at line 47 of file Joint.h.

Referenced by GetValueForgotState(), and Load().

Definition at line 49 of file Joint.h.

Referenced by GetValueForgotState(), and Load().


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

Generated on Wed Feb 8 23:04:11 2012 for Moses by  doxygen 1.5.9