MosesTraining::SentenceAlignment Class Reference

#include <SentenceAlignment.h>

Inheritance diagram for MosesTraining::SentenceAlignment:

Inheritance graph
[legend]

List of all members.

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


Detailed Description

Definition at line 30 of file SentenceAlignment.h.


Constructor & Destructor Documentation

MosesTraining::SentenceAlignment::~SentenceAlignment (  )  [virtual]

Definition at line 34 of file SentenceAlignment.cpp.


Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void MosesTraining::SentenceAlignment::invertAlignment (  ) 

Definition at line 130 of file SentenceAlignment.cpp.

References alignedToS, alignedToT, and source.

Referenced by main().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 35 of file SentenceAlignment.h.

Referenced by create().

std::vector<std::vector<int> > MosesTraining::SentenceAlignment::alignedToS

Definition at line 36 of file SentenceAlignment.h.

Referenced by invertAlignment().

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

std::vector<std::string> MosesTraining::SentenceAlignment::target

Definition at line 38 of file SentenceAlignment.h.


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

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