ner-annotator icon indicating copy to clipboard operation
ner-annotator copied to clipboard

Entity start and end positions should be validated

Open alvi-khan opened this issue 1 year ago • 0 comments

The issue was originally identified in #112. When setting annotations on the current sentence, we should validate that the start and end positions of all entities are within the acceptable range. Since annotations can be imported, there may be cases where an invalid annotation has been imported, thus leading to this issue. An error should be shown and the invalid entities should be discarded.

It would be best if we can perform this validation when importing the annotations instead of when viewing a particular sentence.

alvi-khan avatar Aug 11 '24 01:08 alvi-khan