code: def get_sentence_ngrams(mention, attrib="words", n_min=1, n_max=1, lower=True):
      
      spans = _to_spans(mention)
      for span in spans:
          for ngram in get_left_ngrams(
              span, window=100, attrib=attrib, n_min=n_min, n_max=n_max, lower=lower
          ):
              yield ngram
          for ngram in get_right_ngrams(
              span, window=100, attrib=attrib, n_min=n_min, n_max=n_max, lower=lower
          ):
              yield ngram
docs: Get the ngrams that are in the Sentence of the given Mention, not including itself.
  
      Note that if a candidate is passed in, all of its Mentions will be
      searched.
  
      :param mention: The Mention whose Sentence is being searched
      :param attrib: The token attribute type (e.g. words, lemmas, poses)
      :param n_min: The minimum n of the ngrams that should be returned
      :param n_max: The maximum n of the ngrams that should be returned
      :param lower: If True, all ngrams will be returned in lower case
      :rtype: a *generator* of ngrams