Moses::LanguageModelSingleFactor Class Reference

Abstract class for for single factor LM. More...

#include <SingleFactor.h>

Inheritance diagram for Moses::LanguageModelSingleFactor:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~LanguageModelSingleFactor ()
virtual bool Load (const std::string &filePath, FactorType factorType, size_t nGramOrder)=0
LMType GetLMType () const
 Single or multi-factor.
bool Useable (const Phrase &phrase) const
const FactorGetSentenceStart () const
const FactorGetSentenceEnd () const
FactorType GetFactorType () const
std::string GetScoreProducerDescription (unsigned) const

Protected Attributes

const Factorm_sentenceStart
const Factorm_sentenceEnd
FactorType m_factorType


Detailed Description

Abstract class for for single factor LM.

Definition at line 35 of file SingleFactor.h.


Constructor & Destructor Documentation

Moses::LanguageModelSingleFactor::~LanguageModelSingleFactor (  )  [virtual]

Definition at line 39 of file SingleFactor.cpp.


Member Function Documentation

FactorType Moses::LanguageModelSingleFactor::GetFactorType (  )  const [inline]

Definition at line 61 of file SingleFactor.h.

References m_factorType.

Referenced by Moses::LanguageModelRemote::GetValue(), Moses::LanguageModelORLM::GetValue(), and Moses::LanguageModelDMapLM::GetValue().

Here is the caller graph for this function:

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

Single or multi-factor.

Implements Moses::LanguageModelImplementation.

Definition at line 47 of file SingleFactor.h.

References Moses::SingleFactor.

std::string Moses::LanguageModelSingleFactor::GetScoreProducerDescription ( unsigned   )  const [virtual]

Implements Moses::LanguageModelImplementation.

Definition at line 42 of file SingleFactor.cpp.

References Moses::LanguageModelImplementation::GetNGramOrder().

Here is the call graph for this function:

const Factor* Moses::LanguageModelSingleFactor::GetSentenceEnd (  )  const [inline]

Definition at line 58 of file SingleFactor.h.

References m_sentenceEnd.

const Factor* Moses::LanguageModelSingleFactor::GetSentenceStart (  )  const [inline]

Definition at line 55 of file SingleFactor.h.

References m_sentenceStart.

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

bool Moses::LanguageModelSingleFactor::Useable ( const Phrase phrase  )  const [inline, virtual]

Implements Moses::LanguageModelImplementation.

Definition at line 51 of file SingleFactor.h.

References Moses::Phrase::GetFactor(), Moses::Phrase::GetSize(), m_factorType, 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 Thu Feb 9 00:04:12 2012 for Moses by  doxygen 1.5.9