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

List of all members.

Classes

enum  EffectiveLengthMethod

Public Member Functions

 BLEU ()
 BLEU (String[] BLEU_options)
 BLEU (int mxGrmLn, String methodStr)
double bestPossibleScore ()
double worstPossibleScore ()
int[] suffStats (String cand_str, int i)
void set_prec_suffStats (int[] stats, String[] words, int i)
int effLength (int candLength, int i)
double score (int[] stats)
void printDetailedScore_fromStats (int[] stats, boolean oneLiner)
HashMap< String, Integer >[] getNgramCountsArray (String cand_str)
HashMap< String, Integer >[] getNgramCountsArray (String[] words)
HashMap< String, Integer > getNgramCountsAll (String cand_str)
HashMap< String, Integer > getNgramCountsAll (String[] words)

Protected Member Functions

void initialize ()
void set_weightsArray ()
void set_maxNgramCounts ()
int wordCount (String cand_str)

Protected Attributes

int maxGramLength
EffectiveLengthMethod effLengthMethod
HashMap< String, Integer >[] maxNgramCounts
int[][] refWordCount
double[] weights

Static Private Attributes

static final Logger logger = Logger.getLogger(BLEU.class.getName())

Constructor & Destructor Documentation

joshua.metrics.BLEU.BLEU ( String[]  BLEU_options)
joshua.metrics.BLEU.BLEU ( int  mxGrmLn,
String  methodStr 
)

Here is the call graph for this function:


Member Function Documentation

int joshua.metrics.BLEU.effLength ( int  candLength,
int  i 
)

Reimplemented in joshua.metrics.Precis, joshua.metrics.MinimumChangeBLEU, and joshua.metrics.SourceBLEU.

Here is the caller graph for this function:

HashMap<String, Integer> joshua.metrics.BLEU.getNgramCountsAll ( String  cand_str)

Here is the caller graph for this function:

HashMap<String, Integer> joshua.metrics.BLEU.getNgramCountsAll ( String[]  words)
HashMap<String, Integer> [] joshua.metrics.BLEU.getNgramCountsArray ( String  cand_str)

Here is the caller graph for this function:

HashMap<String, Integer> [] joshua.metrics.BLEU.getNgramCountsArray ( String[]  words)
void joshua.metrics.BLEU.initialize ( ) [protected, virtual]

Implements joshua.metrics.EvaluationMetric.

Reimplemented in joshua.metrics.Precis, joshua.metrics.GradeLevelBLEU, joshua.metrics.SourceBLEU, and joshua.metrics.MinimumChangeBLEU.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements joshua.metrics.EvaluationMetric.

Reimplemented in joshua.metrics.Precis, joshua.metrics.GradeLevelBLEU, joshua.metrics.MinimumChangeBLEU, and joshua.metrics.SourceBLEU.

Here is the caller graph for this function:

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

Implements joshua.metrics.EvaluationMetric.

Reimplemented in joshua.metrics.Precis, joshua.metrics.GradeLevelBLEU, and joshua.metrics.MinimumChangeBLEU.

Here is the caller graph for this function:

Reimplemented in joshua.metrics.Precis, joshua.metrics.SourceBLEU, and joshua.metrics.MinimumChangeBLEU.

Here is the call graph for this function:

Here is the caller graph for this function:

void joshua.metrics.BLEU.set_prec_suffStats ( int[]  stats,
String[]  words,
int  i 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

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

Implements joshua.metrics.EvaluationMetric.

Reimplemented in joshua.metrics.Precis, joshua.metrics.MinimumChangeBLEU, joshua.metrics.SourceBLEU, joshua.metrics.GradeLevelBLEU, and joshua.metrics.BLEU_SBP.

Here is the call graph for this function:

Here is the caller graph for this function:

int joshua.metrics.BLEU.wordCount ( String  cand_str) [protected]

Here is the caller graph for this function:


Member Data Documentation

final Logger joshua.metrics.BLEU.logger = Logger.getLogger(BLEU.class.getName()) [static, private]
HashMap<String, Integer> [] joshua.metrics.BLEU.maxNgramCounts [protected]
int [][] joshua.metrics.BLEU.refWordCount [protected]
double [] joshua.metrics.BLEU.weights [protected]