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

@classmethod
def pmi(cls, *marginals):

    return (_log2((marginals[NGRAM] * (marginals[TOTAL] ** (cls._n - 1)))) - _log2(_product(marginals[UNIGRAMS])))
