nltk.TrigramCollocationFinder.from_documents

TrigramCollocationFinder.from_documents(documents)

Constructs a collocation finder given a collection of documents, each of which is a list (or iterable) of tokens.