文档
测试

查询句子中人名和地名接口

POST
/api/material/getentities

接口描述

最大25个句子一次请求,多于此数请分批请求

请求参数

参数名
类型
描述
必填
token
当前登陆用户token
必填
appid
手机端APPID
必填
sentences
句子的json,最大25条,格式['句子1','句子2','句子3'...]
必填

说明 / 示例

{ "data": { "data": "[{\"index\":7,\"sentence\":\"This is a 38.\",\"Entities\":[{\"Score\":0.9999994039535522,\"Type\":\"QUANTITY\",\"Text\":\"38\",\"BeginOffset\":10,\"EndOffset\":12}]},{\"index\":38,\"sentence\":\"Robin took Little John to the secret hiding place in the forest.\",\"Entities\":[{\"Score\":0.9999992847442627,\"Type\":\"PERSON\",\"Text\":\"Robin\",\"BeginOffset\":0,\"EndOffset\":5},{\"Score\":0.9600595831871033,\"Type\":\"PERSON\",\"Text\":\"Little John\",\"BeginOffset\":11,\"EndOffset\":22}]}]", "code": "00" } }