Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
joshua.metrics.TER Class Reference
Inheritance diagram for joshua.metrics.TER:
[legend]
Collaboration diagram for joshua.metrics.TER:
[legend]

List of all members.

Public Member Functions

 TER (String[] Metric_options)
double bestPossibleScore ()
double worstPossibleScore ()
int[] suffStats (String cand_str, int i)
int[][] suffStats (String[] cand_strings, int[] cand_indices)
void createSuffStatsFile (String cand_strings_fileName, String cand_indices_fileName, String outputFileName, int maxBatchSize)
int createTercomHypFile (BufferedReader inFile_cands, String hypFileName, int numCands)
int createTercomRefFile (BufferedReader inFile_indices, String refFileName, int numIndices)
int runTercom (String refFileName, String hypFileName, String outFileNamePrefix, int memSize)
void copySS (String inputFileName, PrintWriter outFile)
double score (int[] stats)
void printDetailedScore_fromStats (int[] stats, boolean oneLiner)

Protected Member Functions

void initialize ()

Private Member Functions

void writeLine (String line, BufferedWriter writer) throws IOException

Private Attributes

boolean caseSensitive
boolean withPunctuation
int beamWidth
int maxShiftDist
String tercomJarFileName
int numScoringThreads

Constructor & Destructor Documentation

joshua.metrics.TER.TER ( String[]  Metric_options)

Here is the call graph for this function:


Member Function Documentation

void joshua.metrics.TER.copySS ( String  inputFileName,
PrintWriter  outFile 
)

Here is the caller graph for this function:

void joshua.metrics.TER.createSuffStatsFile ( String  cand_strings_fileName,
String  cand_indices_fileName,
String  outputFileName,
int  maxBatchSize 
)

Reimplemented from joshua.metrics.EvaluationMetric.

Here is the call graph for this function:

Here is the caller graph for this function:

int joshua.metrics.TER.createTercomHypFile ( BufferedReader  inFile_cands,
String  hypFileName,
int  numCands 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int joshua.metrics.TER.createTercomRefFile ( BufferedReader  inFile_indices,
String  refFileName,
int  numIndices 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void joshua.metrics.TER.initialize ( ) [protected, virtual]

Implements joshua.metrics.EvaluationMetric.

Here is the caller graph for this function:

void joshua.metrics.TER.printDetailedScore_fromStats ( int[]  stats,
boolean  oneLiner 
) [virtual]

Implements joshua.metrics.EvaluationMetric.

Here is the call graph for this function:

Here is the caller graph for this function:

int joshua.metrics.TER.runTercom ( String  refFileName,
String  hypFileName,
String  outFileNamePrefix,
int  memSize 
)

Here is the caller graph for this function:

double joshua.metrics.TER.score ( int[]  stats) [virtual]

Implements joshua.metrics.EvaluationMetric.

Here is the caller graph for this function:

int [] joshua.metrics.TER.suffStats ( String  cand_str,
int  i 
) [virtual]

Implements joshua.metrics.EvaluationMetric.

Here is the caller graph for this function:

int [][] joshua.metrics.TER.suffStats ( String[]  cand_strings,
int[]  cand_indices 
)

Reimplemented from joshua.metrics.EvaluationMetric.

Here is the call graph for this function:

void joshua.metrics.TER.writeLine ( String  line,
BufferedWriter  writer 
) throws IOException [private]

Here is the caller graph for this function:


Member Data Documentation