Spaces:
Runtime error
Runtime error
added download of nltk resources in predict_ml.py
Browse files- predict_ml.py +4 -4
predict_ml.py
CHANGED
@@ -17,10 +17,10 @@ import emoji
|
|
17 |
|
18 |
from paths import COUNT_VECTORIZER_PATH, TFIDF_VECTORIZER_PATH, NB_MODEL_PATH as MODEL_PATH
|
19 |
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
|
25 |
stops = stopwords.words('english')
|
26 |
negatives = ['no','nor','not','ain','aren',"aren't",'couldn',"couldn't",'didn',"didn't",'doesn',"doesn't",'hadn',"hadn't",'hasn',
|
|
|
17 |
|
18 |
from paths import COUNT_VECTORIZER_PATH, TFIDF_VECTORIZER_PATH, NB_MODEL_PATH as MODEL_PATH
|
19 |
|
20 |
+
nltk.download('punkt')
|
21 |
+
nltk.download('omw-1.4')
|
22 |
+
nltk.download('stopwords')
|
23 |
+
nltk.download('wordnet')
|
24 |
|
25 |
stops = stopwords.words('english')
|
26 |
negatives = ['no','nor','not','ain','aren',"aren't",'couldn',"couldn't",'didn',"didn't",'doesn',"doesn't",'hadn',"hadn't",'hasn',
|