logofirst
logofirst GitHub

Pairwise Classification

Perform pairwise classification and comparison of different objects with Label Studio using this template.

Interactive Template Preview

Labeling Configuration

<View>
  <Header>Select one of two items</Header>
  <Pairwise name="pw" toName="text1,text2" />
  <Text name="text1" value="$text1" />
  <Text name="text2" value="$text2" />
</View>

About the labeling configuration

All labeling configurations must be wrapped in View tags.

You can add a header to provide instructions to the annotator:

<Header>Select one of two items</Header>

Use the Pairwise control tag to apply pairwise selections to two samples of text:

<Pairwise name="pw" toName="text1,text2" />

Use the Text object tag to specify two samples of text with distinct names:

<Text name="text1" value="$text1" />
<Text name="text2" value="$text2" />