#include <AlignmentGraph.h>
Public Member Functions | |
AlignmentGraph (const SyntaxTree *, const std::vector< std::string > &, const Alignment &) | |
~AlignmentGraph () | |
Node * | GetRoot () |
const std::vector< Node * > & | GetTargetNodes () |
void | ExtractMinimalRules (const Options &) |
void | ExtractComposedRules (const Options &) |
Definition at line 43 of file AlignmentGraph.h.
MosesTraining::Syntax::GHKM::AlignmentGraph::AlignmentGraph | ( | const SyntaxTree * | t, | |
const std::vector< std::string > & | s, | |||
const Alignment & | a | |||
) |
Definition at line 42 of file AlignmentGraph.cpp.
References MosesTraining::Syntax::GHKM::Node::AddChild(), MosesTraining::Syntax::GHKM::Node::AddParent(), MosesTraining::Syntax::GHKM::SOURCE, and src.
MosesTraining::Syntax::GHKM::AlignmentGraph::~AlignmentGraph | ( | ) |
Definition at line 80 of file AlignmentGraph.cpp.
void MosesTraining::Syntax::GHKM::AlignmentGraph::ExtractComposedRules | ( | const Options & | options | ) |
Definition at line 154 of file AlignmentGraph.cpp.
void MosesTraining::Syntax::GHKM::AlignmentGraph::ExtractMinimalRules | ( | const Options & | options | ) |
Definition at line 132 of file AlignmentGraph.cpp.
References MosesTraining::Syntax::GHKM::Node::AddRule(), MosesTraining::Syntax::GHKM::Node::GetSpan(), MosesTraining::Syntax::GHKM::Node::GetType(), MosesTraining::Syntax::GHKM::Subgraph::IsTrivial(), and MosesTraining::Syntax::GHKM::TREE.
Node* MosesTraining::Syntax::GHKM::AlignmentGraph::GetRoot | ( | ) | [inline] |
Definition at line 52 of file AlignmentGraph.h.
const std::vector<Node *>& MosesTraining::Syntax::GHKM::AlignmentGraph::GetTargetNodes | ( | ) | [inline] |
Definition at line 55 of file AlignmentGraph.h.