Moses::PhraseDictionarySCFG Class Reference

#include <PhraseDictionarySCFG.h>

Inheritance diagram for Moses::PhraseDictionarySCFG:

Inheritance graph
[legend]
Collaboration diagram for Moses::PhraseDictionarySCFG:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PhraseDictionarySCFG (size_t numScoreComponents, PhraseDictionaryFeature *feature)
const PhraseDictionaryNodeSCFGGetRootNode () const
ChartRuleLookupManagerCreateRuleLookupManager (const InputType &, const ChartCellCollection &)
 Create a sentence-specific manager for SCFG rule lookup.
 TO_STRING ()

Protected Member Functions

TargetPhraseCollectionGetOrCreateTargetPhraseCollection (const Phrase &source, const TargetPhrase &target, const Word &sourceLHS)
PhraseDictionaryNodeSCFGGetOrCreateNode (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 &)


Detailed Description

Definition at line 34 of file PhraseDictionarySCFG.h.


Constructor & Destructor Documentation

Moses::PhraseDictionarySCFG::PhraseDictionarySCFG ( size_t  numScoreComponents,
PhraseDictionaryFeature feature 
) [inline]

Definition at line 40 of file PhraseDictionarySCFG.h.


Member Function Documentation

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]

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().

Here is the call graph for this function:

const PhraseDictionaryNodeSCFG& Moses::PhraseDictionarySCFG::GetRootNode (  )  const [inline]

Definition at line 44 of file PhraseDictionarySCFG.h.

References m_collection.

Referenced by Moses::ChartRuleLookupManagerMemory::ChartRuleLookupManagerMemory().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Moses::PhraseDictionarySCFG::TO_STRING (  ) 


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const PhraseDictionarySCFG  
) [friend]

friend class RuleTableLoader [friend]

Reimplemented from Moses::RuleTableTrie.

Definition at line 37 of file PhraseDictionarySCFG.h.


Member Data Documentation


The documentation for this class was generated from the following files:

Generated on Wed Feb 8 23:04:11 2012 for Moses by  doxygen 1.5.9