class_docstr: SumBasic: a frequency-based summarization system that adjusts word frequencies as
  sentences are extracted.
  Source: http://www.cis.upenn.edu/~nenkova/papers/ipm.pdf
class_docstr_tok: ["SumBasic",":","a","frequency-based","summarization","system","that","adjusts","word","frequencies","as","sentences","are","extracted",".","Source",":","http",":","\/\/www.cis.upenn.edu\/~nenkova\/papers\/ipm.pdf"]
code: def _compute_average_probability_of_words(
      word_freq_in_doc, content_words_in_sentence
  ):
      content_words_count = len(content_words_in_sentence)
      if content_words_count > 0:
          word_freq_sum = sum(
              [word_freq_in_doc[w] for w in content_words_in_sentence]
          )
          word_freq_avg = word_freq_sum / content_words_count
          return word_freq_avg
      else:
          return 0
  
file_path: sumy/sumy/summarizers/sum_basic.py
imports: from __future__ import absolute_import
  from __future__ import division, print_function, unicode_literals
  from ._summarizer import AbstractSummarizer
label_desc: Use image node_id 12 for calling the SumBasicSummarizer obj's underlying member method code with example usage: obj._compute_average_probability_of_words(word_freq_in_doc, content_words_in_sentence) and returns: word_freq_avg, int