Skip to content

Commit

Permalink
Merge pull request #193 from tomgwasira/patch-1
Browse files Browse the repository at this point in the history
Update evaluation.mdx for correct computation of CER.
  • Loading branch information
Deep-unlearning authored Feb 20, 2025
2 parents b853ee6 + 28e3001 commit 1beebf7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chapters/en/chapter5/evaluation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ In our example, we have 1 character substitution, 0 insertions, and 3 deletions.
$$
\begin{aligned}
CER &= \frac{S + I + D}{N} \\
&= \frac{1 + 0 + 3}{14} \\
&= 0.286
&= \frac{1 + 0 + 3}{17} \\
&= 0.235
\end{aligned}
$$

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.
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.

## Which metric should I use?

Expand Down

0 comments on commit 1beebf7

Please sign in to comment.