class_docstr: An abstract base class for collocation finders whose purpose is to
  collect collocation candidate frequencies, filter and rank them.
  
  As a minimum, collocation finders require the frequencies of each
  word in a corpus, and the joint frequency of word tuples. This data
  should be provided through nltk.probability.FreqDist objects or an
  identical interface.
class_docstr_tok: ["An","abstract","base","class","for","collocation","finders","whose","purpose","is","to","collect","collocation","candidate","frequencies",",","filter","and","rank","them",".","As","a","minimum",",","collocation","finders","require","the","frequencies","of","each","word","in","a","corpus",",","and","the","joint","frequency","of","word","tuples",".","This","data","should","be","provided","through","nltk.probability.FreqDist","objects","or","an","identical","interface","."]
docstr: Constructs a collocation finder given a collection of documents,
  each of which is a list (or iterable) of tokens.
docstr_tok: ["Constructs","a","collocation","finder","given","a","collection","of","documents",",","each","of","which","is","a","list","(","or","iterable",")","of","tokens","."]
code: def from_documents(cls, documents):
      """Constructs a collocation finder given a collection of documents,
      each of which is a list (or iterable) of tokens.
      """
      # return cls.from_words(_itertools.chain(*documents))
      return cls.from_words(
          cls._build_new_documents(
              documents, cls.default_ws, pad_right=True
          )
      )
  
imports: import itertools
  from nltk.metrics import BigramAssocMeasures, ContingencyMeasures, QuadgramAssocMeasures, TrigramAssocMeasures
  from nltk.metrics.spearman import ranks_from_scores, spearman_correlation
  from nltk.probability import FreqDist
  from nltk.util import ngrams
label_desc: Use image node_id 3 for calling the AbstractCollocationFinder obj's underlying member method code with example usage: obj.from_documents(cls, documents) and returns: cls