nltk.PositiveNaiveBayesClassifier.most_informative_features¶
-
PositiveNaiveBayesClassifier.
most_informative_features
(n=100)¶ Return a list of the ‘most informative’ features used by this classifier. For the purpose of this function, the informativeness of a feature
(fname,fval)
is equal to the highest value of P(fname=fval|label), for any label, divided by the lowest value of P(fname=fval|label), for any label:max[ P(fname=fval|label1) / P(fname=fval|label2) ]