bigram_measures = nltk.collocations.BigramAssocMeasures()
trigram_measures = nltk.collocations.TrigramAssocMeasures()
creature_filter = lambda *w: 'creature' not in w
finder = BigramCollocationFinder.from_words(nltk.corpus.genesis.words(
    'english-web.txt'))
finder.apply_freq_filter(3)
finder.apply_ngram_filter(creature_filter)
print(finder.nbest(bigram_measures.likelihood_ratio, 10))
finder = TrigramCollocationFinder.from_words(nltk.corpus.genesis.words(
    'english-web.txt'))
finder.apply_freq_filter(3)
finder.apply_ngram_filter(creature_filter)
print(finder.nbest(trigram_measures.likelihood_ratio, 10))
Сочетания NLTK для определенных слов