#include <LanguageModelParallelBackoff.h>


Public Member Functions | |
| ~LanguageModelParallelBackoff () | |
| bool | Load (const std::string &filePath, const std::vector< FactorType > &factorTypes, size_t nGramOrder) |
| VocabIndex | GetLmID (const std::string &str) const |
| VocabIndex | GetLmID (const Factor *factor, FactorType ft) const |
| void | CreateFactors () |
| LMResult | GetValueForgotState (const std::vector< const Word * > &contextFactor, FFState &outState) const |
| const FFState * | GetNullContextState () const |
| const FFState * | GetBeginSentenceState () const |
| FFState * | NewState (const FFState *from) const |
Definition at line 62 of file LanguageModelParallelBackoff.h.
| Moses::LanguageModelParallelBackoff::~LanguageModelParallelBackoff | ( | ) |
Definition at line 38 of file LanguageModelParallelBackoff.cpp.
| void Moses::LanguageModelParallelBackoff::CreateFactors | ( | ) |
Definition at line 155 of file LanguageModelParallelBackoff.cpp.
References Moses::FactorCollection::AddFactor(), BOS_, EOS_, Moses::Factor::GetId(), GetLmID(), Moses::FactorCollection::Instance(), Moses::LanguageModelImplementation::m_sentenceEndArray, Moses::LanguageModelImplementation::m_sentenceStartArray, and Moses::Output.
Referenced by Load().


| const FFState * Moses::LanguageModelParallelBackoff::GetBeginSentenceState | ( | ) | const [virtual] |
Implements Moses::LanguageModelImplementation.
Definition at line 294 of file LanguageModelParallelBackoff.cpp.
| VocabIndex Moses::LanguageModelParallelBackoff::GetLmID | ( | const Factor * | factor, | |
| FactorType | ft | |||
| ) | const |
Definition at line 143 of file LanguageModelParallelBackoff.cpp.
References Moses::Factor::GetId().

| VocabIndex Moses::LanguageModelParallelBackoff::GetLmID | ( | const std::string & | str | ) | const |
Definition at line 138 of file LanguageModelParallelBackoff.cpp.
Referenced by CreateFactors(), and GetValueForgotState().

| const FFState * Moses::LanguageModelParallelBackoff::GetNullContextState | ( | ) | const [virtual] |
Implements Moses::LanguageModelImplementation.
Definition at line 289 of file LanguageModelParallelBackoff.cpp.
| LMResult Moses::LanguageModelParallelBackoff::GetValueForgotState | ( | const std::vector< const Word * > & | contextFactor, | |
| FFState & | outState | |||
| ) | const [virtual] |
Implements Moses::LanguageModelImplementation.
Definition at line 222 of file LanguageModelParallelBackoff.cpp.
References Moses::FloorScore(), GetLmID(), Moses::LanguageModelImplementation::m_sentenceEndArray, Moses::LanguageModelImplementation::m_sentenceStartArray, Moses::LMResult::score, Moses::TransformLMScore(), and Moses::LMResult::unknown.

| bool Moses::LanguageModelParallelBackoff::Load | ( | const std::string & | filePath, | |
| const std::vector< FactorType > & | factorTypes, | |||
| size_t | nGramOrder | |||
| ) | [virtual] |
Implements Moses::LanguageModelMultiFactor.
Definition at line 44 of file LanguageModelParallelBackoff.cpp.
References CreateFactors(), Moses::LanguageModelMultiFactor::m_factorTypes, Moses::LanguageModelImplementation::m_filePath, and Moses::LanguageModelImplementation::m_nGramOrder.

Implements Moses::LanguageModelImplementation.
Definition at line 284 of file LanguageModelParallelBackoff.cpp.
1.5.9