mginoben commited on
Commit
4e90ce5
·
1 Parent(s): 58eeaa0

Modified app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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] = ''