Skip to content

Instantly share code, notes, and snippets.

@lakshay-arora
Created April 27, 2020 05:43
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 lakshay-arora/8464b0cc7e84c0a1aedb57e41e031305 to your computer and use it in GitHub Desktop.
Save lakshay-arora/8464b0cc7e84c0a1aedb57e41e031305 to your computer and use it in GitHub Desktop.
# transform the train and test data
train_idf = tfidf_vectorizer.transform(train.tweet)
test_idf = tfidf_vectorizer.transform(test.tweet)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment