Vihang28 commited on
Commit
d3428bd
·
verified ·
1 Parent(s): 5fbfa70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ from symspellpy import SymSpell
3
 
4
  def text_checker(inp_text):
5
  symsp = SymSpell()
6
- symsp.load_dictionary('freq_dictionay_symspellpy.txt',term_index=0, count_index=1, separator=' ')
7
  sentence = inp_text
8
  terms = symsp.lookup_compound(sentence,max_edit_distance=2)
9
  return terms[0].term
 
3
 
4
  def text_checker(inp_text):
5
  symsp = SymSpell()
6
+ symsp.load_dictionary('dictionay.txt',term_index=0, count_index=1, separator=' ')
7
  sentence = inp_text
8
  terms = symsp.lookup_compound(sentence,max_edit_distance=2)
9
  return terms[0].term