def get_cell_ngrams(mention, attrib="<STR_LIT>", n_min=<NUM_LIT:1>, n_max=<NUM_LIT:1>, lower=True):
spans = _to_spans(mention)<EOL>for span in spans:<EOL><INDENT>for ngram in get_sentence_ngrams(<EOL>span, attrib=attrib, n_min=n_min, n_max=n_max, lower=lower<EOL>):<EOL><INDENT>yield ngram<EOL><DEDENT>if span.sentence.is_tabular():<EOL><INDENT>for ngram in chain.from_iterable(<EOL>[<EOL>tokens_to_ngrams(<EOL>getattr(sentence, attrib), n_min=n_min, n_max=n_max, lower=lower<EOL>)<EOL>for sentence in _get_table_cells(span.sentence.table)[<EOL>span.sentence.cell<EOL>]<EOL>if sentence != span.sentence<EOL>]<EOL>):<EOL><INDENT>yield ngram<EOL><DEDENT><DEDENT><DEDENT>
Get the ngrams that are in the Cell 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 Cell 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