libreasr.lib.metrics.cer

libreasr.lib.metrics.cer(_pred, _true, norm=True)[source]

Computes the Character Error Rate using the editdistance library.

Parameters
  • _pred (str) – space-separated sentence (prediction)

  • _true (str) – space-separated sentence (ground truth)

  • norm (bool) – divide by length of ground truth