Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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