Term Frequency - Inverse Document Frequency (tf-idf)

Old technique (classical).

Term Frequency - Inverse Document Frequencyย (TF-IDF) is a widely used statistical method in natural language processing and information retrieval. It measures how important a term is within a document relative to a collection of documents (i.e., relative to a corpus).

  • โ€“ weight (relevance) of term in document
  • โ€“ number of occurrences of term in document
  • โ€“ number of documents containing term
  • โ€“ total number of documents

The relevance of a document is the sum of the values over all that we care about.