Skip to content

Instantly share code, notes, and snippets.

@AyishaR
Created January 22, 2021 16:40
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 AyishaR/3b9dd0dfe244e650073c22507e730e6c to your computer and use it in GitHub Desktop.
Save AyishaR/3b9dd0dfe244e650073c22507e730e6c to your computer and use it in GitHub Desktop.
tfidf = TfidfTransformer().fit(train_bow)
train_tf = tfidf.transform(train_bow)
val_tf = tfidf.transform(val_bow)
test_tf = tfidf.transform(test_bow)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment