Created
April 27, 2020 05:43
-
-
Save lakshay-arora/343f1ef6e8a59efaeba10517bb0fad60 to your computer and use it in GitHub Desktop.
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
# create a TF-IDF vectorizer object | |
tfidf_vectorizer = TfidfVectorizer(lowercase= True, max_features=1000, stop_words=ENGLISH_STOP_WORDS) | |
# fit the object with the training data tweets | |
tfidf_vectorizer.fit(train.tweet) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment