libreasr.lib.metrics.wer

libreasr.lib.metrics.wer(_pred, _true, norm=False, **kwargs)[source]

Computes the Word Error Rate using the jiwer library.

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

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

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