versae commited on
Commit
7ca8c95
1 Parent(s): 9e1f9cf

Update eval.py

Browse files
Files changed (1) hide show
  1. eval.py +3 -3
eval.py CHANGED
@@ -130,9 +130,9 @@ def normalize_text(original_text: str, dataset: str) -> str:
130
  text = re.sub('[úùüû]', 'u', text)
131
  text = re.sub('[«»]', '', text)
132
  text = re.sub('\s+', ' ', text)
133
- text = re.sub('<ee>', 'eee', text)
134
- text = re.sub('<qq>', 'qqq', text)
135
- text = re.sub('<mm>', 'mmm', text)
136
  text = re.sub('<inaudible>', 'xxx', text)
137
  text = re.sub('[<>]', '', text)
138
 
 
130
  text = re.sub('[úùüû]', 'u', text)
131
  text = re.sub('[«»]', '', text)
132
  text = re.sub('\s+', ' ', text)
133
+ text = re.sub('<e+h?>', 'eee', text)
134
+ text = re.sub('<m+>', 'mmm', text)
135
+ text = re.sub('<q+>', 'qqq', text)
136
  text = re.sub('<inaudible>', 'xxx', text)
137
  text = re.sub('[<>]', '', text)
138