Skip to content

Instantly share code, notes, and snippets.

@andrea-dagostino
Created October 3, 2022 08:47
Show Gist options
  • Select an option

  • Save andrea-dagostino/bbc50adf21e7c16266622ddd949d21cc to your computer and use it in GitHub Desktop.

Select an option

Save andrea-dagostino/bbc50adf21e7c16266622ddd949d21cc to your computer and use it in GitHub Desktop.
text_sim_tfidf
from sklearn.feature_extraction.text import TfidfVectorizer
vectorizer = TfidfVectorizer(tokenizer=preprocess, stop_words=ita_stopwords)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment