BLEU< ElemType, PrecisionType > Class Template Reference
BLEU, or the Bilingual Evaluation Understudy, is an algorithm for evaluating the quality of text which has been machine translated from one natural language to another.
More...
BLEU, or the Bilingual Evaluation Understudy, is an algorithm for evaluating the quality of text which has been machine translated from one natural language to another.
It can also be used to evaluate text generated for a suite of natural language processing tasks.
The BLEU score is calculated using the following formula:
It is an array of various references or documents. So, the and each reference is an array of paragraphs. So, and then each paragraph is an array of tokenized words/string. Like, . For ex.
It is an array of paragraphs which has been machine translated or generated for any natural language processing task. Like, . And then, each paragraph is an array of words. The ith paragraph from the corpus is . For ex.
Whether or not to apply Lin et al. 2004 smoothing.
Returns
The Evaluate method returns the BLEU Score. This method also calculates other BLEU metrics (brevity penalty, translation length, reference length, ratio and precisions) which can be accessed by their corresponding accessor methods.