Topic Modeling, Natural Language Process.
taking the logarithm of the total number of documents divided by the number of documents containing the term. IDF(t) = log(Total Number of Documents in Corpus / Number of Documents with Term t) More often, we will add 1 to the denominator to avoid a division-by-zero. We can use the sklearn library