Modified app.py
Browse files
app.py
CHANGED
@@ -108,6 +108,11 @@ def preprocess(tweet, profanities):
|
|
108 |
|
109 |
for index, word in enumerate(row_split):
|
110 |
|
|
|
|
|
|
|
|
|
|
|
111 |
# Remove links
|
112 |
if 'http' in word:
|
113 |
row_split[index] = ''
|
|
|
108 |
|
109 |
for index, word in enumerate(row_split):
|
110 |
|
111 |
+
# Seperate pronouns
|
112 |
+
for addon in addon_words:
|
113 |
+
if word.endswith(addon):
|
114 |
+
row_split[index] = word[:-len(addon)] + " " + addon
|
115 |
+
|
116 |
# Remove links
|
117 |
if 'http' in word:
|
118 |
row_split[index] = ''
|