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.
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.