Skip to content

Instantly share code, notes, and snippets.

@sergioprates
Created April 15, 2019 02:55
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 sergioprates/39fffd4f6cde8974624c80e5ab534739 to your computer and use it in GitHub Desktop.
Save sergioprates/39fffd4f6cde8974624c80e5ab534739 to your computer and use it in GitHub Desktop.
from sklearn.feature_extraction.text import CountVectorizer
vect = CountVectorizer(ngram_range=(1, 1))
vect.fit(df.text_pt)
text_vect = vect.transform(df.text_pt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment