def extract_ents(spans):
    """ extracts spans from a prodigy sample
    :input spans: a list of prodigy prodigy samples
    :return: a dict {"entities": 0, 4, 'LABEL'}
    """
    ents = {"entities": []}
    for x in spans:
        ents["entities"].append((x['start'], x['end'], x['label']))
    return ents