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 | Type | Description |
---|---|---|
operator | InclusionOperator | An operator used in a condition. Allowed set of operators depends on the filter. |
value | Union[str, List[str]] | Languages specified in the profile. A two-letter ISO 639-1 code in upper case is used. |
verified | - | If set to |
Examples:
from toloka.client.primitives.operators import InclusionOperatorupdated_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