TextAnnotationFieldV1

toloka.client.project.template_builder.fields.TextAnnotationFieldV1 | Source code

TextAnnotationFieldV1(
self,
data: Optional[BaseComponent] = None,
*,
adjust: Optional[Union[BaseComponent, str]] = None,
content: Optional[Union[BaseComponent, str]] = None,
disabled: Optional[Union[BaseComponent, bool]] = None,
labels: Optional[Union[BaseComponent, List[Union[BaseComponent, Label]]]] = None,
hint: Optional[Any] = None,
label: Optional[Any] = None,
validation: Optional[BaseComponent] = None,
version: Optional[str] = '1.0.0'
)

A component for text annotation.

For more information, see field.text-annotation.

Parameters description

ParametersTypeDescription
dataOptional[BaseComponent]

A data path.

adjustOptional[Union[BaseComponent, str]]

If adjust is set to words, entire words are selected and annotated. If adjust is omitted, any part of a text can be selected.

contentOptional[Union[BaseComponent, str]]

A text for annotation.

disabledOptional[Union[BaseComponent, bool]]

Disabling the component.

Default value: False.

labelsOptional[Union[BaseComponent, List[Union[BaseComponent, Label]]]]

A list of annotation categories.

hintOptional[Any]

A hint.

labelOptional[Any]

A label above the component.

validationOptional[BaseComponent]

Validation rules.

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming