云服务器内容精选

  • 请求说明 表1 请求体参数 参数名称 数据类型 参数位置 必选/可选 描述 tenantId String body True 租户ID。 language String body True 语言。选项如下: zh_CN:中文 en_US:英文 es_ES:西班牙语 ar:阿拉伯语 th_TH:泰语 pt_BR:葡萄牙语 说明: 基于Tuc的实体识别,支持如上选项语种。 基于Lodas的实体识别,支持语言以Lodas实体识别模型为准。 sentence String body True 输入语句。 实体识别的依据,最大长度4096字符。 authToken String body True 认证token。 请参见C3 智能助手平台接口鉴权方式。
  • 报文样例 请求样例 { "tenantId":"202104237142", "language":"zh_CN", "sentence":"长沙岳麓区岳麓大道旺龙路,下雨天积水严重,影响出行", "authToken":"E2mjXcv*******************XX1av"} 响应样例 { "count": 4, "entityMsgV2List": [ { "citation": "@system.any", // 匹配任意用户输入 "type": -1, "userEntity": false, "envEntity": false, "beginIndex": 0, "endIndex": 25, "values": { "@system.any": "长沙岳麓区岳麓大道旺龙路,下雨天积水严重,影响出行", "@system.any.raw": "长沙岳麓区岳麓大道旺龙路,下雨天积水严重,影响出行" }, "formats": [ "raw" ] }, { "citation": "@system.env.time", // 当前时间 "type": -1, "userEntity": false, "envEntity": true, "beginIndex": -1, "endIndex": -1, "values": { "@system.env.time.hour": "11", "@system.env.time.minute": "09", "@system.env.time": "11:09" }, "formats": [ "hour", "minute" ] }, { "citation": "@system.env.date", // 当前日期 "type": -1, "userEntity": false, "envEntity": true, "beginIndex": -1, "endIndex": -1, "values": { "@system.env.date.yyyyMM": "202110", "@system.env.date": "2021-10-19", "@system.env.date.year": "2021", "@system.env.date.month": "10", "@system.env.date.day": "19" }, "formats": [ "yyyyMM", "year", "month", "day" ] }, { "citation": "@system.address", // 地址检测 "type": -1, "userEntity": false, "envEntity": false, "beginIndex": 0, "endIndex": 5, "values": { "@system.address.raw": "长沙岳麓区", "@system.address": "湖南省长沙市岳麓区", "@system.address.province": "湖南省" }, "formats": [ "raw", "province" ] } ]}