更新时间:2021-01-22 20:09
名称 | 位置 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|---|
Action | String | 是 | GetDpChGeneralStanford | 系统规定参数,取值:GetDpChGeneralStanford | |
ServiceCode | String | 是 | alinlp | 固定值,只支持alinlp | |
Text | String | 是 | 我爱中国 | 文本,最大长度为120个字 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | FA53D08F-37D1-4D81-BEE7-41F24E825F60 | 唯一请求id,排查问题的依据 |
Data | String | { “result”: [ { “head”: 2, “pos”: “NR”, “id”: 1, “label”: “SBV”, “word”: “小明” }, { “head”: 0, “pos”: “VV”, “id”: 2, “label”: “ROOT”, “word”: “爱” }, { “head”: 2, “pos”: “NR”, “id”: 3, “label”: “VOB”, “word”: “中国” } ], “success”: true} | id:词语序号,从1开始word:词语pos:当前词语的词性head:词语的核心词idlabel:依存关系类型 |
请求示例
http(s)://[Endpoint]/?Action=GetDpChGeneralStanford
&ServiceCode=alinlp
&Text=我爱中国
&<公共请求参数>
正常返回示例
JSON
格式
{"RequestId":"FA53D08F-37D1-4D81-BEE7-41F24E825F60","Data":"{ \"result\": [ { \"head\": 2, \"pos\": \"NR\", \"id\": 1, \"label\": \"SBV\", \"word\": \"小明\" }, { \"head\": 0, \"pos\": \"VV\", \"id\": 2, \"label\": \"ROOT\", \"word\": \"爱\" }, { \"head\": 2, \"pos\": \"NR\", \"id\": 3, \"label\": \"VOB\", \"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. | 参数无效 |
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交