from torchmetrics.text import CharErrorRate
metric = CharErrorRate()
preds = ["this is the prediction", "there is an other sample"]
target = ["this is the reference", "there is another one"]
values = [ ]
for _ in range(10):
    values.append(metric(preds, target))
fig_, ax_ = metric.plot(values)
