wer
- systemds.operator.algorithm.wer(R: Frame, H: Frame)
This built-in function computes the word error rate (WER) defined as wer = (numSubst + numDel + numIns) / length(r)
- Parameters:
R – Input frame of reference strings, shape: [N x 1]
H – Input frame of hypothesis strings, shape: [N x 1]
- Returns:
Output matrix of word error rate per pair of strings, shape: [N x 1], where W[i,1] = wer(R[i,1], H[i,1])