Spaces:
Running
Running
Fix + removal with no accentor
Browse files- accentor.py +2 -1
accentor.py
CHANGED
@@ -36,7 +36,8 @@ accentor_transformer = Accentor()
|
|
36 |
|
37 |
|
38 |
def accentification(sentence: str, mode: str):
|
39 |
-
|
|
|
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 |
)
|