#include <PhraseDictionaryTransliteration.h>


Public Member Functions | |
| PhraseDictionaryTransliteration (const std::string &line) | |
| void | Load (AllOptions::ptr const &opts) |
| override to load model files | |
| virtual void | CleanUpAfterSentenceProcessing (const InputType &source) |
| void | GetTargetPhraseCollectionBatch (const InputPathList &inputPathQueue) const |
| ChartRuleLookupManager * | CreateRuleLookupManager (const ChartParser &, const ChartCellCollectionBase &, std::size_t) |
| Create a sentence-specific manager for SCFG rule lookup. | |
| void | SetParameter (const std::string &key, const std::string &value) |
| TO_STRING () | |
Protected Member Functions | |
| std::vector< TargetPhrase * > | CreateTargetPhrases (const Phrase &sourcePhrase, const std::string &outDir) const |
| void | GetTargetPhraseCollection (InputPath &inputPath) const |
Protected Attributes | |
| std::string | m_mosesDir |
| std::string | m_scriptDir |
| std::string | m_externalDir |
| std::string | m_inputLang |
| std::string | m_outputLang |
Friends | |
| std::ostream & | operator<< (std::ostream &, const PhraseDictionaryTransliteration &) |
Definition at line 14 of file PhraseDictionaryTransliteration.h.
| Moses::PhraseDictionaryTransliteration::PhraseDictionaryTransliteration | ( | const std::string & | line | ) |
Definition at line 13 of file PhraseDictionaryTransliteration.cpp.
References m_externalDir, m_inputLang, m_mosesDir, m_outputLang, m_scriptDir, Moses::FeatureFunction::ReadParameters(), and UTIL_THROW_IF2.

| void Moses::PhraseDictionaryTransliteration::CleanUpAfterSentenceProcessing | ( | const InputType & | source | ) | [virtual] |
Reimplemented from Moses::PhraseDictionary.
Definition at line 30 of file PhraseDictionaryTransliteration.cpp.
References Moses::PhraseDictionary::ReduceCache().

| ChartRuleLookupManager * Moses::PhraseDictionaryTransliteration::CreateRuleLookupManager | ( | const ChartParser & | , | |
| const ChartCellCollectionBase & | , | |||
| std::size_t | ||||
| ) | [virtual] |
Create a sentence-specific manager for SCFG rule lookup.
Implements Moses::PhraseDictionary.
Definition at line 138 of file PhraseDictionaryTransliteration.cpp.
References NULL.
| std::vector<TargetPhrase*> Moses::PhraseDictionaryTransliteration::CreateTargetPhrases | ( | const Phrase & | sourcePhrase, | |
| const std::string & | outDir | |||
| ) | const [protected] |
| void Moses::PhraseDictionaryTransliteration::GetTargetPhraseCollection | ( | InputPath & | inputPath | ) | const [protected] |
Definition at line 59 of file PhraseDictionaryTransliteration.cpp.
References CreateTargetPhrases(), Moses::PhraseDictionary::GetCache(), Moses::InputPath::GetPhrase(), hash, Moses::hash_value(), m_externalDir, Moses::PhraseDictionary::m_filePath, m_inputLang, m_mosesDir, m_outputLang, m_scriptDir, NULL, util::temp_dir::path(), util::temp_file::path(), Moses::InputPath::SetTargetPhrases(), and UTIL_THROW_IF2.
Referenced by GetTargetPhraseCollectionBatch().


| void Moses::PhraseDictionaryTransliteration::GetTargetPhraseCollectionBatch | ( | const InputPathList & | inputPathQueue | ) | const [virtual] |
Reimplemented from Moses::PhraseDictionary.
Definition at line 35 of file PhraseDictionaryTransliteration.cpp.
References Moses::InputPath::GetPhrase(), Moses::Phrase::GetSize(), GetTargetPhraseCollection(), and Moses::PhraseDictionary::SatisfyBackoff().

| void Moses::PhraseDictionaryTransliteration::Load | ( | AllOptions::ptr const & | opts | ) | [virtual] |
override to load model files
Reimplemented from Moses::FeatureFunction.
Definition at line 24 of file PhraseDictionaryTransliteration.cpp.
References Moses::FeatureFunction::m_options, and Moses::PhraseDictionary::SetFeaturesToApply().

| void Moses::PhraseDictionaryTransliteration::SetParameter | ( | const std::string & | key, | |
| const std::string & | value | |||
| ) | [virtual] |
Reimplemented from Moses::PhraseDictionary.
Definition at line 148 of file PhraseDictionaryTransliteration.cpp.
References m_externalDir, m_inputLang, m_mosesDir, m_outputLang, and m_scriptDir.
| Moses::PhraseDictionaryTransliteration::TO_STRING | ( | ) |
| std::ostream& operator<< | ( | std::ostream & | , | |
| const PhraseDictionaryTransliteration & | ||||
| ) | [friend] |
std::string Moses::PhraseDictionaryTransliteration::m_externalDir [protected] |
Definition at line 36 of file PhraseDictionaryTransliteration.h.
Referenced by GetTargetPhraseCollection(), PhraseDictionaryTransliteration(), and SetParameter().
std::string Moses::PhraseDictionaryTransliteration::m_inputLang [protected] |
Definition at line 36 of file PhraseDictionaryTransliteration.h.
Referenced by GetTargetPhraseCollection(), PhraseDictionaryTransliteration(), and SetParameter().
std::string Moses::PhraseDictionaryTransliteration::m_mosesDir [protected] |
Definition at line 36 of file PhraseDictionaryTransliteration.h.
Referenced by GetTargetPhraseCollection(), PhraseDictionaryTransliteration(), and SetParameter().
std::string Moses::PhraseDictionaryTransliteration::m_outputLang [protected] |
Definition at line 36 of file PhraseDictionaryTransliteration.h.
Referenced by GetTargetPhraseCollection(), PhraseDictionaryTransliteration(), and SetParameter().
std::string Moses::PhraseDictionaryTransliteration::m_scriptDir [protected] |
Definition at line 36 of file PhraseDictionaryTransliteration.h.
Referenced by GetTargetPhraseCollection(), PhraseDictionaryTransliteration(), and SetParameter().
1.5.9