The Choice tag represents a single choice for annotations. Use with the Choices tag or Taxonomy tag to provide specific choice options.


Param Type Description
value string Choice value
[selected] boolean Specify whether to preselect this choice on the labeling interface
[alias] string Alias for the choice. If used, the alias replaces the choice value in the annotation results. Alias does not display in the interface.
[style] style CSS style of the checkbox element
[hotkey] string Hotkey for the selection
[html] string can be used to show enriched content1, it has higher priority than value, however value will be used in the exported result (should be properly escaped)
[hint] string Hint for choice on hover2


Basic text classification labeling configuration

  <Choices name="gender" toName="txt-1" choice="single">
    <Choice value="Man" />
    <Choice value="Woman" />
    <Choice value="Nonbinary" />
    <Choice value="Other" />
  <Text name="txt-1" value="John went to see Mary" />

  1. 1.ff_dev_2007_rework_choices_280322_short should be enabled to use html attribute
  2. 2.The hint attribute works only when fflag_feat_front_prod_309_choice_hint_080523_short is enabled
Try Enterprise Cloud for free Get Started