What is TF-IDF (Term Frequency-Inverse Document Frequency)?

TF-IDF is a numerical statistic that reflects the importance of a word in a document within a collection or corpus. It helps search engines understand how relevant a keyword is in a specific context, leading to better content indexing.