from torchmetrics.text.rouge import ROUGEScore metric = ROUGEScore() preds = "My name is John" target = "Is your name John" values = [ ] for _ in range(10): values.append(metric(preds, target)) fig_, ax_ = metric.plot(values)