mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-14 04:22:21 +00:00
update
This commit is contained in:
parent
84759a2244
commit
b73f0550ef
@ -279,6 +279,7 @@ class TextNormalizer:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
text = self.en_tn_model.normalize(text)
|
text = self.en_tn_model.normalize(text)
|
||||||
|
text = re.sub(r"\s+", " ", text).strip()
|
||||||
|
|
||||||
cut["supervisions"][0]["text"] = text
|
cut["supervisions"][0]["text"] = text
|
||||||
del cut["supervisions"][0]["custom"]
|
del cut["supervisions"][0]["custom"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user