智能造价 AEC 文本识别服务
请求的 url/uri
请求的方式
| 参数 |
参数类型 |
参数约束 |
是否必传 |
示例值 |
描述 |
| Authorization |
字符串 |
|
是 |
“bearer cn-4d4a05cb-762f-4034-99e3-70873d53e6b0” |
用户授权标识 |
请求 param 参数
| 参数 |
参数类型 |
参数约束 |
是否必传 |
示例值 |
描述 |
| accessToken |
字符串 |
|
是 |
“cn-4d4a05cb-762f-4034-99e3-70873d53e6b0” |
用户授权标识 |
| dataContent |
json |
详见 dataContent 参数说明 |
是 |
|
参数父节点 |
dataContent 参数说明
| 参数 |
参数类型 |
参数约束 |
是否必传 |
示例值 |
描述 |
| properties |
json |
|
是 |
|
参数父节点,dataContent 的子节点 |
| pipelineLanguage |
字符串 |
|
是 |
zh |
语言 |
| body |
字符串 |
|
是 |
|
需要识别的文字 |
| annotators |
字符串 |
|
是 |
|
识别分类 |
| date |
字符串 |
|
是 |
|
日期 |
请求参数示例
{
"accessToken": "cn-4d4a05cb-762f-4034-99e3-70873d53e6b0",
"dataContent": {
"properties": {
"annotators": "tokenize,ssplit,pos,ner,depparse",
"date": "2019-12-10T11:07:33"
},
"pipelineLanguage": "zh",
"body": "快速的棕色狐狸跳过了懒惰的狗"
}
}
返回的数据
{
"code": 2000,
"message": "成功",
"data": {
"sentences": [
{
"basicDependencies": [
{
"governorGloss": "狐狸",
"dependentGloss": "快速",
"governor": 4,
"dependent": 1,
"dep": "amod"
},
{
"governorGloss": "快速",
"dependentGloss": "的",
"governor": 1,
"dependent": 2,
"dep": "case"
},
{
"governorGloss": "狐狸",
"dependentGloss": "棕色",
"governor": 4,
"dependent": 3,
"dep": "compound:nn"
},
{
"governorGloss": "过",
"dependentGloss": "狐狸",
"governor": 6,
"dependent": 4,
"dep": "nsubj"
},
{
"governorGloss": "过",
"dependentGloss": "跳",
"governor": 6,
"dependent": 5,
"dep": "xcomp"
},
{
"governorGloss": "ROOT",
"dependentGloss": "过",
"governor": 0,
"dependent": 6,
"dep": "ROOT"
},
{
"governorGloss": "过",
"dependentGloss": "了",
"governor": 6,
"dependent": 7,
"dep": "aux:asp"
},
{
"governorGloss": "狗",
"dependentGloss": "懒惰",
"governor": 10,
"dependent": 8,
"dep": "amod"
},
{
"governorGloss": "懒惰",
"dependentGloss": "的",
"governor": 8,
"dependent": 9,
"dep": "case"
},
{
"governorGloss": "过",
"dependentGloss": "狗",
"governor": 6,
"dependent": 10,
"dep": "dobj"
}
],
"index": 0,
"tokens": [
{
"originalText": "快速",
"characterOffsetBegin": 0,
"characterOffsetEnd": 2,
"before": " ",
"pos": "d",
"index": 1,
"after": " ",
"word": "快速"
},
{
"originalText": "的",
"characterOffsetBegin": 3,
"characterOffsetEnd": 4,
"before": " ",
"pos": "uj",
"index": 2,
"after": " ",
"word": "的"
},
{
"originalText": "棕色",
"characterOffsetBegin": 5,
"characterOffsetEnd": 7,
"before": " ",
"pos": "颜色",
"index": 3,
"after": " ",
"word": "棕色"
},
{
"originalText": "狐狸",
"characterOffsetBegin": 8,
"characterOffsetEnd": 10,
"before": " ",
"pos": "n",
"index": 4,
"after": " ",
"word": "狐狸"
},
{
"originalText": "跳",
"characterOffsetBegin": 11,
"characterOffsetEnd": 12,
"before": " ",
"pos": "v",
"index": 5,
"after": " ",
"word": "跳"
},
{
"originalText": "过",
"characterOffsetBegin": 13,
"characterOffsetEnd": 14,
"before": " ",
"pos": "ug",
"index": 6,
"after": " ",
"word": "过"
},
{
"originalText": "了",
"characterOffsetBegin": 15,
"characterOffsetEnd": 16,
"before": " ",
"pos": "ul",
"index": 7,
"after": " ",
"word": "了"
},
{
"originalText": "懒惰",
"characterOffsetBegin": 17,
"characterOffsetEnd": 19,
"before": " ",
"pos": "a",
"index": 8,
"after": " ",
"word": "懒惰"
},
{
"originalText": "的",
"characterOffsetBegin": 20,
"characterOffsetEnd": 21,
"before": " ",
"pos": "uj",
"index": 9,
"after": " ",
"word": "的"
},
{
"originalText": "狗",
"characterOffsetBegin": 22,
"characterOffsetEnd": 23,
"before": " ",
"pos": "n",
"index": 10,
"after": " ",
"word": "狗"
}
]
}
],
"docDate": "2019-06-14T16:27:03"
},
"state": null,
"taskId": "3edbbcce25d64455b9a4e7997667ab20"
}