#include <PhraseDictionarySCFG.h>


Public Member Functions | |
| PhraseDictionarySCFG (size_t numScoreComponents, PhraseDictionaryFeature *feature) | |
| const PhraseDictionaryNodeSCFG & | GetRootNode () const |
| ChartRuleLookupManager * | CreateRuleLookupManager (const InputType &, const ChartCellCollection &) |
| Create a sentence-specific manager for SCFG rule lookup. | |
| TO_STRING () | |
Protected Member Functions | |
| TargetPhraseCollection & | GetOrCreateTargetPhraseCollection (const Phrase &source, const TargetPhrase &target, const Word &sourceLHS) |
| PhraseDictionaryNodeSCFG & | GetOrCreateNode (const Phrase &source, const TargetPhrase &target, const Word &sourceLHS) |
| void | SortAndPrune () |
Protected Attributes | |
| PhraseDictionaryNodeSCFG | m_collection |
Friends | |
| class | RuleTableLoader |
| std::ostream & | operator<< (std::ostream &, const PhraseDictionarySCFG &) |
Definition at line 34 of file PhraseDictionarySCFG.h.
| Moses::PhraseDictionarySCFG::PhraseDictionarySCFG | ( | size_t | numScoreComponents, | |
| PhraseDictionaryFeature * | feature | |||
| ) | [inline] |
Definition at line 40 of file PhraseDictionarySCFG.h.
| ChartRuleLookupManager * Moses::PhraseDictionarySCFG::CreateRuleLookupManager | ( | const InputType & | , | |
| const ChartCellCollection & | ||||
| ) | [virtual] |
Create a sentence-specific manager for SCFG rule lookup.
Implements Moses::PhraseDictionary.
Definition at line 91 of file PhraseDictionarySCFG.cpp.
| PhraseDictionaryNodeSCFG & Moses::PhraseDictionarySCFG::GetOrCreateNode | ( | const Phrase & | source, | |
| const TargetPhrase & | target, | |||
| const Word & | sourceLHS | |||
| ) | [protected] |
Definition at line 52 of file PhraseDictionarySCFG.cpp.
References Moses::AlignmentInfo::begin(), CHECK, Moses::AlignmentInfo::end(), Moses::TargetPhrase::GetAlignmentInfo(), Moses::PhraseDictionaryNodeSCFG::GetOrCreateChild(), Moses::Phrase::GetSize(), Moses::Phrase::GetWord(), Moses::Word::IsNonTerminal(), m_collection, and NULL.
Referenced by GetOrCreateTargetPhraseCollection().


| TargetPhraseCollection & Moses::PhraseDictionarySCFG::GetOrCreateTargetPhraseCollection | ( | const Phrase & | source, | |
| const TargetPhrase & | target, | |||
| const Word & | sourceLHS | |||
| ) | [protected, virtual] |
Implements Moses::RuleTableTrie.
Definition at line 43 of file PhraseDictionarySCFG.cpp.
References GetOrCreateNode(), and Moses::PhraseDictionaryNodeSCFG::GetOrCreateTargetPhraseCollection().

| const PhraseDictionaryNodeSCFG& Moses::PhraseDictionarySCFG::GetRootNode | ( | ) | const [inline] |
Definition at line 44 of file PhraseDictionarySCFG.h.
References m_collection.
Referenced by Moses::ChartRuleLookupManagerMemory::ChartRuleLookupManagerMemory().

| void Moses::PhraseDictionarySCFG::SortAndPrune | ( | ) | [protected, virtual] |
Implements Moses::RuleTableTrie.
Definition at line 98 of file PhraseDictionarySCFG.cpp.
References Moses::PhraseDictionary::GetTableLimit(), m_collection, and Moses::PhraseDictionaryNodeSCFG::Sort().

| Moses::PhraseDictionarySCFG::TO_STRING | ( | ) |
| std::ostream& operator<< | ( | std::ostream & | , | |
| const PhraseDictionarySCFG & | ||||
| ) | [friend] |
friend class RuleTableLoader [friend] |
Definition at line 62 of file PhraseDictionarySCFG.h.
Referenced by GetOrCreateNode(), GetRootNode(), Moses::PhraseDictionaryALSuffixArray::InitializeForInput(), Moses::operator<<(), and SortAndPrune().
1.5.9