#include <SyntaxTree.h>
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) |
SyntaxNode * | GetParent () |
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 |
SyntaxNode * | m_parent |
float | m_pcfgScore |
Definition at line 33 of file SyntaxTree.h.
MosesTraining::SyntaxNode::SyntaxNode | ( | int | startPos, | |
int | endPos, | |||
std::string | label | |||
) | [inline] |
Definition at line 42 of file SyntaxTree.h.
void MosesTraining::SyntaxNode::AddChild | ( | SyntaxNode * | child | ) | [inline] |
Definition at line 70 of file SyntaxTree.h.
References m_children.
Referenced by MosesTraining::SyntaxTree::ConnectNodes().
const std::vector< SyntaxNode* >& MosesTraining::SyntaxNode::GetChildren | ( | ) | const [inline] |
int MosesTraining::SyntaxNode::GetEnd | ( | ) | const [inline] |
Definition at line 52 of file SyntaxTree.h.
References m_end.
Referenced by MosesTraining::SyntaxTree::ConnectNodes().
std::string MosesTraining::SyntaxNode::GetLabel | ( | ) | const [inline] |
Definition at line 55 of file SyntaxTree.h.
References m_label.
Referenced by MosesTraining::ProcessAndStripXMLTags().
SyntaxNode* MosesTraining::SyntaxNode::GetParent | ( | ) | [inline] |
Definition at line 64 of file SyntaxTree.h.
References m_parent.
Referenced by MosesTraining::SyntaxTree::ConnectNodes().
float MosesTraining::SyntaxNode::GetPcfgScore | ( | ) | const [inline] |
int MosesTraining::SyntaxNode::GetStart | ( | ) | const [inline] |
Definition at line 49 of file SyntaxTree.h.
References m_start.
Referenced by MosesTraining::SyntaxTree::ConnectNodes().
void MosesTraining::SyntaxNode::SetParent | ( | SyntaxNode * | parent | ) | [inline] |
Definition at line 67 of file SyntaxTree.h.
References m_parent.
Referenced by MosesTraining::SyntaxTree::ConnectNodes().
void MosesTraining::SyntaxNode::SetPcfgScore | ( | float | score | ) | [inline] |
Definition at line 61 of file SyntaxTree.h.
References m_pcfgScore.
Referenced by MosesTraining::ProcessAndStripXMLTags().
std::vector< SyntaxNode* > MosesTraining::SyntaxNode::m_children [protected] |
int MosesTraining::SyntaxNode::m_end [protected] |
std::string MosesTraining::SyntaxNode::m_label [protected] |
SyntaxNode* MosesTraining::SyntaxNode::m_parent [protected] |
float MosesTraining::SyntaxNode::m_pcfgScore [protected] |
int MosesTraining::SyntaxNode::m_start [protected] |