#include <SentenceAlignment.h>
Public Member Functions | |
virtual | ~SentenceAlignment () |
virtual bool | processTargetSentence (const char *, int, bool boundaryRules) |
virtual bool | processSourceSentence (const char *, int, bool boundaryRules) |
bool | create (const char targetString[], const char sourceString[], const char alignmentString[], const char weightString[], int sentenceID, bool boundaryRules) |
void | invertAlignment () |
Public Attributes | |
std::vector< std::string > | target |
std::vector< std::string > | source |
std::vector< int > | alignedCountS |
std::vector< std::vector< int > > | alignedToT |
std::vector< std::vector< int > > | alignedToS |
int | sentenceID |
std::string | weightString |
Definition at line 30 of file SentenceAlignment.h.
MosesTraining::SentenceAlignment::~SentenceAlignment | ( | ) | [virtual] |
Definition at line 34 of file SentenceAlignment.cpp.
bool MosesTraining::SentenceAlignment::create | ( | const char | targetString[], | |
const char | sourceString[], | |||
const char | alignmentString[], | |||
const char | weightString[], | |||
int | sentenceID, | |||
bool | boundaryRules | |||
) |
Definition at line 58 of file SentenceAlignment.cpp.
References alignedCountS, alignedToT, processSourceSentence(), processTargetSentence(), source, target, and util::tokenize().
Referenced by main().
void MosesTraining::SentenceAlignment::invertAlignment | ( | ) |
Definition at line 130 of file SentenceAlignment.cpp.
References alignedToS, alignedToT, and source.
Referenced by main().
bool MosesTraining::SentenceAlignment::processSourceSentence | ( | const char * | sourceString, | |
int | , | |||
bool | boundaryRules | |||
) | [virtual] |
Reimplemented in MosesTraining::SentenceAlignmentWithSyntax.
Definition at line 50 of file SentenceAlignment.cpp.
References MosesTraining::addBoundaryWords(), source, and util::tokenize().
Referenced by create().
bool MosesTraining::SentenceAlignment::processTargetSentence | ( | const char * | targetString, | |
int | , | |||
bool | boundaryRules | |||
) | [virtual] |
Reimplemented in MosesTraining::SentenceAlignmentWithSyntax.
Definition at line 42 of file SentenceAlignment.cpp.
References MosesTraining::addBoundaryWords(), target, and util::tokenize().
Referenced by create().
std::vector<int> MosesTraining::SentenceAlignment::alignedCountS |
std::vector<std::vector<int> > MosesTraining::SentenceAlignment::alignedToS |
std::vector<std::vector<int> > MosesTraining::SentenceAlignment::alignedToT |
Definition at line 36 of file SentenceAlignment.h.
Referenced by create(), invertAlignment(), and MosesTraining::isAligned().
Definition at line 37 of file SentenceAlignment.h.
std::vector<std::string> MosesTraining::SentenceAlignment::source |
Definition at line 34 of file SentenceAlignment.h.
Referenced by create(), invertAlignment(), MosesTraining::isAligned(), MosesTraining::SentenceAlignmentWithSyntax::processSourceSentence(), and processSourceSentence().
std::vector<std::string> MosesTraining::SentenceAlignment::target |
Definition at line 33 of file SentenceAlignment.h.
Referenced by collectWordLabelCounts(), create(), MosesTraining::isAligned(), MosesTraining::SentenceAlignmentWithSyntax::processTargetSentence(), and processTargetSentence().
std::string MosesTraining::SentenceAlignment::weightString |
Definition at line 38 of file SentenceAlignment.h.