tags
- Introduction
Object Tags
- Audio
- HyperText
- Image
- Paragraphs
- Table
- Text
- TimeSeries
- Video
Control Tags
- Brush
- BrushLabels
- Choice
- Choices
- DateTime
- Ellipse
- EllipseLabels
- HyperTextLabels
- KeyPoint
- KeyPointLabels
- Label
- Labels
- List
- Number
- Pairwise
- ParagraphLabels
- Polygon
- PolygonLabels
- Ranker
- Rating
- Rectangle
- RectangleLabels
- Relation
- Relations
- Shortcut
- Taxonomy
- TextArea
- TimeSeriesLabels
- VideoRectangle
Visual & Experience Tags
- Collapse
- Filter
- Header
- Repeater
- Style
- View
Pairwise
The Pairwise
tag is used to compare two different objects and select one item from the list. If you want annotators to compare two objects and determine whether they are similar or not, use the Choices
tag.
Use with the following data types: audio, image, HTML, paragraphs, text, time series, video.
Parameters
Param | Type | Description |
---|---|---|
name | string |
Name of the element |
toName | string |
Comma-separated names of the elements you want to compare |
[selectionStyle] | string |
Style for the selection |
Example
Basic labeling configuration to compare two passages of text
<View>
<Header value="Select the more accurate summary"/>
<Pairwise name="pairwise" leftClass="text1" rightClass="text2" toName="txt-1,txt-2"></Pairwise>
<Text name="txt-1" value="Text 1" />
<Text name="txt-2" value="Text 2" />
</View>
Example
You can also style the appearance using the View tag:
<View>
<Pairwise name="pw" toName="txt-1,txt-2"></Pairwise>
<View style="display: flex;">
<View style="margin-right: 1em;"><Text name="txt-1" value="$text1" /></View>
<View><Text name="txt-2" value="$text2" /></View>
</View>
</View>
Couldn't find what you were looking for? Please let us know on
Slack
If you found an error, you can file an issue on GitHub!

If you found an error, you can file an issue on GitHub!