Created
January 27, 2021 07:05
-
-
Save letthedataconfess/5e52b7b6346339b8e53d2e674f327308 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.feature_extraction.text import TfidfVectorizer | |
tfidf=TfidfVectorizer() | |
x_train_tfidf = tfidf.fit_transform(x_train) | |
x_test_tfidf = tfidf.transform(x_test) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment