Calculate the mutual information of a set of terms in documents of different classes based on class and term frequencies