theodotus commited on
Commit
7ad0f22
1 Parent(s): 78cc010

Fix + removal with no accentor

Browse files
Files changed (1) hide show
  1. accentor.py +2 -1
accentor.py CHANGED
@@ -36,7 +36,8 @@ accentor_transformer = Accentor()
36
 
37
 
38
  def accentification(sentence: str, mode: str):
39
- sentence = sentence.replace("+", "")
 
40
  sentence = sentence.replace(
41
  StressSymbol.CombiningAcuteAccent, ""
42
  )
36
 
37
 
38
  def accentification(sentence: str, mode: str):
39
+ if (mode != "none"):
40
+ sentence = sentence.replace("+", "")
41
  sentence = sentence.replace(
42
  StressSymbol.CombiningAcuteAccent, ""
43
  )