def span_overlap(span_indices1, span_indices2):
    """Boolean check if two spans overlap.

    This does an exclusive overlap check (i.e. (0-2) and (2-3) does not overlap).
    """
    return span_indices1[0] < span_indices2[1] and span_indices2[0] < span_indices1[1]