0

TfidfVectorizer can compute the tf-idf matrix.

Sometimes the raw tf matrix and df vectors may be useful. Is there a way to do so with sklearn? Thanks.

user1424739
  • 11,937
  • 17
  • 63
  • 152
  • 1
    Have you checked here: https://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html ? – Seraph Wedd Jan 30 '20 at 02:41
  • Does this answer your question? [sklearn : TFIDF Transformer : How to get tf-idf values of given words in document](https://stackoverflow.com/questions/34449127/sklearn-tfidf-transformer-how-to-get-tf-idf-values-of-given-words-in-documen) – Mateo Torres Jan 30 '20 at 02:51
  • The questions has be been updated I mean df instead of idf. – user1424739 Jan 30 '20 at 02:52

0 Answers0