HumanSignal / HumanSignal/label-studio
Named Entity Preannotations not visible when ID contains Space
- Dominant language
- TypeScript
- Stars
- 28.3k
- Forks
- 3.7k
- Avg merge
- 14h
- Merged PRs (30d)
- 15
Description
**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
3. insert a whitespace into the preannotation id and import any example
4. 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
Contributor guide
Assessment
This issue has not been assessed yet.