GetPredictResult_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.

流控信息

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

授权信息

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

请求参数

字段名称字段详情
ModelIdinteger<int32>

模型 id。

示例值:1818
Contentstring

预测文本。

示例值:中华人民共和国人民解放军
ModelVersionstring

模型版本。

示例值:V1
DetailTagstring

文本实体抽取模型预测是否返回详细结果,取值 true 或者 false。

示例值:true
TopKinteger<int32>

关键短语抽取模型,设置返回 top 结果数量。

示例值:3

返回参数

字段名称字段详情
Contentstring

预测结果,格式为 JSON 字符串。

示例值:["人民解放军","中华人民共和国"]
RequestIdstring

请求 id。

示例值:32CE4E89-218B-4DAE-A103-E6BFA66EE63B

返回示例

错误码

全局错误码
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
InvalidParameter.ModelId
The specified modelId is invalid.诊断
400
InvalidParameter.ModelVersion
The specified modelVersion is invalid.诊断
400
InvalidContentLength
The length of content exceeds the limit.诊断
400
parameterError
The parameter is invalid.诊断
403
40003
An error occurred while authenticating the model.诊断
403
Forbbiden
You are not authorized to operate on the specified resource.诊断
403
40002
The specified interface is throttled.诊断
403
40013
An error occurred while authenticating the model.诊断
404
ResourceNotFound
The specified Model does not exist.诊断
500
InternalError
An error occurred while processing your request.诊断
500
ModelInferenceFailed
The model inference result is null.诊断
503
ServiceUnavailable
An error occurred while processing your request.诊断

变更历史

变更时间变更内容概要操作
2022-04-18
变更错误码403
删除错误码103

相关示例

获取模型预测结果示例
2022-04-29