1 min read 42 words Updated Sep 24, 2026 Created Sep 24, 2026
#NLP#math

TF: Term frequency = how often word appears in message / N words in message

IDF: Inverse document frequency = N training messages / N messages containing word

TF-IDF can be used to assess the importance of a word in a document.