Spaces:
Runtime error
Runtime error
azizbarank
commited on
Commit
•
16ad1b3
1
Parent(s):
1095967
Update app.py
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ with model_results:
|
|
63 |
lemmatized_output.append(lemmatizer.lemmatize(word))
|
64 |
|
65 |
# instantiating tfidf vectorizor
|
66 |
-
tfidf = TfidfVectorizer(stop_words=
|
67 |
X_train = joblib.load(open('resources/X_train.pickel', 'rb'))
|
68 |
X_test = lemmatized_output
|
69 |
X_train_count = tfidf.fit_transform(X_train)
|
|
|
63 |
lemmatized_output.append(lemmatizer.lemmatize(word))
|
64 |
|
65 |
# instantiating tfidf vectorizor
|
66 |
+
tfidf = TfidfVectorizer(stop_words= 'english', ngram_range=(1,2))
|
67 |
X_train = joblib.load(open('resources/X_train.pickel', 'rb'))
|
68 |
X_test = lemmatized_output
|
69 |
X_train_count = tfidf.fit_transform(X_train)
|