nltk.BigramCollocationFinder.apply_ngram_filter

BigramCollocationFinder.apply_ngram_filter(fn)

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