Shredder commited on
Commit
68e73b8
1 Parent(s): fbcebfc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ def score_fincat(txt):
51
  if word[-1] in ['.', ',', ';', ":", "-", "!", "?", ")", '"', "'"]:
52
  k = word[-1]
53
  word = word[:-1]
54
- st = txt.index(" " + word + k + " ")+1
55
  k = ''
56
  ed = st + len(word)
57
  x = {'paragraph' : txt, 'offset_start':st, 'offset_end':ed}
 
51
  if word[-1] in ['.', ',', ';', ":", "-", "!", "?", ")", '"', "'"]:
52
  k = word[-1]
53
  word = word[:-1]
54
+ st = txt.find(" " + word + k + " ")+1
55
  k = ''
56
  ed = st + len(word)
57
  x = {'paragraph' : txt, 'offset_start':st, 'offset_end':ed}