I’ve been trying to validate relation annotations via the Label Studio plugins. In my project, relations are drawn between HTML text spans.
Fetching the set of results can grab the text spans just fine, but I can’t seem to find where the relations are. They don’t appear in results
.
This is the small print script I’ve been using to display all results. I’ve tried both LSI
and Htx
:
// const o = Htx.annotationStore.selected.results;
const o = LSI.annotation.results;
let msg1 = "";
for (const [key, value] of Object.entries(o)) {
msg1 += `id: ${value.id} Type: ${value.type}` + "\n";
}
Htx.showModal(msg1, "error");
When I run the script over this annotation, which has two text spans, and one relation, the print statement indicates recognition of only the two text spans:
I couldn’t find anything in the docs about this. I’ve dug around some of the other keys in LSI.annotation
and still couldn’t find anything. Could I get some help on this?