class_docstr: This is an implementation of the smoothing techniques
  for segment-level BLEU scores that was presented in
  Boxing Chen and Collin Cherry (2014) A Systematic Comparison of
  Smoothing Techniques for Sentence-Level BLEU. In WMT14.
  http://acl2014.org/acl2014/W14-33/pdf/W14-3346.pdf
class_docstr_tok: ["This","is","an","implementation","of","the","smoothing","techniques","for","segment-level","BLEU","scores","that","was","presented","in","Boxing","Chen","and","Collin","Cherry","(","2014",")","A","Systematic","Comparison","of","Smoothing","Techniques","for","Sentence-Level","BLEU",".","In","WMT14",".","http",":","\/\/acl2014.org\/acl2014\/W14-33\/pdf\/W14-3346.pdf"]
docstr: Smoothing method 7:
  Interpolates methods 4 and 5.
docstr_tok: ["Smoothing","method","7",":","Interpolates","methods","4","and","5","."]
code: def method7(
      self, p_n, references, hypothesis, hyp_len=None, *args, **kwargs
  ):
      """
      Smoothing method 7:
      Interpolates methods 4 and 5.
      """
      hyp_len = hyp_len if hyp_len else len(hypothesis)
      p_n = self.method4(p_n, references, hypothesis, hyp_len)
      p_n = self.method5(p_n, references, hypothesis, hyp_len)
      return p_n
  
imports: import math
  import sys
  import warnings
  from collections import Counter
  from fractions import Fraction
  from nltk.util import ngrams
label_desc: Use image node_id 9 for calling the SmoothingFunction obj's underlying member method code with example usage: obj.method7(p_n, references, hypothesis, hyp_len) and returns: p_n