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

流控信息

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

授权信息

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

请求参数

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

模型 ID。根据服务名称和服务版本创建异步预测的时候,此参数不必传;否则必传。

示例值:1
Contentstring

预测内容,最大长度:1024 字节。

示例值:全国土地利用总体规划
ModelVersionstring

要获取的物模型版本号。不传入此参数,则返回已发布的最新版本。根据模型 ID 调用异步预测接口的时候传此参数。

示例值:V1
DetailTagstring

文本实体抽取类型模型,是否返回详细抽取结果。可选值:true/false。

示例值:false
TopKinteger<int32>

设置返回 top 结果数量。

示例值:0,3
FileTypestring

文件类型

示例值:text,html,pdf,docx,doc
FileUrlstring

文件 HTTP 保存地址。

示例值:http://127.0.0.1/example.docx
FileContentstring

文件内容 Base64 编码。

示例值:[base64 encode content]
FetchContentstring

返回预测文本

示例值:true
ServiceNamestring

服务名称。

示例值:ContractNERPretrain
ServiceVersionstring

服务版本。

示例值:V1

返回参数

字段名称字段详情
AsyncPredictIdinteger<int64>

异步预测唯一 ID,用于查询异步预测结果。

注意 请注意,该值为 Long 类型,在某些语言中可能存在精度丢失的风险,请小心使用。
示例值:1
RequestIdstring

请求 ID

示例值:E5C4531B-8331-5CD5-BEB3-2F8B58A4D680

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
200
40002
The specified interface is throttled.诊断
200
40013
An error occurred while authenticating the model.诊断
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.诊断
400
predictLimit
The maximum number of submitted tasks is exceeded.诊断
403
Forbbiden
You are not authorized to operate on the specified resource.诊断
404
ResourceNotFound
The specified Model does not exist.诊断
500
InternalError
An error occurred while processing your request.诊断
503
ServiceUnavailable
An error occurred while processing your request.诊断

变更历史

变更时间变更内容概要操作
2022-11-14
变更请求参数ModelId
新增请求参数ServiceName
新增请求参数ServiceVersion

相关示例

创建一个异步预测并获取预测结果
2021-03-15