Class BleuSpec (1.49.0)

BleuSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Spec for bleu score metric - calculates the precision of n-grams in the prediction as compared to reference - returns a score ranging between 0 to 1.

Methods

BleuSpec

BleuSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Spec for bleu score metric - calculates the precision of n-grams in the prediction as compared to reference - returns a score ranging between 0 to 1.