Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from sklearn.feature_extraction.text import TfidfVectorizer
vect = TfidfVectorizer(ngram_range=(1,4), use_idf=True, lowercase=True, min_df=2, max_df=0.95)
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