label-studio icon indicating copy to clipboard operation
label-studio copied to clipboard

Named Entity Preannotations not visible when ID contains Space

Open bablf opened this issue 1 year ago • 1 comments

Describe the bug I tried to import pre-annotations for a named entity labelling task. The import worked fine, but the annotations looked like in the picture below. New annotations were highlighted correctly. The problem was the id key I set. It was set to "NameEntity ID{timestamp}-{random_chars}". After removing the space, it shows up correctly. The documentation states that it can be any string (https://labelstud.io/guide/predictions#Add-results-to-the-predictions-array). Please specify the documentation.

To Reproduce Steps to reproduce the behaviour:

  1. Create Named Entity Project
  2. insert a whitespace into the preannotation id and import any example
  3. Import will work and annotation will not be highlighted.

Expected behaviour Should either be highlighted correctly, throw an error when importing or the docs should be more specific

Environment (please complete the following information):

  • OS: linux
  • Label Studio Version: 1.10.1dev

bablf avatar Sep 09 '24 08:09 bablf

Hi @bablf, thanks for the flag! I'll pass this over to someone who works on docs here.

jombooth avatar Sep 12 '24 18:09 jombooth