RunPreTrainService_NLP自学习平台_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

流控信息

请求速率为20/1(s)。更多流控信息,请前往配额中心查看

授权信息

当前云产品暂无权限信息透出。

请求参数

字段名称字段详情
ServiceNamestring

服务名称。

示例值:ReviewAnalysis
ServiceVersionstring

服务版本。

示例值:V1
PredictContentstring

预测输入。

示例值:{"input":{"content": "这件衣服真好看", "domain": "clothing"}}

返回参数

字段名称字段详情
PredictResultstring

模型预测结果。

示例值:{"cost":"21.812ms","imprs":[{"aspect":"款式","clause":"这件衣服真好看","neg_prob":0.0,"pos_prob":0.566100001335144,"position":"0,7","sentiment":"正"}]},"message":"SUCCESS","tracerId":"7973b50e31dcbea8323460e0134d3226"}
RequestIdstring

请求 ID。

示例值:7310FFCF-9FE8-4257-AE38-0E1AD828C2CC
BillingCountinteger<int32>

计费次数,对应抵扣资源包数量

示例值:1

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
InvalidAccountStatus.ServiceUnavailable
The NLP Auto Machine Learning service has not been activated.诊断
400
InvalidAccountStatus.ServiceLimit
The maximum number of free API daily visits is exceeded.诊断
400
parameterError
The parameter is invalid.诊断
400
predictContentLength
The length of content exceeds the limit.诊断
400
postPaidArrearage
The service is not opened or the account is overdue.诊断
404
ResourceNotFound
The specified Model does not exist.诊断
500
ModelInferenceError
Failed to obtain the model prediction result.诊断
500
UnknownError
A server error occurred while processing your request. Please try again later or contact customer support.诊断
500
InternalError
An error occurred while processing your request.诊断
500
predictTimeout
model predict cost greater than 9000ms.诊断
503
ServiceUnavailable
An error occurred while processing your request.诊断

变更历史

变更时间变更内容概要操作
2023-05-06
变更返回参数
2023-03-17
变更错误码400
变更错误码500

相关示例

调用预训练模型服务
2022-04-29