nltk.TrigramCollocationFinder.from_words

classmethod TrigramCollocationFinder.from_words(words, window_size=3)[source]

Construct a TrigramCollocationFinder for all trigrams in the given sequence.