#include <SentenceAlignmentWithSyntax.h>
Public Member Functions | |
SentenceAlignmentWithSyntax (std::set< std::string > &tgtLabelColl, std::set< std::string > &srcLabelColl, std::map< std::string, int > &tgtTopLabelColl, std::map< std::string, int > &srcTopLabelColl, bool targetSyntax, bool sourceSyntax) | |
virtual | ~SentenceAlignmentWithSyntax () |
bool | processTargetSentence (const char *, int, bool boundaryRules) |
bool | processSourceSentence (const char *, int, bool boundaryRules) |
Public Attributes | |
SyntaxNodeCollection | targetTree |
SyntaxNodeCollection | sourceTree |
std::set< std::string > & | m_targetLabelCollection |
std::set< std::string > & | m_sourceLabelCollection |
std::map< std::string, int > & | m_targetTopLabelCollection |
std::map< std::string, int > & | m_sourceTopLabelCollection |
const bool | m_targetSyntax |
const bool | m_sourceSyntax |
Definition at line 34 of file SentenceAlignmentWithSyntax.h.
MosesTraining::SentenceAlignmentWithSyntax::SentenceAlignmentWithSyntax | ( | std::set< std::string > & | tgtLabelColl, | |
std::set< std::string > & | srcLabelColl, | |||
std::map< std::string, int > & | tgtTopLabelColl, | |||
std::map< std::string, int > & | srcTopLabelColl, | |||
bool | targetSyntax, | |||
bool | sourceSyntax | |||
) | [inline] |
Definition at line 45 of file SentenceAlignmentWithSyntax.h.
virtual MosesTraining::SentenceAlignmentWithSyntax::~SentenceAlignmentWithSyntax | ( | ) | [inline, virtual] |
Definition at line 59 of file SentenceAlignmentWithSyntax.h.
bool MosesTraining::SentenceAlignmentWithSyntax::processSourceSentence | ( | const char * | sourceString, | |
int | sentenceID, | |||
bool | boundaryRules | |||
) | [virtual] |
Reimplemented from MosesTraining::SentenceAlignment.
Definition at line 57 of file SentenceAlignmentWithSyntax.cpp.
References MosesTraining::XmlException::getMsg(), m_sourceLabelCollection, m_sourceSyntax, m_sourceTopLabelCollection, MosesTraining::ProcessAndStripXMLTags(), MosesTraining::SentenceAlignment::source, sourceTree, and util::tokenize().
bool MosesTraining::SentenceAlignmentWithSyntax::processTargetSentence | ( | const char * | targetString, | |
int | sentenceID, | |||
bool | boundaryRules | |||
) | [virtual] |
Reimplemented from MosesTraining::SentenceAlignment.
Definition at line 36 of file SentenceAlignmentWithSyntax.cpp.
References MosesTraining::XmlException::getMsg(), m_targetLabelCollection, m_targetSyntax, m_targetTopLabelCollection, MosesTraining::ProcessAndStripXMLTags(), MosesTraining::SentenceAlignment::target, targetTree, and util::tokenize().
std::set<std::string>& MosesTraining::SentenceAlignmentWithSyntax::m_sourceLabelCollection |
std::map<std::string, int>& MosesTraining::SentenceAlignmentWithSyntax::m_sourceTopLabelCollection |
std::set<std::string>& MosesTraining::SentenceAlignmentWithSyntax::m_targetLabelCollection |
std::map<std::string, int>& MosesTraining::SentenceAlignmentWithSyntax::m_targetTopLabelCollection |
Definition at line 37 of file SentenceAlignmentWithSyntax.h.
Referenced by collectWordLabelCounts(), and processTargetSentence().