文档

自定义模板

更新时间:

如果iTAG提供的标注模板无法满足您的需求,创建标注任务时,您也可以选择自定义模板。本文介绍自定义模板的数据结构。

  • 应用场景

    您特定的标注场景。

  • 数据结构

    • 输入数据

      manifest文件的每行数据是一道题目,且每行数据的字段名不限制,在创建任务时,您可以自由选择字段。

      {"data":{"picture_url":"oss://tongxin-lly.oss-cn-hangzhou.aliyuncs.com/iTAG/pic/13.jpg","text":"阿里巴巴集团庆祝创立十周年,同时成立阿里云计算"}}
      ...
    • 输出数据

      manifest文件的每行数据由题目和标注结果一起生成。每行数据的JSON结构如下。

      {
          "data": {
              "picture_url": "oss://itag.oss-cn-hangzhou.aliyuncs.com/tongxin_pic/13.jpg", 
              "text": "阿里巴巴集团庆祝创立十周年,同时成立阿里云计算"
          }, 
          "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": "标签2"
                              }
                          }
                      ], 
                      "rotation": 0, 
                      "markTitle": "框选题-IMG-3", 
                      "width": 960, 
                      "type": "image", 
                      "height": 960
                  }, 
                  {
                      "objects": [
                          {
                              "result": {
                                  "NER": [
                                      "标签7"
                                  ]
                              }, 
                              "color": null, 
                              "id": null, 
                              "text": "集团庆祝", 
                              "start": 4, 
                              "end": 7
                          }
                      ], 
                      "empty": false
                  }, 
                  {
                      "questionId": "3", 
                      "data": "这里是填空题的答案", 
                      "markTitle": "文本内容", 
                      "type": "survey/value"
                  }, 
                  {
                      "questionId": "4", 
                      "data": "标签222", 
                      "markTitle": "单选题", 
                      "type": "survey/value"
                  }
              ]
          }
      }
  • 本页导读 (1)
文档反馈