'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())