diff --git a/egs/gigaspeech2/SSL/local/preprocess_gigaspeech2.py b/egs/gigaspeech2/SSL/local/preprocess_gigaspeech2.py index 3477cc1e5..2989157c0 100755 --- a/egs/gigaspeech2/SSL/local/preprocess_gigaspeech2.py +++ b/egs/gigaspeech2/SSL/local/preprocess_gigaspeech2.py @@ -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):