I found some doubly annotated spans in our data from prodigy.
{'text': 'Play alternative rock.',
'_input_hash': 415108119,
'_task_hash': -1690765751,
'tokens': [{'text': 'Play', 'start': 0, 'end': 4, 'id': 0},
{'text': 'alternative', 'start': 5, 'end': 16, 'id': 1},
{'text': 'rock', 'start': 17, 'end': 21, 'id': 2},
{'text': '.', 'start': 21, 'end': 22, 'id': 3}],
'spans': [{'start': 5,
'end': 16,
'token_start': 1,
'token_end': 1,
'label': 'genre',
'answer': 'accept'},
{'start': 5,
'end': 21,
'token_start': 1,
'token_end': 2,
'label': 'genre',
'answer': 'accept'}],
'answer': 'accept'}
We only use ner.manual and ner.make-gold. Do you have any idea of how this could have happened? I thought that there were mechanisms to not bring duplicates up for re-annotation. Can you tell us what prodigy would make of such data when training? I know spacy throws an error when you insert overlapping spans…
Sincere thanks!