Open KateNew opened 3 months ago
Describe the bug When I import pre-annotated prediction data with the ParagraphLabels, the region is emphasized but not with the correct label. Changing ParagraphLabels to Labels tag solves this but then is not possible to annotate data.
To Reproduce Labelling interface: `
`
Data: [ { "annotations":[], "drafts": [], "predictions": [ { "model_version": "Emotion:1", "result": [ { "type": "paragraphlabels", "value": { "end": "1", "start": "1", "labels": [ "EMOTION" ], "endOffset": 8, "startOffset": 5 }, "to_name": "dialogue", "from_name": "emotion" } ] } ], "data": { "dialogue": [ { "text": "Hello", "author": "System Context" }, { "text": "I am sad.", "author": "User Input" } ] } } ]
[ { "annotations":[], "drafts": [], "predictions": [ { "model_version": "Emotion:1", "result": [ { "type": "paragraphlabels", "value": { "end": "1", "start": "1", "labels": [ "EMOTION" ], "endOffset": 8, "startOffset": 5 }, "to_name": "dialogue", "from_name": "emotion" } ] } ], "data": { "dialogue": [ { "text": "Hello", "author": "System Context" }, { "text": "I am sad.", "author": "User Input" } ] } } ]
Expected behavior Pre-annotated ParagraphLabels are emphasized with the correct label.
Screenshots
Environment (please complete the following information):
Additional context It has worked in version 1.8.0, the following screenshot shows the same setting.
/jira create
Workflow run Jira issue TRIAG-754 is created
Describe the bug When I import pre-annotated prediction data with the ParagraphLabels, the region is emphasized but not with the correct label. Changing ParagraphLabels to Labels tag solves this but then is not possible to annotate data.
To Reproduce Labelling interface: `
`
Data:
[ { "annotations":[], "drafts": [], "predictions": [ { "model_version": "Emotion:1", "result": [ { "type": "paragraphlabels", "value": { "end": "1", "start": "1", "labels": [ "EMOTION" ], "endOffset": 8, "startOffset": 5 }, "to_name": "dialogue", "from_name": "emotion" } ] } ], "data": { "dialogue": [ { "text": "Hello", "author": "System Context" }, { "text": "I am sad.", "author": "User Input" } ] } } ]
Expected behavior Pre-annotated ParagraphLabels are emphasized with the correct label.
Screenshots
Environment (please complete the following information):
Additional context It has worked in version 1.8.0, the following screenshot shows the same setting.