-
-
Save mwitiderrick/3a92764520a712f84381db33566ca59e 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
from sklearn.feature_extraction.text import TfidfVectorizer | |
tfidfVectorizer = TfidfVectorizer(max_features =2000) | |
X = tfidfVectorizer.fit_transform(corpus).toarray() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment