fix index
#4
by
GrigoryT22
- opened
No description provided.
to reproduce error run code:
extractor.concat_entities(model(seqs_example[3] + seqs_example[3]))
error message:
IndexError Traceback (most recent call last)
in <cell line: 1>()
----> 1 extractor.concat_entities(model(seqs_example[3] + seqs_example[3]))
in concat_entities(ner_result)
46 (ner_result[i]["start"] == prev_end):
47
---> 48 entities[i-1][2] = ner_result[i]["end"]
49 prev_entity = ner_result[i]["entity_group"]
50 prev_end = ner_result[i]["end"]
IndexError: list index out of range