Spaces:
Sleeping
Sleeping
Update model.py
Browse files
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.
|
| 13 |
-
nltk.download('
|
|
|
|
| 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 |
|