Spaces:
Sleeping
Sleeping
ibrahim yıldız
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,8 +4,9 @@ import re
|
|
| 4 |
import nltk
|
| 5 |
from nltk.corpus import stopwords
|
| 6 |
from nltk.stem import PorterStemmer
|
| 7 |
-
|
| 8 |
-
|
|
|
|
| 9 |
|
| 10 |
# Load the saved model and vectorizer
|
| 11 |
with open("NLP_model.pkl", "rb") as file:
|
|
|
|
| 4 |
import nltk
|
| 5 |
from nltk.corpus import stopwords
|
| 6 |
from nltk.stem import PorterStemmer
|
| 7 |
+
nltk.download('punkt')
|
| 8 |
+
from sklearn.feature_extraction.text import CountVectorizer
|
| 9 |
+
from sklearn.naive_bayes import BernoulliNB
|
| 10 |
|
| 11 |
# Load the saved model and vectorizer
|
| 12 |
with open("NLP_model.pkl", "rb") as file:
|