logofirst GitHub


Use the Choices tag to create a group of choices, with radio buttons or checkboxes. Can be used for single or multi-class classification. Use for advanced classification tasks where annotators can choose one or multiple answers.

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


Param Type Default Description
name string Name of the group of choices
toName string Name of the data item that you want to label
[choice] single | single-radio | multiple single Single or multi-class classification
[showInline] boolean false Show choices in the same visual line
[required] boolean false Validate whether a choice has been selected
[requiredMessage] string Show a message if validation fails
[visibleWhen] region-selected | choice-selected | no-region-selected Control visibility of the choices.
[whenTagName] string Use with visibleWhen. Narrow down visibility by name of the tag. For regions, use the name of the object tag, for choices, use the name of the choices tag
[whenLabelValue] string Narrow down visibility by label value
[whenChoiceValue] string Narrow down visibility by choice value
[perRegion] boolean Use this tag to select a choice for a specific region instead of the entire task


<!--Basic text classification labeling configuration-->
  <Choices name="gender" toName="txt-1" choice="single-radio">
    <Choice alias="M" value="Male" />
    <Choice alias="F" value="Female" />
    <Choice alias="NB" value="Nonbinary" />
    <Choice alias="X" value="Other" />
  <Text name="txt-1" value="John went to see Mary" />