What Term Frequency–Inverse Document Frequency calculated by multiplying the term frequency (how often a word appears in a document) with the inverse document frequency (how rare the word is across all documents) Input Corpus Links An information-theoretic perspective of tf–idf measures - ScienceDirect