toloka.client.skill.Skill
| Source code
Skill( self, *, name: Optional[str] = None, private_comment: Optional[str] = None, hidden: Optional[bool] = None, skill_ttl_hours: Optional[int] = None, training: Optional[bool] = None, public_name: Optional[Dict[str, str]] = None, public_requester_description: Optional[Dict[str, str]] = None, owner: Optional[Owner] = None, id: Optional[str] = None, created: Optional[datetime] = None)
Some characteristic of a Toloker described by a number from 0 to 100.
A Skill
describes some characteristic, for example the percentage of correct responses.
Skills can be used to filter Tolokers.
Skill values are assigned to Tolokers by quality control rules, or manually. The values are accessed via the UserSkill class.
Learn more about the Toloker skills.
Parameters | Type | Description |
---|---|---|
name | Optional[str] | The skill name. |
public_name | Optional[Dict[str, str]] | The skill name visible to Tolokers. The name can be provided in several languages. |
public_requester_description | Optional[Dict[str, str]] | The skill description visible to Tolokers. The description can be provided in several languages. |
private_comment | Optional[str] | Comments visible to a requester. |
hidden | Optional[bool] | Visibility of the skill values to Tolokers:
Default value: |
skill_ttl_hours | Optional[int] | A lifetime in hours. If the skill value assigned to a Toloker is not updated for |
training | Optional[bool] | Whether the skill is related to a training pool:
|
owner | Optional[Owner] | The skill owner. |
id | Optional[str] | The skill ID. Read-only field. |
created | Optional[datetime] | The UTC date and time when the skill was created. Read-only field. |
Examples:
Creating a new skill if it doesn't exist.
segmentation_skill = next(toloka_client.get_skills(name='Road signs detection'), None)if segmentation_skill: print(f'Skill exists. ID: {segmentation_skill.id}')else: segmentation_skill = toloka_client.create_skill( name='Road signs detection', public_requester_description={ 'EN': 'The quality of selecting road signs on images', 'RU': 'Качество выделения дорожных знаков на фотографиях', }, ) print(f'Skill created. ID: {segmentation_skill.id}')
Last updated: August 28, 2023