def get_horz_ngrams(<EOL>mention, attrib="<STR_LIT>", n_min=<NUM_LIT:1>, n_max=<NUM_LIT:1>, lower=True, from_sentence=True<EOL>):
spans = _to_spans(mention)<EOL>for span in spans:<EOL><INDENT>for ngram in _get_direction_ngrams(<EOL>"<STR_LIT>", span, attrib, n_min, n_max, lower, from_sentence<EOL>):<EOL><INDENT>yield ngram<EOL><DEDENT><DEDENT>
Return all ngrams which are visually horizontally aligned with the Mention.

    Note that if a candidate is passed in, all of its Mentions will be searched.

    :param mention: The Mention to evaluate
    :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
    :param from_sentence: If True, returns ngrams from any horizontally aligned
        Sentences, rather than just horizontally aligned ngrams themselves.
    :rtype: a *generator* of ngrams