mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-09 17:14:20 +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("ON")
|
||||||
remaining_words.append("TO")
|
remaining_words.append("TO")
|
||||||
continue
|
continue
|
||||||
elif word == "DAY" and text_split[idx + 1] == "CARE":
|
elif word == "DAY":
|
||||||
remaining_words.append("DAYCARE")
|
try:
|
||||||
word_to_skip = 1
|
if text_split[idx + 1] == "CARE":
|
||||||
|
remaining_words.append("DAYCARE")
|
||||||
|
word_to_skip = 1
|
||||||
|
except:
|
||||||
|
remaining_words.append(word)
|
||||||
continue
|
continue
|
||||||
remaining_words.append(word)
|
remaining_words.append(word)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user