MosesTraining::Syntax::GHKM::Node Class Reference

#include <Node.h>

List of all members.

Public Member Functions

 Node (const std::string &label, NodeType type)
 ~Node ()
const std::string & GetLabel () const
NodeType GetType () const
const std::vector< Node * > & GetChildren () const
const std::vector< Node * > & GetParents () const
float GetPcfgScore () const
const SpanGetSpan () const
const SpanGetComplementSpan () const
const std::vector< const
Subgraph * > & 
GetRules () const
void SetChildren (const std::vector< Node * > &c)
void SetParents (const std::vector< Node * > &p)
void SetPcfgScore (float s)
void SetSpan (const Span &s)
void SetComplementSpan (const Span &cs)
void AddChild (Node *c)
void AddParent (Node *p)
void AddRule (const Subgraph *s)
bool IsSink () const
bool IsPreterminal () const
void PropagateIndex (int)
std::vector< std::string > GetTargetWords () const
template<typename OutputIterator >
void GetTreeAncestors (OutputIterator result, bool includeSelf=false)

Static Public Member Functions

template<typename InputIterator >
static NodeLowestCommonAncestor (InputIterator first, InputIterator last)


Detailed Description

Definition at line 42 of file Node.h.


Constructor & Destructor Documentation

MosesTraining::Syntax::GHKM::Node::Node ( const std::string &  label,
NodeType  type 
) [inline]

Definition at line 45 of file Node.h.

MosesTraining::Syntax::GHKM::Node::~Node (  ) 

Definition at line 31 of file Node.cpp.


Member Function Documentation

void MosesTraining::Syntax::GHKM::Node::AddChild ( Node c  )  [inline]

Definition at line 93 of file Node.h.

Referenced by MosesTraining::Syntax::GHKM::AlignmentGraph::AlignmentGraph().

Here is the caller graph for this function:

void MosesTraining::Syntax::GHKM::Node::AddParent ( Node p  )  [inline]

Definition at line 96 of file Node.h.

Referenced by MosesTraining::Syntax::GHKM::AlignmentGraph::AlignmentGraph().

Here is the caller graph for this function:

void MosesTraining::Syntax::GHKM::Node::AddRule ( const Subgraph s  )  [inline]

Definition at line 99 of file Node.h.

Referenced by MosesTraining::Syntax::GHKM::AlignmentGraph::ExtractMinimalRules().

Here is the caller graph for this function:

const std::vector<Node*>& MosesTraining::Syntax::GHKM::Node::GetChildren (  )  const [inline]

Definition at line 58 of file Node.h.

const Span& MosesTraining::Syntax::GHKM::Node::GetComplementSpan (  )  const [inline]

Definition at line 70 of file Node.h.

const std::string& MosesTraining::Syntax::GHKM::Node::GetLabel (  )  const [inline]

Definition at line 52 of file Node.h.

Referenced by MosesTraining::Syntax::GHKM::ScfgRule::ScfgRule(), and MosesTraining::Syntax::GHKM::StsgRule::StsgRule().

Here is the caller graph for this function:

const std::vector<Node*>& MosesTraining::Syntax::GHKM::Node::GetParents (  )  const [inline]

float MosesTraining::Syntax::GHKM::Node::GetPcfgScore (  )  const [inline]

Definition at line 64 of file Node.h.

const std::vector<const Subgraph*>& MosesTraining::Syntax::GHKM::Node::GetRules (  )  const [inline]

Definition at line 73 of file Node.h.

const Span& MosesTraining::Syntax::GHKM::Node::GetSpan (  )  const [inline]

std::vector< std::string > MosesTraining::Syntax::GHKM::Node::GetTargetWords (  )  const

Definition at line 55 of file Node.cpp.

Referenced by MosesTraining::Syntax::GHKM::ScfgRule::ScfgRule().

Here is the caller graph for this function:

template<typename OutputIterator >
void MosesTraining::Syntax::GHKM::Node::GetTreeAncestors ( OutputIterator  result,
bool  includeSelf = false 
) [inline]

Definition at line 141 of file Node.h.

References MosesTraining::Syntax::GHKM::TARGET, and MosesTraining::Syntax::GHKM::TREE.

Referenced by LowestCommonAncestor().

Here is the caller graph for this function:

NodeType MosesTraining::Syntax::GHKM::Node::GetType (  )  const [inline]

bool MosesTraining::Syntax::GHKM::Node::IsPreterminal (  )  const

bool MosesTraining::Syntax::GHKM::Node::IsSink (  )  const [inline]

Definition at line 103 of file Node.h.

template<typename InputIterator >
Node * MosesTraining::Syntax::GHKM::Node::LowestCommonAncestor ( InputIterator  first,
InputIterator  last 
) [inline, static]

Definition at line 158 of file Node.h.

References GetTreeAncestors(), index, and MosesTraining::Syntax::GHKM::SOURCE.

Here is the call graph for this function:

void MosesTraining::Syntax::GHKM::Node::PropagateIndex ( int  index  ) 

Definition at line 46 of file Node.cpp.

void MosesTraining::Syntax::GHKM::Node::SetChildren ( const std::vector< Node * > &  c  )  [inline]

Definition at line 77 of file Node.h.

void MosesTraining::Syntax::GHKM::Node::SetComplementSpan ( const Span cs  )  [inline]

Definition at line 89 of file Node.h.

void MosesTraining::Syntax::GHKM::Node::SetParents ( const std::vector< Node * > &  p  )  [inline]

Definition at line 80 of file Node.h.

void MosesTraining::Syntax::GHKM::Node::SetPcfgScore ( float  s  )  [inline]

Definition at line 83 of file Node.h.

void MosesTraining::Syntax::GHKM::Node::SetSpan ( const Span s  )  [inline]

Definition at line 86 of file Node.h.


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

Generated on Thu Jul 6 00:34:10 2017 for Moses by  doxygen 1.5.9