ctl commited on
Commit
72f3c91
1 Parent(s): b353b5b
Files changed (1) hide show
  1. cer.py +3 -3
cer.py CHANGED
@@ -1,4 +1,4 @@
1
- # coding=utf-8
2
  # Copyright 2021 The HuggingFace Datasets Authors.
3
  #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -66,8 +66,8 @@ where
66
  S is the number of substitutions,
67
  D is the number of deletions,
68
  I is the number of insertions,
69
- C is the number of correct words,
70
- N is the number of words in the reference (N=S+D+C).
71
 
72
  CER's output is always a number between 0 and 1. This value indicates the percentage of characters that were incorrectly predicted. The lower the value, the better the
73
  performance of the ASR system with a CER of 0 being a perfect score.
 
1
+ # coding=utf-8
2
  # Copyright 2021 The HuggingFace Datasets Authors.
3
  #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
 
66
  S is the number of substitutions,
67
  D is the number of deletions,
68
  I is the number of insertions,
69
+ C is the number of correct characters,
70
+ N is the number of characters in the reference (N=S+D+C).
71
 
72
  CER's output is always a number between 0 and 1. This value indicates the percentage of characters that were incorrectly predicted. The lower the value, the better the
73
  performance of the ASR system with a CER of 0 being a perfect score.