mginoben commited on
Commit
2793373
·
1 Parent(s): 6cbea5c

Fixed punctuation removal

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -50,6 +50,7 @@ def fuzzy_lookup(tweet):
50
 
51
  for word in tweet.split():
52
 
 
53
  base_word = word
54
 
55
  if word in eng_words:
@@ -63,7 +64,7 @@ def fuzzy_lookup(tweet):
63
 
64
  scores = []
65
  matched_words = []
66
- word = word.strip(punctuation)
67
  processed_word = re.sub("[^a-zA-Z0-9@]", "", word)
68
 
69
  if len(processed_word) >= 4:
 
50
 
51
  for word in tweet.split():
52
 
53
+ word = word.strip(punctuation)
54
  base_word = word
55
 
56
  if word in eng_words:
 
64
 
65
  scores = []
66
  matched_words = []
67
+
68
  processed_word = re.sub("[^a-zA-Z0-9@]", "", word)
69
 
70
  if len(processed_word) >= 4: