from torchmetrics.text.rouge import ROUGEScore metric = ROUGEScore() preds = "My name is John" target = "Is your name John" metric.update(preds, target) fig_, ax_ = metric.plot()