def get_row_ngrams(<EOL>mention, attrib="<STR_LIT>", n_min=<NUM_LIT:1>, n_max=<NUM_LIT:1>, spread=[<NUM_LIT:0>, <NUM_LIT:0>], lower=True<EOL>):
spans = _to_spans(mention)<EOL>for span in spans:<EOL><INDENT>for ngram in _get_axis_ngrams(<EOL>span,<EOL>axis="<STR_LIT>",<EOL>attrib=attrib,<EOL>n_min=n_min,<EOL>n_max=n_max,<EOL>spread=spread,<EOL>lower=lower,<EOL>):<EOL><INDENT>yield ngram<EOL><DEDENT><DEDENT>
Get the ngrams from all Cells that are in the same row as the given Mention.

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

    :param mention: The Mention whose row Cells are 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 spread: The number of rows above and below to also consider "aligned".
    :param lower: If True, all ngrams will be returned in lower case
    :rtype: a *generator* of ngrams