nltk.TrigramCollocationFinder.apply_word_filter

TrigramCollocationFinder.apply_word_filter(fn)

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