Moses::PhraseDictionaryNodeSCFG Class Reference

#include <PhraseDictionaryNodeSCFG.h>

Collaboration diagram for Moses::PhraseDictionaryNodeSCFG:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::pair< Word, WordNonTerminalMapKey
typedef std::map< Word,
PhraseDictionaryNodeSCFG * > 
TerminalMap
typedef std::map
< NonTerminalMapKey,
PhraseDictionaryNodeSCFG * > 
NonTerminalMap

Public Member Functions

virtual ~PhraseDictionaryNodeSCFG ()
bool IsLeaf () const
void Prune (size_t tableLimit)
void Sort (size_t tableLimit)
PhraseDictionaryNodeSCFGGetOrCreateChild (const Word &sourceTerm)
PhraseDictionaryNodeSCFGGetOrCreateChild (const Word &sourceNonTerm, const Word &targetNonTerm)
const PhraseDictionaryNodeSCFGGetChild (const Word &sourceTerm) const
const PhraseDictionaryNodeSCFGGetChild (const Word &sourceNonTerm, const Word &targetNonTerm) const
const TargetPhraseCollectionGetTargetPhraseCollection () const
TargetPhraseCollectionGetOrCreateTargetPhraseCollection ()
const NonTerminalMapGetNonTerminalMap () const
void Clear ()
 TO_STRING ()

Protected Member Functions

 PhraseDictionaryNodeSCFG ()

Protected Attributes

TerminalMap m_sourceTermMap
NonTerminalMap m_nonTermMap
TargetPhraseCollectionm_targetPhraseCollection

Friends

class PhraseDictionarySCFG
class PhraseDictionaryFuzzyMatch
class std::map< Word, PhraseDictionaryNodeSCFG >
class std::map< long, PhraseDictionaryNodeSCFG >
std::ostream & operator<< (std::ostream &, const PhraseDictionarySCFG &)
std::ostream & operator<< (std::ostream &, const PhraseDictionaryFuzzyMatch &)


Detailed Description

One node of the PhraseDictionarySCFG structure

Definition at line 93 of file PhraseDictionaryNodeSCFG.h.


Member Typedef Documentation

Definition at line 110 of file PhraseDictionaryNodeSCFG.h.

Definition at line 96 of file PhraseDictionaryNodeSCFG.h.

Definition at line 109 of file PhraseDictionaryNodeSCFG.h.


Constructor & Destructor Documentation

Moses::PhraseDictionaryNodeSCFG::PhraseDictionaryNodeSCFG (  )  [inline, protected]

Definition at line 128 of file PhraseDictionaryNodeSCFG.h.

Referenced by GetOrCreateChild().

Here is the caller graph for this function:

Moses::PhraseDictionaryNodeSCFG::~PhraseDictionaryNodeSCFG (  )  [virtual]


Member Function Documentation

void Moses::PhraseDictionaryNodeSCFG::Clear (  ) 

Definition at line 136 of file PhraseDictionaryNodeSCFG.cpp.

References m_nonTermMap, m_sourceTermMap, and m_targetPhraseCollection.

Referenced by Moses::PhraseDictionaryALSuffixArray::InitializeForInput().

Here is the caller graph for this function:

const PhraseDictionaryNodeSCFG * Moses::PhraseDictionaryNodeSCFG::GetChild ( const Word sourceNonTerm,
const Word targetNonTerm 
) const

Definition at line 126 of file PhraseDictionaryNodeSCFG.cpp.

References CHECK, Moses::Word::IsNonTerminal(), key, m_nonTermMap, and NULL.

Here is the call graph for this function:

const PhraseDictionaryNodeSCFG * Moses::PhraseDictionaryNodeSCFG::GetChild ( const Word sourceTerm  )  const

const NonTerminalMap& Moses::PhraseDictionaryNodeSCFG::GetNonTerminalMap (  )  const [inline]

Definition at line 150 of file PhraseDictionaryNodeSCFG.h.

References m_nonTermMap.

PhraseDictionaryNodeSCFG * Moses::PhraseDictionaryNodeSCFG::GetOrCreateChild ( const Word sourceNonTerm,
const Word targetNonTerm 
)

Definition at line 98 of file PhraseDictionaryNodeSCFG.cpp.

References CHECK, Moses::Word::IsNonTerminal(), key, m_nonTermMap, and PhraseDictionaryNodeSCFG().

Here is the call graph for this function:

PhraseDictionaryNodeSCFG * Moses::PhraseDictionaryNodeSCFG::GetOrCreateChild ( const Word sourceTerm  ) 

Definition at line 81 of file PhraseDictionaryNodeSCFG.cpp.

References m_sourceTermMap, and PhraseDictionaryNodeSCFG().

Referenced by Moses::PhraseDictionarySCFG::GetOrCreateNode(), and Moses::PhraseDictionaryFuzzyMatch::GetOrCreateNode().

Here is the call graph for this function:

Here is the caller graph for this function:

TargetPhraseCollection & Moses::PhraseDictionaryNodeSCFG::GetOrCreateTargetPhraseCollection (  ) 

const TargetPhraseCollection* Moses::PhraseDictionaryNodeSCFG::GetTargetPhraseCollection (  )  const [inline]

bool Moses::PhraseDictionaryNodeSCFG::IsLeaf (  )  const [inline]

Definition at line 134 of file PhraseDictionaryNodeSCFG.h.

References m_nonTermMap, and m_sourceTermMap.

Referenced by Moses::DottedRuleColl::Add().

Here is the caller graph for this function:

void Moses::PhraseDictionaryNodeSCFG::Prune ( size_t  tableLimit  ) 

Definition at line 50 of file PhraseDictionaryNodeSCFG.cpp.

References m_nonTermMap, m_sourceTermMap, m_targetPhraseCollection, NULL, and Moses::TargetPhraseCollection::Prune().

Here is the call graph for this function:

void Moses::PhraseDictionaryNodeSCFG::Sort ( size_t  tableLimit  ) 

Definition at line 65 of file PhraseDictionaryNodeSCFG.cpp.

References m_nonTermMap, m_sourceTermMap, m_targetPhraseCollection, NULL, and Moses::TargetPhraseCollection::Sort().

Referenced by Moses::PhraseDictionarySCFG::SortAndPrune(), and Moses::PhraseDictionaryFuzzyMatch::SortAndPrune().

Here is the call graph for this function:

Here is the caller graph for this function:

Moses::PhraseDictionaryNodeSCFG::TO_STRING (  ) 


Friends And Related Function Documentation

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

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

friend class PhraseDictionaryFuzzyMatch [friend]

Definition at line 119 of file PhraseDictionaryNodeSCFG.h.

friend class PhraseDictionarySCFG [friend]

Definition at line 118 of file PhraseDictionaryNodeSCFG.h.

friend class std::map< long, PhraseDictionaryNodeSCFG > [friend]

Definition at line 121 of file PhraseDictionaryNodeSCFG.h.

friend class std::map< Word, PhraseDictionaryNodeSCFG > [friend]

Definition at line 120 of file PhraseDictionaryNodeSCFG.h.


Member Data Documentation


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

Generated on Fri May 24 00:32:29 2013 for Moses by  doxygen 1.5.9