An Introduction to TF-IDF: What It Is & How to Use It

February 29, 2024

What Is Term Frequency-Inverse Document Frequency (TF-IDF)? Term frequency-inverse document frequency (TF-IDF) measures the importance of a word to a specific document. It’s the product of two statistics: term frequency (TF) and inverse document frequency (IDF). You’d calculate the term frequency as follows:TF = 25/10,000 = 0.0025Inverse Document Frequency (IDF)Inverse document frequency (IDF) measures the amount of information a term provides. You’ll be able to compare TF-IDF scores in the “TF-IDF” section, as shown below.

The source of this news is from Semrush