Languages

toloka.client.filter.Languages | Source code

Languages(
self,
operator: InclusionOperator,
value: Union[str, List[str]],
verified: bool = False
)

Filtering Tolokers by languages specified in their profiles.

Parameters description

ParametersTypeDescription
operatorInclusionOperator

An operator used in a condition. Allowed set of operators depends on the filter.

valueUnion[str, List[str]]

Languages specified in the profile. A two-letter ISO 639-1 code in upper case is used.

verified-

If set to True, only Tolokers who have passed a language test are selected. Tests are available for languages: AR, DE, EN, ES, FR, HE, ID, JA, PT, RU, SV, ZH-HANS.

Examples:

from toloka.client.primitives.operators import InclusionOperator
updated_pool = toloka_client.get_pool('38955320')
updated_pool.filter=(
(toloka.filter.Languages(operator=InclusionOperator.IN, value=['EN', 'DE'], verified=True)) &
(toloka.filter.Languages(operator=InclusionOperator.IN, value=['FR'], verified=True))
)
toloka_client.update_pool(pool_id=updated_pool.id, pool=updated_pool)

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