全部产品

电商(支持定制)

更新时间:2021-01-22 15:48

命名实体识别高级版(电商-支持定制)

请求参数

名称 类型 是否必选 示例值 描述
Action String GetNerCustomizedChEcom 系统规定参数,取值:GetNerCustomizedChEcom
ServiceCode String alinlp 固定值,一定是alinlp
Text String 请输入文本 需要分析的文本,最大长度1024个字符
LexerId String ECOM 模型类型,默认为ECOM

返回数据

名称 类型 示例值 描述
Data String {“result”:[{“synonym”:””,”weight”:”0.100000”,”tag”:”普通词”,”word”:”请”},{“synonym”:””,”weight”:”0.100000”,”tag”:”普通词”,”word”:”输入”},{“synonym”:””,”weight”:”1.000000”,”tag”:”品类”,”word”:”文本”}],”success”:true}
RequestId String FA53D08F-37D1-4D81-BEE7-41F24E825F60 唯一请求id,排查问题的依据

示例

请求示例

  1. http(s)://[Endpoint]/?Action=GetNerCustomizedChEcom
  2. &ServiceCode=alinlp
  3. &Text=请输入文本
  4. &<公共请求参数>

正常返回示例

XML 格式

  1. <RequestId>FA53D08F-37D1-4D81-BEE7-41F24E825F60</RequestId>
  2. <Data>{"result":[{"synonym":"","weight":"0.100000","tag":"普通词","word":"请"},{"synonym":"","weight":"0.100000","tag":"普通词","word":"输入"},{"synonym":"","weight":"1.000000","tag":"品类","word":"文本"}],"success":true}</Data>

JSON 格式

  1. {"RequestId":"FA53D08F-37D1-4D81-BEE7-41F24E825F60","Data":"{\"result\":[{\"synonym\":\"\",\"weight\":\"0.100000\",\"tag\":\"普通词\",\"word\":\"请\"},{\"synonym\":\"\",\"weight\":\"0.100000\",\"tag\":\"普通词\",\"word\":\"输入\"},{\"synonym\":\"\",\"weight\":\"1.000000\",\"tag\":\"品类\",\"word\":\"文本\"}],\"success\":true}"}

错误码

HttpCode 错误码 错误信息 描述
403 Forbidden.NoAuth Failed to perform user authentication. 用户鉴权失败
411 FrameworkApiError Framework API error. 框架api错误
410 FrameworkError Framework internal server error. 框架错误
412 FrameworkFormatError Framework request format error. 框架请求格式错误
413 FrameworkReturnError Framework return type format error. 框架返回格式错误
406 TextCodingError An encoding error occurred to the input text. 输入文本编码错误
405 TextLimitExceeded The maximum length of the text is exceeded. 文本长度超过限制
429 Throttling.User Flow control has been triggered. 触发流控
400 UserStatusInvalid The user status is invalid. 用户状态无效,未开通服务
500 InternalError A service error occurred. 服务内部异常
401 InvalidParameter The parameter is invalid. 参数无效

访问错误中心查看更多错误码。