Vipul-Chauhan commited on
Commit
1111046
·
1 Parent(s): 872e81a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -3,10 +3,14 @@ import pickle as pkl
3
  import re
4
  import numpy as np
5
 
 
6
  from nltk.stem import PorterStemmer
7
  from textblob import Word
8
  from nltk.corpus import stopwords
9
 
 
 
 
10
  def process_row(row):
11
  from string import punctuation
12
  row = re.sub('(\S+@\S+)(com|\s+com)', ' ', row)
 
3
  import re
4
  import numpy as np
5
 
6
+ import nltk
7
  from nltk.stem import PorterStemmer
8
  from textblob import Word
9
  from nltk.corpus import stopwords
10
 
11
+ nltk.download('stopwords')
12
+ nltk.download('wordnet')
13
+
14
  def process_row(row):
15
  from string import punctuation
16
  row = re.sub('(\S+@\S+)(com|\s+com)', ' ', row)