Фикс произношения дат и температуры + wheather -лишние файлы
This commit is contained in:
@@ -237,7 +237,7 @@ def numbers_to_words(text: str) -> str:
|
||||
|
||||
preps_list = "|".join(map(re.escape, PREPOSITION_CASES.keys()))
|
||||
text = re.sub(
|
||||
rf"(?i)\b((?:{preps_list})\s+)?(\d+(?:[.,]\d+)?)(?=(\s+[а-яА-ЯёЁ]+))?\b",
|
||||
rf"(?i)(?<!\w)((?:{preps_list})\s+)?([+-]?\d+(?:[.,]\d+)?)(?=(\s+[а-яА-ЯёЁ]+))?\b",
|
||||
replace_cardinal_match,
|
||||
text,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user