def get_span_length(spans: list):
    """
    For spacy.span object in a list gets the length of the object
    :param spans: list of spacy.span objects
    :return: list of lengths of the spacy.span objects
    """
    return [len(span) for span in spans]