更新时间:2021-01-11 10:55
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetPosChEcom | 系统规定参数。取值:GetPosChEcom。 |
ServiceCode | String | 是 | alinlp | 固定值,一定是alinlp |
Text | String | 是 | 输入文本 | 需要分析的文本,最大长度1024个字符。 |
TokenizerId | String | 否 | MAINSE | 分词器类型,默认为MAINSE |
OutType | String | 否 | 0 | 0:大粒度,1:中粒度(默认),2:小粒度 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Data | String | {“result”:[{“pos”:”VV”,”word”:”请”},{“pos”:”VV”,”word”:”输入”},{“pos”:”NN”,”word”:”文本”}],”success”:true} | |
RequestId | String | FA53D08F-37D1-4D81-BEE7-41F24E825F60 | 唯一请求id,排查问题的依据 |
请求示例
http(s)://[Endpoint]/?Action=GetPosChEcom
&ServiceCode=alinlp
&Text=输入文本
&<公共请求参数>
正常返回示例
JSON 格式
{"RequestId":"FA53D08F-37D1-4D81-BEE7-41F24E825F60","Data":"{\"result\":[{\"pos\":\"VV\",\"word\":\"请\"},{\"pos\":\"VV\",\"word\":\"输入\"},{\"pos\":\"NN\",\"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. | 框架返回格式错误 |
500 | InternalError | A service error occurred. | 服务内部异常 |
401 | InvalidParameter | The parameter is invalid. | 参数无效 |
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. | 用户状态无效,未开通服务 |
更多错误代码,请访问:https://error-center.alibabacloud.com/status/product/alinlp
在文档使用中是否遇到以下问题
更多建议
匿名提交