Skip to content

Instantly share code, notes, and snippets.

@digorithm
Created September 23, 2015 10:08
Show Gist options
  • Save digorithm/5658205983dc7f4e02a2 to your computer and use it in GitHub Desktop.
Save digorithm/5658205983dc7f4e02a2 to your computer and use it in GitHub Desktop.
from sklearn.feature_extraction.text import TfidfVectorizer
vectorizer = TfidfVectorizer()
vectorized_x = vectorizer.fit_transform(X)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment