#include <terAlignment.h>
Public Member Functions | |
terAlignment () | |
string | toString () |
void | scoreDetails () |
string | join (string delim, vector< string > arr) |
double | score () |
double | scoreAv () |
string | printAlignments () |
string | printAllShifts () |
void | set (terAlignment &l_terAlignment) |
void | set (terAlignment *l_terAlignment) |
Public Attributes | |
vector< string > | ref |
vector< string > | hyp |
vector< string > | aftershift |
vector< terShift > | allshifts |
vector< int > | hyp_int |
vector< int > | aftershift_int |
double | numEdits |
double | numWords |
double | averageWords |
vector< char > | alignment |
string | bestRef |
int | numIns |
int | numDel |
int | numSub |
int | numSft |
int | numWsf |
Definition at line 37 of file terAlignment.h.
TERCPPNS_TERCpp::terAlignment::terAlignment | ( | ) |
Definition at line 27 of file terAlignment.cpp.
References averageWords, numDel, numEdits, numIns, numSft, numSub, numWords, and numWsf.
string TERCPPNS_TERCpp::terAlignment::join | ( | string | delim, | |
vector< string > | arr | |||
) |
Definition at line 134 of file terAlignment.cpp.
Referenced by TERCPPNS_TERCpp::terCalc::findBestShift(), and toString().
string TERCPPNS_TERCpp::terAlignment::printAlignments | ( | ) |
string TERCPPNS_TERCpp::terAlignment::printAllShifts | ( | ) |
double TERCPPNS_TERCpp::terAlignment::score | ( | ) |
double TERCPPNS_TERCpp::terAlignment::scoreAv | ( | ) |
Definition at line 161 of file terAlignment.cpp.
References averageWords, and numEdits.
Referenced by toString().
void TERCPPNS_TERCpp::terAlignment::scoreDetails | ( | ) |
void TERCPPNS_TERCpp::terAlignment::set | ( | terAlignment * | l_terAlignment | ) |
Definition at line 71 of file terAlignment.cpp.
References aftershift, aftershift_int, alignment, allshifts, averageWords, bestRef, hyp, hyp_int, numDel, numEdits, numIns, numSft, numSub, numWords, numWsf, and ref.
void TERCPPNS_TERCpp::terAlignment::set | ( | terAlignment & | l_terAlignment | ) |
Definition at line 47 of file terAlignment.cpp.
References aftershift, aftershift_int, alignment, allshifts, averageWords, bestRef, hyp, hyp_int, numDel, numEdits, numIns, numSft, numSub, numWords, numWsf, and ref.
Referenced by TERCPPNS_TERCpp::terCalc::findBestShift(), TERCPPNS_TERCpp::bestShiftStruct::set(), and TERCPPNS_TERCpp::bestShiftStruct::setBestAlign().
string TERCPPNS_TERCpp::terAlignment::toString | ( | ) |
Definition at line 96 of file terAlignment.cpp.
References aftershift, alignment, allshifts, averageWords, hyp, join(), numEdits, ref, and scoreAv().
Referenced by TERCPPNS_TERCpp::terCalc::calculateTerAlignment(), TERCPPNS_TERCpp::terCalc::findBestShift(), TERCPPNS_TERCpp::terCalc::minimizeDistanceEdition(), TERCPPNS_TERCpp::terCalc::TER(), and TERCPPNS_TERCpp::bestShiftStruct::toString().
vector<string> TERCPPNS_TERCpp::terAlignment::aftershift |
Definition at line 44 of file terAlignment.h.
Referenced by TERCPPNS_TERCpp::terCalc::findBestShift(), set(), TERCPPNS_TERCpp::terCalc::TER(), and toString().
vector<int> TERCPPNS_TERCpp::terAlignment::aftershift_int |
vector<char> TERCPPNS_TERCpp::terAlignment::alignment |
Definition at line 52 of file terAlignment.h.
Referenced by TERCPPNS_TERCpp::terCalc::calculateTerAlignment(), TERCPPNS_TERCpp::terCalc::minimizeDistanceEdition(), printAlignments(), scoreDetails(), set(), TERCPPNS_TERCpp::terCalc::TER(), and toString().
Definition at line 45 of file terAlignment.h.
Referenced by printAllShifts(), scoreDetails(), set(), TERCPPNS_TERCpp::terCalc::TER(), and toString().
Definition at line 51 of file terAlignment.h.
Referenced by TERCPPNS_TERCpp::terCalc::minimizeDistanceEdition(), scoreAv(), set(), terAlignment(), and toString().
vector<string> TERCPPNS_TERCpp::terAlignment::hyp |
Definition at line 43 of file terAlignment.h.
Referenced by TERCPPNS_TERCpp::terCalc::findBestShift(), TERCPPNS_TERCpp::terCalc::minimizeDistanceEdition(), set(), TERCPPNS_TERCpp::terCalc::TER(), and toString().
vector<int> TERCPPNS_TERCpp::terAlignment::hyp_int |
Definition at line 56 of file terAlignment.h.
Referenced by scoreDetails(), set(), and terAlignment().
Definition at line 49 of file terAlignment.h.
Referenced by TERCPPNS_TERCpp::terCalc::findBestShift(), TERCPPNS_TERCpp::terCalc::minimizeDistanceEdition(), score(), scoreAv(), set(), TERCPPNS_TERCpp::terCalc::TER(), terAlignment(), and toString().
Definition at line 55 of file terAlignment.h.
Referenced by scoreDetails(), set(), and terAlignment().
Definition at line 58 of file terAlignment.h.
Referenced by scoreDetails(), set(), and terAlignment().
Definition at line 57 of file terAlignment.h.
Referenced by scoreDetails(), set(), and terAlignment().
Definition at line 50 of file terAlignment.h.
Referenced by TERCPPNS_TERCpp::terCalc::minimizeDistanceEdition(), score(), set(), and terAlignment().
Definition at line 59 of file terAlignment.h.
Referenced by scoreDetails(), set(), and terAlignment().
vector<string> TERCPPNS_TERCpp::terAlignment::ref |
Definition at line 42 of file terAlignment.h.
Referenced by TERCPPNS_TERCpp::terCalc::findBestShift(), TERCPPNS_TERCpp::terCalc::minimizeDistanceEdition(), set(), TERCPPNS_TERCpp::terCalc::TER(), and toString().