tlong-ds commited on
Commit
ff1e8ec
·
verified ·
1 Parent(s): f959c69

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +3 -2
model.py CHANGED
@@ -9,8 +9,9 @@ from nltk.tokenize import TweetTokenizer
9
  from nltk.corpus import stopwords, twitter_samples
10
  from sklearn.linear_model import LogisticRegression
11
 
12
- nltk.download('twitter_samples')
13
- nltk.download('stopwords')
 
14
  all_positive_tweets = twitter_samples.strings('positive_tweets.json')
15
  all_negative_tweets = twitter_samples.strings('negative_tweets.json')
16
 
 
9
  from nltk.corpus import stopwords, twitter_samples
10
  from sklearn.linear_model import LogisticRegression
11
 
12
+ nltk.data.path.append("/app/nltk_data")
13
+ #nltk.download('twitter_samples')
14
+ #nltk.download('stopwords')
15
  all_positive_tweets = twitter_samples.strings('positive_tweets.json')
16
  all_negative_tweets = twitter_samples.strings('negative_tweets.json')
17