NEW OpenAI Structured Outputs with Label Studio 🚀

Relations

The Relations tag is used to create label relations between regions. Use to provide many values to apply to the relationship between two labeled regions.

Use with the following data types: audio, image, HTML, paragraphs, text, time series, video.

Parameters

Param Type Default Description
[choice] single | multiple single Configure whether you can select one or multiple labels

Example

Basic labeling configuration to apply the label “similar” or “dissimilar” to a relation identified between two labeled regions of text

<View>
  <Relations>
    <Relation value="similar" />
    <Relation value="dissimilar" />
  </Relations>

  <Text name="txt-1" value="$text" />
  <Labels name="lbl-1" toName="txt-1">
    <Label value="Relevant" />
    <Label value="Not Relevant" />
  </Labels>
</View>

In this article

  1. Parameters
  2. Example
Unlock more with Enterprise Get a Demo