We have a set of real-life photos of cats and dogs. We need to classify them according to what animal is shown in the picture: cats and dogs. We ask performers to look at the pictures and decide what animal is in the picture. Here’s what this might look like:
{
"view": {
"type": "view.list",
"items": [
{
"type": "view.image",
"ratio": [
1,
1
],
"rotatable": true,
"url": {
"type": "data.input",
"path": "image"
}
},
{
"type": "field.button-radio-group",
"label": "Is it a cat or a dog?",
"options": [
{
"label": "Cat",
"value": "cat"
},
{
"label": "Dog",
"value": "dog"
},
{
"label": "Other",
"value": "other"
}
],
"validation": {
"type": "condition.required",
"hint": "choose one of the options"
},
"data": {
"type": "data.output",
"path": "result"
}
}
]
},
"plugins": [
{
"type": "plugin.toloka",
"layout": {
"kind": "scroll",
"taskWidth": 500
}
},
{
"1": {
"type": "action.set",
"data": {
"type": "data.output",
"path": "result"
},
"payload": "cat"
},
"2": {
"type": "action.set",
"data": {
"type": "data.output",
"path": "result"
},
"payload": "dog"
},
"3": {
"type": "action.set",
"data": {
"type": "data.output",
"path": "result"
},
"payload": "other"
},
"type": "plugin.hotkeys"
}
]
}