Spaces:
Running
Running
Yurii Paniv
commited on
Commit
•
2079a96
1
Parent(s):
ac7672f
Add stress in numbers
Browse files- formatter.py +10 -10
formatter.py
CHANGED
@@ -3,16 +3,16 @@ def preprocess_text(text):
|
|
3 |
text = text.replace("`", "'")
|
4 |
text = text.replace("ʼ", "'")
|
5 |
# numbers
|
6 |
-
text = text.replace("1", "
|
7 |
-
text = text.replace("2", "
|
8 |
-
text = text.replace("3", "
|
9 |
-
text = text.replace("4", "
|
10 |
-
text = text.replace("5", "п'
|
11 |
-
text = text.replace("6", "
|
12 |
-
text = text.replace("7", "
|
13 |
-
text = text.replace("8", "
|
14 |
-
text = text.replace("9", "
|
15 |
-
text = text.replace("0", "
|
16 |
# speak english alphabet using brute force transliteration
|
17 |
english = {
|
18 |
"a": "а",
|
|
|
3 |
text = text.replace("`", "'")
|
4 |
text = text.replace("ʼ", "'")
|
5 |
# numbers
|
6 |
+
text = text.replace("1", "од+ин ")
|
7 |
+
text = text.replace("2", "дв+а ")
|
8 |
+
text = text.replace("3", "тр+и ")
|
9 |
+
text = text.replace("4", "чот+ири ")
|
10 |
+
text = text.replace("5", "п'+ять ")
|
11 |
+
text = text.replace("6", "ш+ість ")
|
12 |
+
text = text.replace("7", "с+ім ")
|
13 |
+
text = text.replace("8", "в+ісім ")
|
14 |
+
text = text.replace("9", "д+ев'ять ")
|
15 |
+
text = text.replace("0", "н+уль ")
|
16 |
# speak english alphabet using brute force transliteration
|
17 |
english = {
|
18 |
"a": "а",
|