NER-Evaluation icon indicating copy to clipboard operation
NER-Evaluation copied to clipboard

range is wrong for only 1 token span

Open thirteenflt opened this issue 4 years ago • 2 comments

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)

thirteenflt avatar Jul 19 '19 01:07 thirteenflt

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.

davidsbatista avatar Jul 19 '19 11:07 davidsbatista

Good spot!

ivyleavedtoadflax avatar Jul 19 '19 11:07 ivyleavedtoadflax