Hansda's picture
Release Tiny Dictation English and complete benchmarks
531b9c5 verified
Raw History Blame Contribute Delete
273 Bytes
'Fine-tune the tiny acoustic model on English dictation recordings.'
import re
REPLACEMENTS = str.maketrans({"’": "'", "‘": "'", "ʼ": "'", "é": "e"})
def normalize(text):
return " ".join(re.sub(r"[^a-z' ]", " ", text.lower().translate(REPLACEMENTS)).split())