MosesTraining::Syntax::GHKM::Subgraph Class Reference

#include <Subgraph.h>

Collaboration diagram for MosesTraining::Syntax::GHKM::Subgraph:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Subgraph (const Node *root)
 Subgraph (const Node *root, const std::set< const Node * > &leaves)
 Subgraph (const Subgraph &other, bool targetOnly=false)
const NodeGetRoot () const
const std::set< const Node * > & GetLeaves () const
int GetDepth () const
int GetSize () const
int GetNodeCount () const
float GetPcfgScore () const
bool IsTrivial () const
void GetTargetLeaves (std::vector< const Node * > &) const
void PrintTree (std::ostream &out) const
void PrintPartsOfSpeech (std::ostream &out) const
void GetPartsOfSpeech (std::vector< std::string > &out) const


Detailed Description

Definition at line 36 of file Subgraph.h.


Constructor & Destructor Documentation

MosesTraining::Syntax::GHKM::Subgraph::Subgraph ( const Node root  )  [inline]

Definition at line 39 of file Subgraph.h.

MosesTraining::Syntax::GHKM::Subgraph::Subgraph ( const Node root,
const std::set< const Node * > &  leaves 
) [inline]

Definition at line 46 of file Subgraph.h.

MosesTraining::Syntax::GHKM::Subgraph::Subgraph ( const Subgraph other,
bool  targetOnly = false 
) [inline]


Member Function Documentation

int MosesTraining::Syntax::GHKM::Subgraph::GetDepth (  )  const [inline]

Definition at line 101 of file Subgraph.h.

Referenced by MosesTraining::Syntax::GHKM::ComposedRule::AttemptComposition().

Here is the caller graph for this function:

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

int MosesTraining::Syntax::GHKM::Subgraph::GetNodeCount (  )  const [inline]

Definition at line 107 of file Subgraph.h.

Referenced by MosesTraining::Syntax::GHKM::ComposedRule::AttemptComposition().

Here is the caller graph for this function:

void MosesTraining::Syntax::GHKM::Subgraph::GetPartsOfSpeech ( std::vector< std::string > &  out  )  const

Definition at line 179 of file Subgraph.cpp.

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

Definition at line 110 of file Subgraph.h.

Referenced by MosesTraining::Syntax::GHKM::StsgRuleWriter::Write().

Here is the caller graph for this function:

const Node* MosesTraining::Syntax::GHKM::Subgraph::GetRoot (  )  const [inline]

int MosesTraining::Syntax::GHKM::Subgraph::GetSize (  )  const [inline]

Definition at line 104 of file Subgraph.h.

Referenced by MosesTraining::Syntax::GHKM::ComposedRule::AttemptComposition().

Here is the caller graph for this function:

void MosesTraining::Syntax::GHKM::Subgraph::GetTargetLeaves ( std::vector< const Node * > &  result  )  const

Definition at line 32 of file Subgraph.cpp.

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

Here is the caller graph for this function:

bool MosesTraining::Syntax::GHKM::Subgraph::IsTrivial (  )  const [inline]

Definition at line 114 of file Subgraph.h.

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

Here is the caller graph for this function:

void MosesTraining::Syntax::GHKM::Subgraph::PrintPartsOfSpeech ( std::ostream &  out  )  const

Definition at line 155 of file Subgraph.cpp.

void MosesTraining::Syntax::GHKM::Subgraph::PrintTree ( std::ostream &  out  )  const

Definition at line 125 of file Subgraph.cpp.

Referenced by MosesTraining::Syntax::GHKM::StsgRuleWriter::Write().

Here is the caller graph for this function:


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

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