gyroing commited on
Commit
0c1a8db
1 Parent(s): d24af84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,13 +26,13 @@ def fix_words(words: typing.List[str]) -> typing.List[str]:
26
  fixed_words = []
27
 
28
  for word, pos , typin in tagger.tag(words):
29
- if pos[-1] == "e":
30
  if word[-1] != "ِ":
31
  if (word[-1] == "ه") and (word[-2] != "ا"):
32
  word += "‌ی"
33
  word += "ِ"
34
 
35
- fixed_words.append(pos)
36
 
37
  return fixed_words
38
  #return tagger.tag(words)
 
26
  fixed_words = []
27
 
28
  for word, pos , typin in tagger.tag(words):
29
+ if pos[-1] == "z":
30
  if word[-1] != "ِ":
31
  if (word[-1] == "ه") and (word[-2] != "ا"):
32
  word += "‌ی"
33
  word += "ِ"
34
 
35
+ fixed_words.append(word)
36
 
37
  return fixed_words
38
  #return tagger.tag(words)