From b9ac3ee3c63a5a56bbd9ca42c453ec5c2935bbec Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 26 Sep 2024 23:19:10 +0300 Subject: [PATCH] less-garbage3 --- utils/normalize.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/normalize.py b/utils/normalize.py index f8e6711..bc15dbd 100644 --- a/utils/normalize.py +++ b/utils/normalize.py @@ -17,6 +17,9 @@ def normalize(text): if is_russian_wording(text): # Normalize the text by replacing characters text = (text + .replace(' ', ' ') + .replace(' ', ' ') + .replace(' ', ' ') .replace('e', 'е') .replace('o', 'о') .replace('x', 'х')