def get_between_ngrams(c, attrib="<STR_LIT>", n_min=<NUM_LIT:1>, n_max=<NUM_LIT:1>, lower=True):
if len(c) != <NUM_LIT:2>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>span0 = _to_span(c[<NUM_LIT:0>])<EOL>span1 = _to_span(c[<NUM_LIT:1>])<EOL>if span0.sentence != span1.sentence:<EOL><INDENT>raise ValueError(<EOL>"<STR_LIT>"<EOL>)<EOL><DEDENT>distance = abs(span0.get_word_start_index() - span1.get_word_start_index())<EOL>if span0.get_word_start_index() < span1.get_word_start_index():<EOL><INDENT>for ngram in get_right_ngrams(<EOL>span0,<EOL>window=distance - <NUM_LIT:1>,<EOL>attrib=attrib,<EOL>n_min=n_min,<EOL>n_max=n_max,<EOL>lower=lower,<EOL>):<EOL><INDENT>yield ngram<EOL><DEDENT><DEDENT>else:  <EOL><INDENT>for ngram in get_right_ngrams(<EOL>span1,<EOL>window=distance - <NUM_LIT:1>,<EOL>attrib=attrib,<EOL>n_min=n_min,<EOL>n_max=n_max,<EOL>lower=lower,<EOL>):<EOL><INDENT>yield ngram<EOL><DEDENT><DEDENT>
Return the ngrams *between* two unary Mentions of a binary-Mention Candidate.

    Get the ngrams *between* two unary Mentions of a binary-Mention Candidate,
    where both share the same sentence Context.

    :param c: The binary-Mention Candidate 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
    :rtype: a *generator* of ngrams