If the annotation templates provided by iTAG do not meet your needs, you can use a custom template when you create an annotation task. This topic describes the data structure of a custom template.
-
Scenarios
Your specific annotation scenario
-
Data structure
-
Input data
Each row in the manifest file is a data item. The field names for each row are not restricted. When you create a task, you can select any fields.
{"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 contains the data item and its annotation result. The JSON structure for each row is shown below.
{ "data": { "picture_url": "oss://itag.oss-cn-hangzhou.aliyuncs.com/tongxin_pic/13.jpg", "text": "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, 1116.7636363636366 ], [ 829.927272727273, 1116.7636363636366 ], [ 829.927272727273, 451.49090909090916 ] ], "labels": { "boundingbox": "Label 2" } } ], "rotation": 0, "markTitle": "Bounding box selection-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": "This is the answer to the fill-in-the-blank question.", "markTitle": "Text content", "type": "survey/value" }, { "questionId": "4", "data": "Label 222", "markTitle": "Single-choice question", "type": "survey/value" } ] } }
-