HumanSignal / HumanSignal/label-studio

More control over Relations

Open
#857 0 comments 3 reactions 1 assignee Claimed by @makseq View on GitHub
editor feature
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

**Is your feature request related to a problem? Please describe.**

Currently, there's no way to:
* specify which Label types may participate in which Relations (e.g., a Spouse Relation should only be allowed to link Labels of type Person, not Labels of type Organization)
* specify that a Relation is required for some Labels (e.g., each word is required to have a dependency Relation to its grammatical parent).

**Describe the solution you'd like and alternatives you've considered**

I don't know what's easiest to implement, and I'm not particular about the exact solution. To achieve the constraints on Relations, some possibilities might be:
* Relation could allow a new attribute ``
* As above, but implemented as a new child element, say, ``
* As either of the two above, but implemented in Relation instead of Relations.

To achieve required relations, some possibilities might be:
* Allow `Relations` to be placed within a `View` with `whenLabelValue`, so that the labeling config can determine when the relations panel should show up.
* As above, but keep the global relations panel and just display the subset of the relations panel that applies to the `Label` when you're in the `View` with `whenLabelValue`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.