Analytics Vidhya
Published in

Analytics Vidhya

Understanding Calculation of TF-IDF by Example

Photo by ThisisEngineering RAEng on Unsplash

TF-IDF (term frequency-inverse document frequency) is a statistical measure that evaluates how relevant a word is to a document in a collection of documents.

It plays an important role in information retrieval and text mining.

A survey conducted in 2015 shows that 83% of text-based recommender systems in digital libraries use TF–IDF.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store