编辑 | blame | 历史 | 原始文档

Parameters

Param Type Default Description
name string Name of the element
toName string Name of the element that you want to classify
[apiUrl] string Beta -- Retrieve the taxonomy from a remote source. This can be a JSON-formatted file or a hierarchical data source read as an API. For more information, see the Taxonomy template page
[leafsOnly] boolean false Allow annotators to select only leaf nodes of taxonomy
[showFullPath] boolean false Whether to show the full path of selected items
[pathSeparator] string "/" Separator to show in the full path (default is " / "). To avoid errors, ensure that your data does not include this separator
[maxUsages] number Maximum number of times a choice can be selected per task or per region
[maxWidth] number Maximum width for dropdown with units (eg: "500px")
[minWidth] number Minimum width for dropdown with units (eg: "300px")
[required] boolean false Whether it is required to have selected at least one option
[requiredMessage] string Message to show if validation fails
[placeholder=] string What to display as prompt on the input
[perRegion] boolean Use this tag to classify specific regions instead of the whole object
[perItem] boolean Use this tag to classify specific items inside the object instead of the whole object
[labeling] boolean Use taxonomy to label regions in text. Only supported with <Text> and <HyperText> object tags.
[legacy] boolean Use this tag to enable the legacy version of the Taxonomy tag. The legacy version supports the ability for annotators to add labels as needed. However, when true, the apiUrl parameter is not usable.