Spaces:
Running
Running
Yurii Paniv
commited on
Commit
Β·
305bf1a
1
Parent(s):
c0a9b4d
Fix black
Browse files
ukrainian_tts/formatter.py
CHANGED
@@ -11,18 +11,17 @@ def preprocess_text(text, use_autostress_model=False):
|
|
11 |
text = text.replace("`", "'")
|
12 |
text = text.replace("ΚΌ", "'")
|
13 |
text = text.replace("β¦", "...")
|
14 |
-
|
15 |
symbols = {
|
16 |
-
"β": "
|
17 |
-
"β": "
|
18 |
-
"β": "
|
19 |
-
"β": "
|
20 |
-
"Β«": "
|
21 |
-
"Β»": "
|
22 |
"β": "-",
|
23 |
"β": "-",
|
24 |
"β": "-",
|
25 |
-
|
26 |
}
|
27 |
for symbol in symbols.keys():
|
28 |
text = text.replace(symbol, symbols[symbol])
|
|
|
11 |
text = text.replace("`", "'")
|
12 |
text = text.replace("ΚΌ", "'")
|
13 |
text = text.replace("β¦", "...")
|
14 |
+
|
15 |
symbols = {
|
16 |
+
"β": '"',
|
17 |
+
"β": '"',
|
18 |
+
"β": '"',
|
19 |
+
"β": '"',
|
20 |
+
"Β«": '"',
|
21 |
+
"Β»": '"',
|
22 |
"β": "-",
|
23 |
"β": "-",
|
24 |
"β": "-",
|
|
|
25 |
}
|
26 |
for symbol in symbols.keys():
|
27 |
text = text.replace(symbol, symbols[symbol])
|