Bug description:
When using a custom theme with colors for each label, UI uses the wrong color after a tag is removed.
Reproduction steps:
How can we recreate the bug?
- Create sample.jsonl with this content:
{"text": "This is a test"}
- Create prodigy.json with this content
{"custom_theme": {"labels": {"A": "#ff0000", "B": "#00ff00}}}
- Run
prodigy ner.manual sample blank:xx sample.jsonl --label A,B
- Tag "This" with A and "test" with B
- Remove A tag
- Notice that B tag color has changed to A's
Environment variables:
Version 1.15.8
Platform Linux-6.8.0-49-generic-x86_64-with-glibc2.39
Python Version 3.12.3
spaCy Version 3.7.5