MosesTraining::SyntaxNode Class Reference

#include <SyntaxTree.h>

Collaboration diagram for MosesTraining::SyntaxNode:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SyntaxNode (int startPos, int endPos, std::string label)
int GetStart () const
int GetEnd () const
std::string GetLabel () const
float GetPcfgScore () const
void SetPcfgScore (float score)
SyntaxNodeGetParent ()
void SetParent (SyntaxNode *parent)
void AddChild (SyntaxNode *child)
const std::vector< SyntaxNode * > & GetChildren () const

Protected Attributes

int m_start
int m_end
std::string m_label
std::vector< SyntaxNode * > m_children
SyntaxNodem_parent
float m_pcfgScore


Detailed Description

Definition at line 33 of file SyntaxTree.h.


Constructor & Destructor Documentation

MosesTraining::SyntaxNode::SyntaxNode ( int  startPos,
int  endPos,
std::string  label 
) [inline]

Definition at line 42 of file SyntaxTree.h.


Member Function Documentation

void MosesTraining::SyntaxNode::AddChild ( SyntaxNode child  )  [inline]

Definition at line 70 of file SyntaxTree.h.

References m_children.

Referenced by MosesTraining::SyntaxTree::ConnectNodes().

Here is the caller graph for this function:

const std::vector< SyntaxNode* >& MosesTraining::SyntaxNode::GetChildren (  )  const [inline]

Definition at line 73 of file SyntaxTree.h.

References m_children.

int MosesTraining::SyntaxNode::GetEnd (  )  const [inline]

Definition at line 52 of file SyntaxTree.h.

References m_end.

Referenced by MosesTraining::SyntaxTree::ConnectNodes().

Here is the caller graph for this function:

std::string MosesTraining::SyntaxNode::GetLabel (  )  const [inline]

Definition at line 55 of file SyntaxTree.h.

References m_label.

Referenced by MosesTraining::ProcessAndStripXMLTags().

Here is the caller graph for this function:

SyntaxNode* MosesTraining::SyntaxNode::GetParent (  )  [inline]

Definition at line 64 of file SyntaxTree.h.

References m_parent.

Referenced by MosesTraining::SyntaxTree::ConnectNodes().

Here is the caller graph for this function:

float MosesTraining::SyntaxNode::GetPcfgScore (  )  const [inline]

Definition at line 58 of file SyntaxTree.h.

References m_pcfgScore.

int MosesTraining::SyntaxNode::GetStart (  )  const [inline]

Definition at line 49 of file SyntaxTree.h.

References m_start.

Referenced by MosesTraining::SyntaxTree::ConnectNodes().

Here is the caller graph for this function:

void MosesTraining::SyntaxNode::SetParent ( SyntaxNode parent  )  [inline]

Definition at line 67 of file SyntaxTree.h.

References m_parent.

Referenced by MosesTraining::SyntaxTree::ConnectNodes().

Here is the caller graph for this function:

void MosesTraining::SyntaxNode::SetPcfgScore ( float  score  )  [inline]

Definition at line 61 of file SyntaxTree.h.

References m_pcfgScore.

Referenced by MosesTraining::ProcessAndStripXMLTags().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 38 of file SyntaxTree.h.

Referenced by AddChild(), and GetChildren().

Definition at line 36 of file SyntaxTree.h.

Referenced by GetEnd().

std::string MosesTraining::SyntaxNode::m_label [protected]

Definition at line 37 of file SyntaxTree.h.

Referenced by GetLabel().

Definition at line 39 of file SyntaxTree.h.

Referenced by GetParent(), and SetParent().

Definition at line 40 of file SyntaxTree.h.

Referenced by GetPcfgScore(), and SetPcfgScore().

Definition at line 36 of file SyntaxTree.h.

Referenced by GetStart().


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

Generated on Thu Jun 4 00:33:04 2015 for Moses by  doxygen 1.5.9