#include <PhraseDictionaryALSuffixArray.h>
Public Member Functions | |
PhraseDictionaryALSuffixArray (const std::string &line) | |
void | Load (AllOptions::ptr const &opts) |
override to load model files | |
void | InitializeForInput (ttasksptr const &ttask) |
Create entry for translation of source to targetPhrase. | |
void | CleanUpAfterSentenceProcessing (const InputType &source) |
Definition at line 22 of file PhraseDictionaryALSuffixArray.h.
Moses::PhraseDictionaryALSuffixArray::PhraseDictionaryALSuffixArray | ( | const std::string & | line | ) |
Definition at line 24 of file PhraseDictionaryALSuffixArray.cpp.
References Moses::StaticData::Instance(), Moses::FeatureFunction::ReadParameters(), and Moses::StaticData::ThreadCount().
void Moses::PhraseDictionaryALSuffixArray::CleanUpAfterSentenceProcessing | ( | const InputType & | source | ) | [virtual] |
Reimplemented from Moses::PhraseDictionary.
Definition at line 58 of file PhraseDictionaryALSuffixArray.cpp.
References Moses::PhraseDictionaryMemory::m_collection, and Moses::PhraseDictionaryNodeMemory::Remove().
void Moses::PhraseDictionaryALSuffixArray::InitializeForInput | ( | ttasksptr const & | ttask | ) | [virtual] |
Create entry for translation of source to targetPhrase.
Reimplemented from Moses::PhraseDictionary.
Definition at line 41 of file PhraseDictionaryALSuffixArray.cpp.
References Moses::RuleTableLoaderFactory::Create(), Moses::PhraseDictionary::GetFilePath(), Moses::InputType::GetTranslationId(), Moses::DecodeFeature::m_input, Moses::DecodeFeature::m_output, Moses::PhraseDictionary::m_tableLimit, Moses::SPrint(), and UTIL_THROW_IF2.
void Moses::PhraseDictionaryALSuffixArray::Load | ( | AllOptions::ptr const & | opts | ) | [virtual] |
override to load model files
Reimplemented from Moses::RuleTableTrie.
Definition at line 35 of file PhraseDictionaryALSuffixArray.cpp.
References Moses::FeatureFunction::m_options, and Moses::PhraseDictionary::SetFeaturesToApply().