#include <HyperTree.h>
Public Types | |
typedef boost::unordered_map < std::vector< Factor * > , Node > | Map |
Public Member Functions | |
bool | IsLeaf () const |
bool | HasRules () const |
void | Prune (std::size_t tableLimit) |
void | Sort (std::size_t tableLimit) |
Node * | GetOrCreateChild (const HyperPath::NodeSeq &) |
const Node * | GetChild (const HyperPath::NodeSeq &) const |
const TargetPhraseCollection::shared_ptr | GetTargetPhraseCollection () const return m_targetPhraseCollection |
Definition at line 31 of file HyperTree.h.
typedef boost::unordered_map<std::vector<Factor*>, Node> Moses::Syntax::T2S::HyperTree::Node::Map |
Definition at line 34 of file HyperTree.h.
const Node* Moses::Syntax::T2S::HyperTree::Node::GetChild | ( | const HyperPath::NodeSeq & | ) | const |
Node* Moses::Syntax::T2S::HyperTree::Node::GetOrCreateChild | ( | const HyperPath::NodeSeq & | ) |
const TargetPhraseCollection::shared_ptr Moses::Syntax::T2S::HyperTree::Node::GetTargetPhraseCollection | ( | ) | const |
bool Moses::Syntax::T2S::HyperTree::Node::HasRules | ( | ) | const [inline] |
Definition at line 40 of file HyperTree.h.
References Moses::Syntax::T2S::HyperTree::m_targetPhraseCollection.
bool Moses::Syntax::T2S::HyperTree::Node::IsLeaf | ( | ) | const [inline] |
void Moses::Syntax::T2S::HyperTree::Node::Prune | ( | std::size_t | tableLimit | ) |
void Moses::Syntax::T2S::HyperTree::Node::Sort | ( | std::size_t | tableLimit | ) |