TERCPPNS_TERCpp::terCalc Class Reference

#include <tercalc.h>

Collaboration diagram for TERCPPNS_TERCpp::terCalc:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 terCalc ()
 ~terCalc ()
void setDebugMode (bool b)
terAlignment WERCalculation (vector< string > &hyp, vector< string > &ref)
hashMapInfos createConcordMots (vector< string > &hyp, vector< string > &ref)
terAlignment minimizeDistanceEdition (vector< string > &hyp, vector< string > &ref, vector< vecInt > &curHypSpans)
void minimizeDistanceEdition (vector< string > &hyp, vector< string > &ref, vector< vecInt > &curHypSpans, terAlignment *l_terAlign)
bool trouverIntersection (vecInt &refSpan, vecInt &hypSpan)
terAlignment TER (vector< string > &hyp, vector< string > &ref, float avRefLength)
terAlignment TER (vector< string > &hyp, vector< string > &ref)
terAlignment TER (vector< int > &hyp, vector< int > &ref)
bestShiftStructfindBestShift (vector< string > &cur, vector< string > &hyp, vector< string > &ref, hashMapInfos &rloc, TERCPPNS_TERCpp::terAlignment &med_align)
void calculateTerAlignment (terAlignment &align, vector< bool > *herr, vector< bool > *rerr, vector< int > *ralign)
vector< vecTerShift > * calculerPermutations (vector< string > &hyp, vector< string > &ref, hashMapInfos &rloc, TERCPPNS_TERCpp::terAlignment &align, vector< bool > *herr, vector< bool > *rerr, vector< int > *ralign)
alignmentStruct permuter (vector< string > &words, terShift &s)
alignmentStruct permuter (vector< string > &words, terShift *s)
alignmentStruct permuter (vector< string > &words, int start, int end, int newloc)

Public Attributes

int shift_cost
int insert_cost
int delete_cost
int substitute_cost
int match_cost
double infinite


Detailed Description

Author:

Definition at line 48 of file tercalc.h.


Constructor & Destructor Documentation

TERCPPNS_TERCpp::terCalc::terCalc (  ) 

Definition at line 38 of file tercalc.cpp.

References delete_cost, infinite, insert_cost, match_cost, shift_cost, and substitute_cost.

TERCPPNS_TERCpp::terCalc::~terCalc (  ) 

Definition at line 64 of file tercalc.cpp.


Member Function Documentation

void TERCPPNS_TERCpp::terCalc::calculateTerAlignment ( terAlignment align,
vector< bool > *  herr,
vector< bool > *  rerr,
vector< int > *  ralign 
)

Definition at line 688 of file tercalc.cpp.

References TERCPPNS_TERCpp::terAlignment::alignment, and TERCPPNS_TERCpp::terAlignment::toString().

Referenced by findBestShift().

Here is the call graph for this function:

Here is the caller graph for this function:

vector< vecTerShift > * TERCPPNS_TERCpp::terCalc::calculerPermutations ( vector< string > &  hyp,
vector< string > &  ref,
hashMapInfos rloc,
TERCPPNS_TERCpp::terAlignment align,
vector< bool > *  herr,
vector< bool > *  rerr,
vector< int > *  ralign 
)

hashMapInfos TERCPPNS_TERCpp::terCalc::createConcordMots ( vector< string > &  hyp,
vector< string > &  ref 
)

bestShiftStruct * TERCPPNS_TERCpp::terCalc::findBestShift ( vector< string > &  cur,
vector< string > &  hyp,
vector< string > &  ref,
hashMapInfos rloc,
TERCPPNS_TERCpp::terAlignment med_align 
)

void TERCPPNS_TERCpp::terCalc::minimizeDistanceEdition ( vector< string > &  hyp,
vector< string > &  ref,
vector< vecInt > &  curHypSpans,
terAlignment l_terAlign 
)

terAlignment TERCPPNS_TERCpp::terCalc::minimizeDistanceEdition ( vector< string > &  hyp,
vector< string > &  ref,
vector< vecInt > &  curHypSpans 
)

alignmentStruct TERCPPNS_TERCpp::terCalc::permuter ( vector< string > &  words,
int  start,
int  end,
int  newloc 
)

Definition at line 900 of file tercalc.cpp.

References TERCPPNS_Tools::join().

Here is the call graph for this function:

alignmentStruct TERCPPNS_TERCpp::terCalc::permuter ( vector< string > &  words,
TERCPPNS_TERCpp::terShift s 
)

Definition at line 894 of file tercalc.cpp.

References TERCPPNS_TERCpp::terShift::end, TERCPPNS_TERCpp::terShift::newloc, permuter(), and TERCPPNS_TERCpp::terShift::start.

Here is the call graph for this function:

alignmentStruct TERCPPNS_TERCpp::terCalc::permuter ( vector< string > &  words,
TERCPPNS_TERCpp::terShift s 
)

Definition at line 890 of file tercalc.cpp.

References TERCPPNS_TERCpp::terShift::end, TERCPPNS_TERCpp::terShift::newloc, and TERCPPNS_TERCpp::terShift::start.

Referenced by findBestShift(), and permuter().

Here is the caller graph for this function:

void TERCPPNS_TERCpp::terCalc::setDebugMode ( bool  b  ) 

Definition at line 1036 of file tercalc.cpp.

terAlignment TERCPPNS_TERCpp::terCalc::TER ( vector< int > &  hyp,
vector< int > &  ref 
)

Definition at line 78 of file tercalc.cpp.

References TERCPPNS_Tools::stringToVector(), and TER().

Here is the call graph for this function:

terAlignment TERCPPNS_TERCpp::terCalc::TER ( vector< string > &  hyp,
vector< string > &  ref 
)

terAlignment TERCPPNS_TERCpp::terCalc::TER ( vector< string > &  hyp,
vector< string > &  ref,
float  avRefLength 
)

Referenced by TER().

Here is the caller graph for this function:

bool TERCPPNS_TERCpp::terCalc::trouverIntersection ( vecInt refSpan,
vecInt hypSpan 
)

Definition at line 141 of file tercalc.cpp.

Referenced by minimizeDistanceEdition().

Here is the caller graph for this function:

terAlignment TERCPPNS_TERCpp::terCalc::WERCalculation ( vector< string > &  hyp,
vector< string > &  ref 
)

Definition at line 71 of file tercalc.cpp.

References minimizeDistanceEdition().

Here is the call graph for this function:


Member Data Documentation

Definition at line 78 of file tercalc.h.

Referenced by minimizeDistanceEdition(), and terCalc().

Definition at line 81 of file tercalc.h.

Referenced by minimizeDistanceEdition(), and terCalc().

Definition at line 77 of file tercalc.h.

Referenced by minimizeDistanceEdition(), and terCalc().

Definition at line 80 of file tercalc.h.

Referenced by minimizeDistanceEdition(), and terCalc().

Definition at line 76 of file tercalc.h.

Referenced by calculerPermutations(), and terCalc().

Definition at line 79 of file tercalc.h.

Referenced by minimizeDistanceEdition(), and terCalc().


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

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