nltk.TrigramAssocMeasures.chi_sq

TrigramAssocMeasures.chi_sq(*marginals)

Scores ngrams using Pearson’s chi-square as in Manning and Schutze 5.3.3.