Skip to content

Commit 1beebf7

Browse files
Merge pull request #193 from tomgwasira/patch-1
Update evaluation.mdx for correct computation of CER.
2 parents b853ee6 + 28e3001 commit 1beebf7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chapters/en/chapter5/evaluation.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@ In our example, we have 1 character substitution, 0 insertions, and 3 deletions.
126126
$$
127127
\begin{aligned}
128128
CER &= \frac{S + I + D}{N} \\
129-
&= \frac{1 + 0 + 3}{14} \\
130-
&= 0.286
129+
&= \frac{1 + 0 + 3}{17} \\
130+
&= 0.235
131131
\end{aligned}
132132
$$
133133

134-
Right! We have a CER of 0.286, or 28.6%. Notice how this is lower than our WER - we penalised the spelling error much less.
134+
Right! We have a CER of 0.235, or 23.5%. Notice how this is lower than our WER - we penalised the spelling error much less.
135135

136136
## Which metric should I use?
137137

0 commit comments

Comments
 (0)