Yurii Paniv commited on
Commit
305bf1a
β€’
1 Parent(s): c0a9b4d
Files changed (1) hide show
  1. ukrainian_tts/formatter.py +7 -8
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])