HumanSignal / label-studio

Label Studio is a multi-type data labeling and annotation tool with standardized output format
https://labelstud.io
Apache License 2.0
18.92k stars 2.36k forks source link

Support for hierarchical relation labels #3674

Open usamayaseen-veeva opened 1 year ago

usamayaseen-veeva commented 1 year ago

Hello,

We would like to annotate entities and relations, however, the schema of our relations is quite complex (several nested layers). Is it possible to create such a hierarchy for relation labels? Can we structure Relation labels as part of a Taxonomy?

Thanks!

makseq commented 1 year ago

@usamayaseen-veeva Relations are not groupable, however you can drag and drop regions on their panel and group them. image

usamayaseen-veeva commented 1 year ago

@makseq it seems like a nice trick, however, I guess this grouping of regions in the UI will not be reflected in the exported annotations (json).

makseq commented 1 year ago

@usamayaseen-veeva sure it will be reflected. Just check parendID field in annotation result array. Does it solve your question ?

usamayaseen-veeva commented 1 year ago

@makseq unfortunately not, for some reason grouping only works for named entity labels and not for relation labels in my case. We have more than 100 relation labels, with a complex hierarchy (several nested layers), we would like to define this hierarchy as part of the labelling schema; with manual grouping, they need to be grouped for every data point, which unfortunately would be very cumbersome. So even if this grouping works, it will not solve our actual annotation problem.

makseq commented 1 year ago

Got it. We will try to come up with some ideas here.

Meanwhile, maybe named relations will help you a little: https://labelstud.io/tags/relation.html#Parameters