NER-Evaluation
NER-Evaluation copied to clipboard
range is wrong for only 1 token span
pred_range = range(pred.start_offset, pred.end_offset)
so if pred.start=1 and pred.end_offset=1, then it will be empty range. But it should be one. to fix: pred_range = range(pred.start_offset, pred.end_offset+1)
Hi @thirteenflt thanks a lot for making us aware of that, could you maybe open a PR to fix that? I would be really grateful.
Good spot!