Yurii Paniv commited on
Commit
2079a96
1 Parent(s): ac7672f

Add stress in numbers

Browse files
Files changed (1) hide show
  1. 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": "а",