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 (const std::string &line, 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. Not used for a long time

Definition at line 44 of file Joint.h.


Constructor & Destructor Documentation

Moses::LanguageModelJoint::LanguageModelJoint ( const std::string &  line,
LanguageModelSingleFactor lmImpl 
) [inline]

Definition at line 52 of file Joint.h.

References m_lmImpl.

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

Definition at line 57 of file Joint.h.

References m_lmImpl.


Member Function Documentation

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

Implements Moses::LanguageModelImplementation.

Definition at line 128 of file Joint.h.

References Moses::LanguageModelSingleFactor::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 124 of file Joint.h.

References Moses::LanguageModelSingleFactor::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 132 of file Joint.h.

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

Here is the call graph for this function:


Member Data Documentation

Definition at line 48 of file Joint.h.

Referenced by GetValueForgotState(), and Load().

Definition at line 50 of file Joint.h.

Referenced by GetValueForgotState(), and Load().


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

Generated on Thu Jun 4 00:32:17 2015 for Moses by  doxygen 1.5.9