Moses::LanguageModelFactory Namespace Reference


LanguageModelCreateLanguageModel (LMImplementation lmImplementation, const std::vector< FactorType > &factorTypes, size_t nGramOrder, const std::string &languageModelFile, int dub)

Function Documentation

LanguageModel * Moses::LanguageModelFactory::CreateLanguageModel ( LMImplementation  lmImplementation,
const std::vector< FactorType > &  factorTypes,
size_t  nGramOrder,
const std::string &  languageModelFile,
int  dub 

creates a language model that will use the appropriate language model toolkit as its underlying implementation

Definition at line 65 of file Factory.cpp.

References Moses::UserMessage::Add(), Moses::BackwardLM, Moses::ConstructBackwardLM(), Moses::ConstructKenLM(), Moses::ConstructLDHTLM(), Moses::LanguageModelImplementation::GetLMType(), Moses::IRST, Moses::Joint, Moses::Ken, Moses::LazyBackwardLM, Moses::LazyKen, Moses::LDHTLM, Moses::MultiFactor, Moses::NewParallelBackoff(), Moses::NewRandLM(), NULL, Moses::ORLM, Moses::ParallelBackoff, Moses::RandLM, Moses::Remote, Moses::SingleFactor, and Moses::SRI.

Referenced by Moses::StaticData::LoadLanguageModels().

Here is the call graph for this function:

Here is the caller graph for this function:

Generated on Thu May 9 00:32:48 2013 for Moses by  doxygen 1.5.9