from torchmetrics.text import SacreBLEUScore metric = SacreBLEUScore() preds = ['the cat is on the mat'] target = [['there is a cat on the mat', 'a cat is on the mat']] metric.update(preds, target) fig_, ax_ = metric.plot()