nltk.QuadgramCollocationFinder.from_documents

QuadgramCollocationFinder.from_documents(documents)

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