Spaces:
Runtime error
Runtime error
Increased Fuzzy Threshold (65-70)
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def fuzzy_lookup(tweet):
|
|
46 |
# Get fuzzy ratio
|
47 |
for lookup_word in lookup_words:
|
48 |
score = fuzz.ratio(word, lookup_word)
|
49 |
-
if score >=
|
50 |
scores.append(score)
|
51 |
matched_words.append(lookup_word)
|
52 |
if len(scores) > 0:
|
|
|
46 |
# Get fuzzy ratio
|
47 |
for lookup_word in lookup_words:
|
48 |
score = fuzz.ratio(word, lookup_word)
|
49 |
+
if score >= 70:
|
50 |
scores.append(score)
|
51 |
matched_words.append(lookup_word)
|
52 |
if len(scores) > 0:
|