Visualise pre-annotations outside of a NER task and within a Classification task - alternatively highlight text programmaticaly
Hi,
Task: My task is toponym disambiguations. I provide annotators with a toponym and a list of candidates, as options, from a knowledge base. To disambiguate, the annotators are given as context the news article in which the toponym is contained. To facilitate the task, I'd like to highlight in the news article the entity being disambiguated. Since the entity was extracted through NER previously, I imported the entities as pre-annotations.
Issue: My issue is that whenever the Classification task is ongoing, the pre-annotations won't show. Instead, they will show in the DataManager if I click on each task and toggle between the pre-annotation model predictions and I presume what is the Classification task. See below a preview of what I see: https://github.com/user-attachments/assets/7079c217-7c50-47cd-b914-999b7af7b84c
Workaround: If a Classification task cannot support text highlighting through the addition of Labels (essentially if it cannot avoid treating it as a separate NER task), can I instead programmatically or conditionally highlight the text inside the article using XML/HTML or other?
I am happy to provide you with code or data examples.