Learn Before
Formula
TF-IDF Document Scoring Formula
The TF-IDF version of the document scoring formula computes the cosine similarity between the TF-IDF vector of a query and the TF-IDF vector of a document :
Where:
- is a term present in the query and the document .
- is the TF-IDF weight of term in query .
- is the TF-IDF weight of term in document .
- The denominators represent the Euclidean () norms of the query and document vectors, respectively, which normalize the score to be independent of document and query lengths.
0
1
Updated 2026-06-13
Contributors are:
Who are from:
Tags
Data Science