Created
January 27, 2021 07:06
-
-
Save letthedataconfess/ee57d3945758e4f083f37cc48ddd673c to your computer and use it in GitHub Desktop.
sentiment analysis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.svm import SVC | |
clf=SVC() | |
clf.fit(x_train_tfidf,y_train) | |
y_pred=clf.predict(x_test_tfidf) | |
print(y_pred, y_test) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment