If the labeling templates provided by iTAG of Machine Learning Platform for AI (PAI) cannot meet your requirements, you can create a custom labeling template. This topic describes the data structures for a custom labeling template.
- Scenarios
A custom labeling template applies to your specific labeling scenario.
- Data structures
- Input data
Each row in the .manifest file of input data contains an object. You can specify the fields that need to be contained in each row when you create the template.
{"data":{"picture_url":"oss://tongxin-lly.oss-cn-hangzhou.aliyuncs.com/iTAG/pic/13.jpg","text":"Alibaba Group's 10th anniversary and the founding of Alibaba Cloud"}} ...
- Output data
Each row in the .manifest file of output data contains an object and the labeling results for the object. The following code provides an example on the JSON string in each row:
{ "data": { "picture_url": "oss://itag.oss-cn-hangzhou.aliyuncs.com/tongxin_pic/13.jpg", "source": "Alibaba Group's 10th anniversary and the founding of Alibaba Cloud" }, "label-1435504604476547072": { "results": [ { "questionId": "1", "data": [ { "id": "e0755602-b90f-4d15-a11d-8951e001****", "type": "image/polygon", "value": [ [ 281.0181818181821, 451.49090909090916 ], [ 281.0181818181821, 281.0181818181821, ], [ 829.927272727273, 1116.7636363636366 ], [ 829.927272727273, 451.49090909090916 ] ], "labels": { "boundingbox": "Label 2" } } ], "rotation": 0, "markTitle": "Selection box-IMG-3", "width": 960, "type": "image", "height": 960 }, { "objects": [ { "result": { "NER": [ "Label 7" ] }, "color": null, "id": null, "text": "Group celebration", "start": 4, "end": 7 } ], "empty": false }, { "questionId": "3", "data": "Answer keys to gap-filling exercises", "markTitle": "Text content", "type": "survey/value" }, { "questionId": "4", "data": "Label 222", "markTitle": "Single-choice", "type": "survey/value" } ] } }
- Input data