class_docstr: Source: https://github.com/adamfabish/Reduction
code: def _rate_sentences_edge(self, words1, words2):
      rank = 0
      for w1 in words1:
          for w2 in words2:
              rank += int(w1 == w2)
  
      if rank == 0:
          return 0.0
  
      assert len(words1) > 0 and len(words2) > 0
      norm = math.log(len(words1)) + math.log(len(words2))
      return 0.0 if norm == 0.0 else rank / norm
  
file_path: sumy/sumy/summarizers/reduction.py
imports: from __future__ import absolute_import
  from __future__ import division, print_function, unicode_literals
  import math
  from itertools import combinations
  from collections import defaultdict
  from ._summarizer import AbstractSummarizer
label_desc: Use image node_id 6 for calling the ReductionSummarizer obj's underlying member method code with example usage: obj._rate_sentences_edge(words1, words2) and returns: unknown, int