AlignedSentenceSyntax Class Reference

#include <AlignedSentenceSyntax.h>

Inheritance diagram for AlignedSentenceSyntax:

Inheritance graph
[legend]
Collaboration diagram for AlignedSentenceSyntax:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AlignedSentenceSyntax (int lineNum, const std::string &source, const std::string &target, const std::string &alignment)
virtual ~AlignedSentenceSyntax ()
void Create (const Parameter &params)

Protected Member Functions

void XMLParse (Phrase &output, SyntaxTree &tree, const std::string input, const Parameter &params)
void XMLParse (Phrase &output, SyntaxTree &tree, const pugi::xml_node &parentNode, const Parameter &params)
void CreateNonTerms ()
void CreateNonTerms (ConsistentPhrase &cp, const SyntaxTree::Labels &sourceLabels, const SyntaxTree::Labels &targetLabels)
void Populate (bool isSyntax, int mixedSyntaxType, const Parameter &params, std::string line, Phrase &phrase, SyntaxTree &tree)

Protected Attributes

std::string m_sourceStr
std::string m_targetStr
std::string m_alignmentStr
SyntaxTree m_sourceTree
SyntaxTree m_targetTree


Detailed Description

Definition at line 14 of file AlignedSentenceSyntax.h.


Constructor & Destructor Documentation

AlignedSentenceSyntax::AlignedSentenceSyntax ( int  lineNum,
const std::string &  source,
const std::string &  target,
const std::string &  alignment 
)

Definition at line 15 of file AlignedSentenceSyntax.cpp.

AlignedSentenceSyntax::~AlignedSentenceSyntax (  )  [virtual]

Definition at line 26 of file AlignedSentenceSyntax.cpp.


Member Function Documentation

void AlignedSentenceSyntax::Create ( const Parameter params  )  [virtual]

void AlignedSentenceSyntax::CreateNonTerms ( ConsistentPhrase cp,
const SyntaxTree::Labels sourceLabels,
const SyntaxTree::Labels targetLabels 
) [protected]

Definition at line 166 of file AlignedSentenceSyntax.cpp.

References ConsistentPhrase::AddNonTerms().

Here is the call graph for this function:

void AlignedSentenceSyntax::CreateNonTerms (  )  [protected]

Definition at line 144 of file AlignedSentenceSyntax.cpp.

References ConsistentPhrase::corners, SyntaxTree::Find(), ConsistentPhrases::GetColl(), AlignedSentence::m_consistentPhrases, AlignedSentence::m_source, m_sourceTree, m_targetTree, and MosesTraining::sourceLabels.

Referenced by Create().

Here is the call graph for this function:

Here is the caller graph for this function:

void AlignedSentenceSyntax::Populate ( bool  isSyntax,
int  mixedSyntaxType,
const Parameter params,
std::string  line,
Phrase phrase,
SyntaxTree tree 
) [protected]

Referenced by Create().

Here is the caller graph for this function:

void AlignedSentenceSyntax::XMLParse ( Phrase output,
SyntaxTree tree,
const pugi::xml_node parentNode,
const Parameter params 
) [protected]

Definition at line 80 of file AlignedSentenceSyntax.cpp.

References SyntaxTree::Add(), pugi::xml_attribute::as_string(), Escape(), pugi::xml_node::first_child(), Moses::Tokenize(), and XMLParse().

Here is the call graph for this function:

void AlignedSentenceSyntax::XMLParse ( Phrase output,
SyntaxTree tree,
const std::string  input,
const Parameter params 
) [protected]

Definition at line 131 of file AlignedSentenceSyntax.cpp.

References pugi::xml_node::child(), pugi::xml_document::load(), pugi::parse_comments, pugi::parse_default, and sapt::topNode().

Referenced by XMLParse().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

std::string AlignedSentenceSyntax::m_alignmentStr [protected]

Definition at line 27 of file AlignedSentenceSyntax.h.

Referenced by Create().

std::string AlignedSentenceSyntax::m_sourceStr [protected]

Definition at line 27 of file AlignedSentenceSyntax.h.

Referenced by Create().

Definition at line 28 of file AlignedSentenceSyntax.h.

Referenced by Create(), and CreateNonTerms().

std::string AlignedSentenceSyntax::m_targetStr [protected]

Definition at line 27 of file AlignedSentenceSyntax.h.

Referenced by Create().

Definition at line 28 of file AlignedSentenceSyntax.h.

Referenced by Create(), and CreateNonTerms().


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

Generated on Thu Jul 6 00:31:45 2017 for Moses by  doxygen 1.5.9