Skip to content

Instantly share code, notes, and snippets.

@letthedataconfess
Created January 27, 2021 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save letthedataconfess/ee57d3945758e4f083f37cc48ddd673c to your computer and use it in GitHub Desktop.
Save letthedataconfess/ee57d3945758e4f083f37cc48ddd673c to your computer and use it in GitHub Desktop.
sentiment analysis
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