Yurii Paniv commited on
Commit
7a439aa
·
unverified ·
1 Parent(s): dfad826

Get stressifier back

Browse files
Files changed (1) hide show
  1. ukrainian_tts/stress.py +2 -1
ukrainian_tts/stress.py CHANGED
@@ -2,6 +2,8 @@ from typing import List
2
  from ukrainian_word_stress import Stressifier, StressSymbol
3
  import ukrainian_accentor as accentor
4
 
 
 
5
  vowels = "аеєиіїоуюя"
6
  consonants = "бвгґджзйклмнпрстфхцчшщь"
7
  special = "'-"
@@ -37,7 +39,6 @@ def stress_with_model(text: str):
37
 
38
 
39
  def stress_dict(sentence: str):
40
- stressify = Stressifier(stress_symbol=StressSymbol.CombiningAcuteAccent)
41
  stressed = stressify(sentence.replace("+", "")).replace(
42
  StressSymbol.CombiningAcuteAccent, "+"
43
  )
 
2
  from ukrainian_word_stress import Stressifier, StressSymbol
3
  import ukrainian_accentor as accentor
4
 
5
+ stressify = Stressifier(stress_symbol=StressSymbol.CombiningAcuteAccent)
6
+
7
  vowels = "аеєиіїоуюя"
8
  consonants = "бвгґджзйклмнпрстфхцчшщь"
9
  special = "'-"
 
39
 
40
 
41
  def stress_dict(sentence: str):
 
42
  stressed = stressify(sentence.replace("+", "")).replace(
43
  StressSymbol.CombiningAcuteAccent, "+"
44
  )