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: Generates of (ngram, score) pairs as determined by the scoring
  function provided.
docstr_tok: ["Generates","of","(","ngram",",","score",")","pairs","as","determined","by","the","scoring","function","provided","."]
code: def _score_ngrams(self, score_fn):
      """Generates of (ngram, score) pairs as determined by the scoring
      function provided.
      """
      for tup in self.ngram_fd:
          score = self.score_ngram(score_fn, *tup)
          if score is not None:
              yield tup, score
  
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 9 for calling the AbstractCollocationFinder obj's underlying member method code with example usage: obj._score_ngrams(score_fn) without return types