nltk.TrigramCollocationFinder.apply_ngram_filter

TrigramCollocationFinder.apply_ngram_filter(fn)

Removes candidate ngrams (w1, w2, ...) where fn(w1, w2, ...) evaluates to True.