nltk.BigramCollocationFinder.from_documents

BigramCollocationFinder.from_documents(documents)

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