Moses::LanguageModelJoint Class Reference

#include <LanguageModelJoint.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, bool registerScore, ScoreIndexManager &scoreIndexManager)
 ~LanguageModelJoint ()
bool Load (const std::string &filePath, const std::vector< FactorType > &factorTypes, float weight, size_t nGramOrder)
float GetValue (const std::vector< const Word * > &contextFactor, State *finalState=NULL, unsigned int *len=NULL) 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

Constructor & Destructor Documentation

Moses::LanguageModelJoint::LanguageModelJoint ( LanguageModelSingleFactor lmImpl,
bool  registerScore,
ScoreIndexManager scoreIndexManager 
) [inline]

References m_lmImpl.

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

References m_lmImpl.


Member Function Documentation

float Moses::LanguageModelJoint::GetValue ( const std::vector< const Word * > &  contextFactor,
State finalState = NULL,
unsigned int *  len = NULL 
) const [inline, virtual]

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


Member Data Documentation

Referenced by GetValue(), and Load().

Referenced by GetValue(), and Load().


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

Generated on Fri Jul 30 20:05:16 2010 for Moses by  doxygen 1.5.9