554 B
554 B
TF - term frequency. IDF - inverse document frequency
!
from sklearn.feature_extraction.text import TfidfVectorizer
Usage
- keywords extraction
- text clustering (kmeans on tf-idf matrix)
Initially - modification of bag of word, used to filter out useless (less important for meaning words)
Sources: https://habr.com/ru/companies/otus/articles/755772/ https://www.geeksforgeeks.org/machine-learning/understanding-tf-idf-term-frequency-inverse-document-frequency/
