mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-09 00:54:18 +00:00
minor fixes
This commit is contained in:
parent
841a153a01
commit
4ab83db817
@ -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":
|
||||
remaining_words.append("DAYCARE")
|
||||
word_to_skip = 1
|
||||
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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user