Named Entity Preannotations not visible when ID contains Space
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:
- Create Named Entity Project
- insert a whitespace into the preannotation id and import any example
- 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
Hi @bablf, thanks for the flag! I'll pass this over to someone who works on docs here.