gchhablani commited on
Commit
11bee16
1 Parent(s): 2c67443

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +40 -0
README.md CHANGED
@@ -97,6 +97,46 @@ def chunked_wer(targets, predictions, chunk_size=None):
97
  end += chunk_size
98
  return float(S + D + I) / float(H + S + D)
99
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
 
101
  def remove_accents(input_str):
102
  if input_str in allowed_characters:
97
  end += chunk_size
98
  return float(S + D + I) / float(H + S + D)
99
 
100
+ allowed_characters = [
101
+ " ",
102
+ "'",
103
+ 'a',
104
+ 'b',
105
+ 'c',
106
+ 'd',
107
+ 'e',
108
+ 'f',
109
+ 'g',
110
+ 'h',
111
+ 'i',
112
+ 'j',
113
+ 'k',
114
+ 'l',
115
+ 'm',
116
+ 'n',
117
+ 'o',
118
+ 'p',
119
+ 'q',
120
+ 'r',
121
+ 's',
122
+ 't',
123
+ 'u',
124
+ 'v',
125
+ 'w',
126
+ 'x',
127
+ 'y',
128
+ 'z',
129
+ 'à',
130
+ 'á',
131
+ 'è',
132
+ 'é',
133
+ 'ì',
134
+ 'í',
135
+ 'ò',
136
+ 'ó',
137
+ 'ù',
138
+ 'ú',
139
+ ]
140
 
141
  def remove_accents(input_str):
142
  if input_str in allowed_characters: