From d8808cbc69f43b1e1ab4085802f84f1b4ce31da1 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 26 Sep 2024 22:24:22 +0300 Subject: [PATCH] antigon-char3 --- utils/normalize.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/normalize.py b/utils/normalize.py index cc7cca2..b45329f 100644 --- a/utils/normalize.py +++ b/utils/normalize.py @@ -13,9 +13,10 @@ def normalize(text): """ Normalize English text to resemble Russian characters. """ + text = text.lower() if is_russian_wording(text): # Normalize the text by replacing characters - text = (text.lower() + text = (text .replace('e', 'е') .replace('o', 'о') .replace('x', 'х')