DashAI.back.metrics.Bleu

class Bleu[source]

A class for calculating BLEU scores between source and target sentences.

BLEU (bilingual evaluation understudy) is an algorithm for evaluating the quality of text which has been machine-translated from one natural language to another.

References

[1] https://en.wikipedia.org/wiki/BLEU

__init__()

Methods

__init__()

score(source_sentences, target_sentences)

Calculate the BLEU score between source and target sentences.

Attributes

COMPATIBLE_COMPONENTS

TYPE