Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def fix_words(words: typing.List[str]) -> typing.List[str]:
|
|
26 |
fixed_words = []
|
27 |
|
28 |
for word, pos in tagger.tag(words):
|
29 |
-
if pos[-1] == "
|
30 |
if word[-1] != "ِ":
|
31 |
if (word[-1] == "ه") and (word[-2] != "ا"):
|
32 |
word += "ی"
|
|
|
26 |
fixed_words = []
|
27 |
|
28 |
for word, pos in tagger.tag(words):
|
29 |
+
if pos[-1] == "Z":
|
30 |
if word[-1] != "ِ":
|
31 |
if (word[-1] == "ه") and (word[-2] != "ا"):
|
32 |
word += "ی"
|