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 segmentation.

Use it to select multiple words, individual words, or letters in the text and label them with values. You can create multiple categories to label parts of the text, like all nouns and adjectives.

You can use plugin.field.text-annotation.hotkeys to assign keyboard shortcuts for selecting categories.

Parameters Description

ParametersTypeDescription
dataOptional[BaseComponent]

Data with values that will be processed or changed.

adjustOptional[Union[BaseComponent, str]]

If the property value is set to words, only words can be selected in the text. If you don't use this property, any part of a line can be selected.

contentOptional[Union[BaseComponent, str]]

The text where the Toloker has to select part of a line.

disabledOptional[Union[BaseComponent, bool]]

This property blocks the component. If True, the component is unavailable to the Toloker. The default value is False.

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

A category.

hintOptional[Any]

Hint text.

labelOptional[Any]

Label above the component.

validationOptional[BaseComponent]

Validation based on condition.

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