mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-26 10:16:14 +00:00
Update preprocess_gigaspeech2.py
This commit is contained in:
parent
aa17542e9e
commit
f5b8d5dad2
@ -75,12 +75,12 @@ def normalize_text(
|
||||
text = re.sub(r"\u00B0", "องศา", text) # °
|
||||
|
||||
# Remove blank symbols
|
||||
text = re.sub(r"\s", "", utt)
|
||||
text = re.sub(r"\s", "", text)
|
||||
|
||||
else:
|
||||
text = re.sub(r"\s+", " ", text).strip()
|
||||
|
||||
return utt
|
||||
return text
|
||||
|
||||
|
||||
def preprocess_gigaspeech2(args):
|
||||
|
Loading…
x
Reference in New Issue
Block a user