Spaces:
Runtime error
Runtime error
Fixed profanity with hashtag
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ def fuzzy_lookup(tweet):
|
|
65 |
scores = []
|
66 |
matched_words = []
|
67 |
|
68 |
-
processed_word = re.sub("[^a-zA-Z0-9
|
69 |
|
70 |
if len(processed_word) >= 4:
|
71 |
# Get fuzzy ratio
|
|
|
65 |
scores = []
|
66 |
matched_words = []
|
67 |
|
68 |
+
processed_word = re.sub("[^a-zA-Z0-9@#]", "", word)
|
69 |
|
70 |
if len(processed_word) >= 4:
|
71 |
# Get fuzzy ratio
|