#include <SentenceAlignment.h>
Public Member Functions | |
SentenceAlignment () | |
std::string | getTargetString (const Vocabulary &vocab) const |
std::string | getAlignmentString () const |
Public Attributes | |
int | count |
std::vector< WORD_ID > | target |
std::vector< std::pair< int, int > > | alignment |
Definition at line 20 of file SentenceAlignment.h.
tmmt::SentenceAlignment::SentenceAlignment | ( | ) | [inline] |
Definition at line 25 of file SentenceAlignment.h.
std::string tmmt::SentenceAlignment::getAlignmentString | ( | ) | const [inline] |
Definition at line 30 of file SentenceAlignment.h.
References alignment, and util::StringStream::str().
std::string tmmt::SentenceAlignment::getTargetString | ( | const Vocabulary & | vocab | ) | const |
Definition at line 15 of file SentenceAlignment.cpp.
References tmmt::Vocabulary::GetWord(), util::StringStream::str(), and target.
std::vector< std::pair<int,int> > tmmt::SentenceAlignment::alignment |
Definition at line 21 of file SentenceAlignment.h.
std::vector< WORD_ID > tmmt::SentenceAlignment::target |