Calculate Term Frequency-Inverse Document Frequency for multiple documents
Add multiple documents to calculate TF-IDF scores. Each document should contain text with words separated by spaces.
TF-IDF (Term Frequency-Inverse Document Frequency) is a numerical statistic that reflects how important a word is to a document in a collection of documents.
TF-IDF(t, d) = TF(t, d) × IDF(t)
Term Frequency (TF): How often a term appears in a document
TF(t, d) = (Number of times term t appears in document d) / (Total number of terms in document d)
Inverse Document Frequency (IDF): How rare or common a term is across all documents
IDF(t) = log(Total number of documents / Number of documents containing term t)