nltk.QuadgramCollocationFinder.apply_word_filter

QuadgramCollocationFinder.apply_word_filter(fn)

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