File Exchange

image thumbnail

Word Error Rate

version 1.0 (8.67 KB) by

The function calculates WER between word sequences H (hypothesis) and R (reference).



View License

Word error rate (WER) is a measure (metric) of the performance of an automatic speech recognition, machine translation etc.
The function is intended for calculation of WER between word sequence H (hypothesis) and word sequence R (reference).
For calculation we use Levenshtein distance on word level. Levenshtein distance is a minimal quantity of insertions, deletions and substitutions of words for conversion of a hypothesis to a reference. WER=D(H,R)/N, where D(H,R) is a Levenshtein distance between H and R and N is the number of words in the reference R. H and R are cell arrays of words (for example after using TEXTSCAN) or cells with word sequences or strings. Types H and R may be different.

Comments and Ratings (0)

MATLAB Release
MATLAB 8.5 (R2015a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video