Yurii Paniv commited on
Commit
a4d1a17
·
unverified ·
1 Parent(s): 784546d

Recreate stressifier

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