fix doc
Browse files
cer.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
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
|
70 |
-
N is the number of
|
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.
|