lm_polygraph.generation_metrics.bart_score module
- class lm_polygraph.generation_metrics.bart_score.BartScoreSeqMetric(score_type: str = 'rh', device=None, max_length=256, checkpoint='facebook/bart-large-cnn')[source]
Bases:
GenerationMetricCalculates BARTScore metric (https://arxiv.org/abs/2106.11520) between model-generated texts and ground truth texts.