def get_spans_in_offsets(spans, start, end):
    """Return the list of spans (nlplingo.text.text_span.Span) that are within (start, end) offsets
    :type spans: list[nlplingo.text.text_span.Span]
    Returns:
        list[text.text_span.Span]
    """
    ret = []
    for span in spans:
        if start <= span.start_char_offset() and span.end_char_offset() <= end:
            ret.append(span)
    return ret