Spaces:
Runtime error
Runtime error
mohamedabdullah
commited on
Commit
•
a1150de
1
Parent(s):
3b07354
Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def get_corrections(word, vocab):
|
|
75 |
edit_one_letter_suggest = list(filter(lambda item: item in vocab, list(edit_one_letter(word))))
|
76 |
edit_two_letter_suggest = list(filter(lambda item: item in vocab, list(edit_two_letters(word))))
|
77 |
|
78 |
-
suggestions = correct_word_suggest or edit_one_letter_suggest or edit_two_letter_suggest
|
79 |
|
80 |
return set(suggestions)
|
81 |
|
|
|
75 |
edit_one_letter_suggest = list(filter(lambda item: item in vocab, list(edit_one_letter(word))))
|
76 |
edit_two_letter_suggest = list(filter(lambda item: item in vocab, list(edit_two_letters(word))))
|
77 |
|
78 |
+
suggestions = correct_word_suggest or edit_one_letter_suggest or edit_two_letter_suggest or ['لم يتم العثور علي إقتراحات مناسبة لهذه الكلمة']
|
79 |
|
80 |
return set(suggestions)
|
81 |
|