Offsiteteam
Glossary  /  Natural Language Processing  /  TF-IDF (Term Frequency - Inverse Document Frequency)

TF-IDF (Term Frequency - Inverse Document Frequency)

TF-IDF (Term Frequency - Inverse Document Frequency) is a numerical statistic used to evaluate the importance of a word in a document relative to a collection or corpus of documents.

It consists of two components:

  • Term Frequency (TF), which measures how often a word appears in a document, and
  • Inverse Document Frequency (IDF), which measures how rare or common a word is across the entire corpus.

The formula for TF-IDF is:

\( \text{TF-IDF} = \text{TF} \times \text{IDF} \)

This weighting scheme helps prioritize rare but significant words over common but less informative ones (e.g., "the", "is", "and").

TF-IDF vectors are used for text representation in tasks like document classification and clustering. It helps highlight unique content in a document, making it a powerful tool for keyword extraction and information retrieval.

Mentioned in blog posts:

You can fill out this form to contact us with any questions about our software services for related projects.
We received your message!
Thank you!