paln tcode

This commit is contained in:
hsafaei
2025-06-07 15:17:39 +03:30
parent b2ae4b810c
commit 53764fd4ef
6 changed files with 642 additions and 81 deletions
+1
View File
@@ -332,6 +332,7 @@ class TextNormalizer:
# text = re.sub(r"([^\d \/\\]+?)(\d)", r"\1 \2", text)
# text = re.sub(r"(\d+)([^\d \/\\]+?)", r"\1 \2", text)
text = re.sub(r"[^\/](\d+)([\u0600-\u06FF\u0750-\u077F]+?)", r"\1 \2", text)
text = re.sub(r"([\u0600-\u06FF\u0750-\u077F]+?)(\d+)", r"\1 \2", text)
# ر54ر44ر135