Input and output data formats for custom labeling templates in iTAG.
-
Use cases
Use a custom template when default labeling templates do not meet your requirements.
-
Data structure
-
Input data
Each line in the .manifest file represents a single data object. Field names are unrestricted. Select fields as required by your labeling task.
{"data":{"picture_url":"oss://tongxin-lly.oss-cn-hangzhou.aliyuncs.com/iTAG/pic/13.jpg","text":"Alibaba Group celebrates its 10th anniversary and establishes Alibaba Cloud Computing"}} ... -
Output data
Each line in the .manifest file combines a data object with its labeling result. The following example shows the JSON structure of a single line:
{ "data": { "picture_url": "oss://itag.oss-cn-hangzhou.aliyuncs.com/tongxin_pic/13.jpg", "text": "Alibaba Group celebrates its 10th anniversary and establishes Alibaba Cloud Computing" }, "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": "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": "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", "type": "survey/value" } ] } }
-