Class RougeSpec (1.49.0)

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

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

Attributes

NameDescription
rouge_type str
Optional. Supported rouge types are rougen[1-9], rougeL and rougeLsum.
use_stemmer bool
Optional. Whether to use stemmer to compute rouge score.
split_summaries bool
Optional. Whether to split summaries while using rougeLsum.

Methods

RougeSpec

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

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