#include <PhraseDictionaryDynSuffixArray.h>


Public Member Functions | |
| PhraseDictionaryDynSuffixArray (size_t m_numScoreComponent, PhraseDictionaryFeature *feature) | |
| ~PhraseDictionaryDynSuffixArray () | |
| bool | Load (const std::vector< FactorType > &m_input, const std::vector< FactorType > &m_output, std::string m_source, std::string m_target, std::string m_alignments, const std::vector< float > &m_weight, size_t m_tableLimit, const LMList &languageModels, float weightWP) |
| const TargetPhraseCollection * | GetTargetPhraseCollection (const Phrase &src) const |
| find list of translations that can translates src. Only for phrase input | |
| void | InitializeForInput (const InputType &i) |
| Create entry for translation of source to targetPhrase. | |
| void | CleanUp () |
| void | insertSnt (string &, string &, string &) |
| void | deleteSnt (unsigned, unsigned) |
| ChartRuleLookupManager * | CreateRuleLookupManager (const InputType &, const ChartCellCollection &) |
| Create a sentence-specific manager for SCFG rule lookup. | |
Definition at line 12 of file PhraseDictionaryDynSuffixArray.h.
| Moses::PhraseDictionaryDynSuffixArray::PhraseDictionaryDynSuffixArray | ( | size_t | m_numScoreComponent, | |
| PhraseDictionaryFeature * | feature | |||
| ) |
Definition at line 11 of file PhraseDictionaryDynSuffixArray.cpp.
| Moses::PhraseDictionaryDynSuffixArray::~PhraseDictionaryDynSuffixArray | ( | ) |
Definition at line 17 of file PhraseDictionaryDynSuffixArray.cpp.
| void Moses::PhraseDictionaryDynSuffixArray::CleanUp | ( | ) | [virtual] |
Reimplemented from Moses::Dictionary.
Definition at line 46 of file PhraseDictionaryDynSuffixArray.cpp.
References Moses::BilingualDynSuffixArray::CleanUp().

| ChartRuleLookupManager * Moses::PhraseDictionaryDynSuffixArray::CreateRuleLookupManager | ( | const InputType & | , | |
| const ChartCellCollection & | ||||
| ) | [virtual] |
Create a sentence-specific manager for SCFG rule lookup.
Implements Moses::PhraseDictionary.
Definition at line 82 of file PhraseDictionaryDynSuffixArray.cpp.
References CHECK.
| void Moses::PhraseDictionaryDynSuffixArray::deleteSnt | ( | unsigned | , | |
| unsigned | ||||
| ) |
Definition at line 77 of file PhraseDictionaryDynSuffixArray.cpp.
| const TargetPhraseCollection * Moses::PhraseDictionaryDynSuffixArray::GetTargetPhraseCollection | ( | const Phrase & | src | ) | const [virtual] |
find list of translations that can translates src. Only for phrase input
Implements Moses::PhraseDictionary.
Definition at line 51 of file PhraseDictionaryDynSuffixArray.cpp.
References Moses::TargetPhraseCollection::Add(), Moses::FloorScore(), Moses::BilingualDynSuffixArray::GetTargetPhrasesByLexicalWeight(), Moses::PhraseDictionary::m_feature, Moses::TargetPhraseCollection::NthElement(), and Moses::TargetPhrase::SetScore().

| void Moses::PhraseDictionaryDynSuffixArray::InitializeForInput | ( | const InputType & | source | ) | [virtual] |
Create entry for translation of source to targetPhrase.
Implements Moses::PhraseDictionary.
Definition at line 41 of file PhraseDictionaryDynSuffixArray.cpp.
References CHECK.
| void Moses::PhraseDictionaryDynSuffixArray::insertSnt | ( | string & | source, | |
| string & | target, | |||
| string & | alignment | |||
| ) |
Definition at line 72 of file PhraseDictionaryDynSuffixArray.cpp.
References Moses::BilingualDynSuffixArray::addSntPair().

| bool Moses::PhraseDictionaryDynSuffixArray::Load | ( | const std::vector< FactorType > & | m_input, | |
| const std::vector< FactorType > & | m_output, | |||
| std::string | m_source, | |||
| std::string | m_target, | |||
| std::string | m_alignments, | |||
| const std::vector< float > & | m_weight, | |||
| size_t | m_tableLimit, | |||
| const LMList & | languageModels, | |||
| float | weightWP | |||
| ) |
1.5.9