文本摘要(电商)
文本摘要(高级版-电商领域)
调用须知
该服务为高级版的能力,需要开通高级版才能免费调用。点击这里确认开通状态:点击确认开通
支持语言:中文
支持领域:电商领域
能力说明:自动抽取输入文本中的关键信息并生成短文本摘要。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetSummaryChEcom | 系统规定参数,取值:GetSummaryChEcom |
ServiceCode | String | 是 | alinlp | 固定值,只支持alinlp |
Text | String | 是 | 请输入一段较长的电商文本。 | 电商文本内容,长度最好在100-300之内(最小长度不小于60字,最大长度不超过800字) |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | FA53D08F-37D1-4D81-BEE7-41F24E825F60 | 唯一请求id,排查问题的依据 |
Data | String | { “result”:”请输入一段较长的电商文本”, “success”:true} | result: 文本摘要结果 |
示例
请求示例
http(s)://alinlp.cn-hangzhou.aliyuncs.com/?Action=GetSummaryChEcom
&ServiceCode=alinlp
&Text=请输入一段较长的电商文本。
&<公共请求参数>
正常返回示例
XML
格式
<RequestId>FA53D08F-37D1-4D81-BEE7-41F24E825F60</RequestId>
<Data>{ "result":"请输入一段较长的电商文本", "success":true}</Data>
JSON
格式
{"RequestId":"FA53D08F-37D1-4D81-BEE7-41F24E825F60","Data":"{ \"result\":\"请输入一段较长的电商文本\", \"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. | 参数无效 |
访问错误中心查看更多错误码。