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

List of all members.

Public Member Functions

 SourceBLEU ()
 SourceBLEU (String[] options)
 SourceBLEU (int num_references, String method, int source_index, boolean use_brevity_penalty)
double bestPossibleScore ()
double worstPossibleScore ()
int[] suffStats (String cand_str, int i)
int effLength (int candLength, int i)
void printDetailedScore_fromStats (int[] stats, boolean oneLiner)

Protected Member Functions

void initialize ()
void set_maxNgramCounts ()

Private Attributes

int sourceReferenceIndex
int[] sourceWordCount
boolean useBrevityPenalty

Static Private Attributes

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

Constructor & Destructor Documentation

Here is the call graph for this function:

joshua.metrics.SourceBLEU.SourceBLEU ( String[]  options)

Here is the call graph for this function:

joshua.metrics.SourceBLEU.SourceBLEU ( int  num_references,
String  method,
int  source_index,
boolean  use_brevity_penalty 
)

Here is the call graph for this function:


Member Function Documentation

Reimplemented from joshua.metrics.BLEU.

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

Reimplemented from joshua.metrics.BLEU.

Here is the caller graph for this function:

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

Reimplemented from joshua.metrics.BLEU.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented from joshua.metrics.BLEU.

Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented from joshua.metrics.BLEU.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented from joshua.metrics.BLEU.

Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented from joshua.metrics.BLEU.


Member Data Documentation

final Logger joshua.metrics.SourceBLEU.logger = Logger.getLogger(SourceBLEU.class.getName()) [static, private]

Reimplemented from joshua.metrics.BLEU.