Open hipek8 opened 3 years ago
Another example from the playground > HTML NER Tagging below. It looks like creating an annotation updates the DOM, and further annotations on the same HTML tag are with respect to this updated DOM.
Output preview
[
{
"value": {
"start": "/div[1]/div[1]/div[1]/p[1]/text()[1]",
"end": "/div[1]/div[1]/div[1]/p[1]/text()[1]",
"startOffset": 2,
"endOffset": 4,
"text": "No",
"htmllabels": [
"Person"
]
},
"id": "Y_g00erjMS",
"from_name": "ner",
"to_name": "text",
"type": "hypertextlabels"
},
{
"value": {
"start": "/div[1]/div[1]/div[1]/p[1]/text()[2]",
"end": "/div[1]/div[1]/div[1]/p[1]/text()[2]",
"startOffset": 1,
"endOffset": 3,
"text": "no",
"htmllabels": [
"Person"
]
},
"id": "n2zCeAS99-",
"from_name": "ner",
"to_name": "text",
"type": "hypertextlabels"
}
]
@hipek8 @g-simmons Hope it's fixed in the latest master branch.
Exported completions are different depending on order of selection. Tested on labelstudio.io/playground/ With config
I tagged the same regions with the same labels but in different order. These are the results:
Note: different start/end index and different offset.