minor fixes

This commit is contained in:
JinZr 2023-09-15 10:52:10 +08:00
parent 841a153a01
commit 4ab83db817

View File

@ -85,9 +85,13 @@ def asr_text_post_processing(text: str) -> str:
remaining_words.append("ON")
remaining_words.append("TO")
continue
elif word == "DAY" and text_split[idx + 1] == "CARE":
elif word == "DAY":
try:
if text_split[idx + 1] == "CARE":
remaining_words.append("DAYCARE")
word_to_skip = 1
except:
remaining_words.append(word)
continue
remaining_words.append(word)