nltk.BigramAssocMeasures.pmi

BigramAssocMeasures.pmi(*marginals)

Scores ngrams by pointwise mutual information, as in Manning and Schutze 5.4.