Moses::LanguageModelMultiFactor Class Reference

Abstract class for for multi factor LM. More...

#include <LanguageModelMultiFactor.h>

Inheritance diagram for Moses::LanguageModelMultiFactor:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual bool Load (const std::string &filePath, const std::vector< FactorType > &factorTypes, float weight, size_t nGramOrder)=0
LMType GetLMType () const
 Single or multi-factor.
std::string GetScoreProducerDescription () const
 returns a string description of this producer
bool Useable (const Phrase &phrase) const

Protected Member Functions

 LanguageModelMultiFactor (bool registerScore, ScoreIndexManager &scoreIndexManager)

Protected Attributes

FactorMask m_factorTypes


Detailed Description

Abstract class for for multi factor LM.

Constructor & Destructor Documentation

Moses::LanguageModelMultiFactor::LanguageModelMultiFactor ( bool  registerScore,
ScoreIndexManager scoreIndexManager 
) [protected]


Member Function Documentation

LMType Moses::LanguageModelMultiFactor::GetLMType (  )  const [inline, virtual]

Single or multi-factor.

Implements Moses::LanguageModel.

References Moses::MultiFactor.

std::string Moses::LanguageModelMultiFactor::GetScoreProducerDescription (  )  const [virtual]

returns a string description of this producer

Implements Moses::LanguageModel.

References Moses::LanguageModel::GetNGramOrder(), and Moses::LanguageModel::m_filePath.

Here is the call graph for this function:

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

bool Moses::LanguageModelMultiFactor::Useable ( const Phrase phrase  )  const [virtual]

Implements Moses::LanguageModel.

References Moses::Phrase::GetSize(), Moses::Phrase::GetWord(), m_factorTypes, Moses::MAX_NUM_FACTORS, and NULL.

Here is the call graph for this function:


Member Data Documentation


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

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