Update app.py
Browse files
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.
|
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}
|