Skip to content

Instantly share code, notes, and snippets.

@Abhayparashar31
Created October 29, 2022 18:32
Show Gist options
  • Save Abhayparashar31/9d18e2b9917e8203c037f6c3fe4f78da to your computer and use it in GitHub Desktop.
Save Abhayparashar31/9d18e2b9917e8203c037f6c3fe4f78da to your computer and use it in GitHub Desktop.
from sklearn.feature_extraction.text import TfidfVectorizer
tf_idf = TfidfVectorizer()
vectors = tf_idf.fit_transform(corpus)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment