Spaces:
				
			
			
	
			
			
					
		Running
		
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
	
		Yurii Paniv
		
	commited on
		
		
					Get stressifier back
Browse files- 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 | 
             
                )
         | 
