diff options
Diffstat (limited to 'data/zh_cn/nlp-automl')
| -rw-r--r-- | data/zh_cn/nlp-automl/2019-05-29/api-docs.php | 74 | ||||
| -rw-r--r-- | data/zh_cn/nlp-automl/2019-07-01/api-docs.php | 316 | ||||
| -rw-r--r-- | data/zh_cn/nlp-automl/2019-11-11/api-docs.php | 811 |
3 files changed, 374 insertions, 827 deletions
diff --git a/data/zh_cn/nlp-automl/2019-05-29/api-docs.php b/data/zh_cn/nlp-automl/2019-05-29/api-docs.php index 9e8e218..0650282 100644 --- a/data/zh_cn/nlp-automl/2019-05-29/api-docs.php +++ b/data/zh_cn/nlp-automl/2019-05-29/api-docs.php @@ -1,18 +1,12 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'ROA', - 'product' => 'nlp-automl', - 'version' => '2019-05-29', - ], + 'info' => ['style' => 'ROA', 'product' => 'nlp-automl', 'version' => '2019-05-29'], 'directories' => [ [ 'id' => 0, 'title' => '其它', 'type' => 'directory', - 'children' => [ - 'PredictModel', - ], + 'children' => ['PredictModel'], ], ], 'components' => [ @@ -22,14 +16,8 @@ 'PredictModel' => [ 'summary' => '模型结果预测', 'path' => '/api/automl/predict', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -41,41 +29,18 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREnlp6HZZI5', - 'FEATUREnlpMXQY7X', - 'FEATUREnlpAOZDQ8', - 'FEATUREnlp6X5BYZ', - 'FEATUREnlp0VR1QU', - 'FEATUREnlp01ENOR', - 'FEATUREnlpM0OA48', - 'FEATUREnlpF61RQU', - 'FEATUREnlpJOUXF2', - 'FEATUREnlpR1YV22', - 'FEATUREnlp97BF9V', - 'FEATUREnlpEZFBRW', - 'FEATUREnlp3ZJX2G', - ], + 'abilityTreeNodes' => ['FEATUREnlp6HZZI5', 'FEATUREnlpMXQY7X', 'FEATUREnlpAOZDQ8', 'FEATUREnlp6X5BYZ', 'FEATUREnlp0VR1QU', 'FEATUREnlp01ENOR', 'FEATUREnlpM0OA48', 'FEATUREnlpF61RQU', 'FEATUREnlpJOUXF2', 'FEATUREnlpR1YV22', 'FEATUREnlp97BF9V', 'FEATUREnlpEZFBRW', 'FEATUREnlp3ZJX2G'], ], 'parameters' => [ [ 'name' => 'ModelId', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'Content', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -83,21 +48,11 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'Data' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], - 'Success' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'Data' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], + 'Success' => ['type' => 'string'], ], ], ], @@ -106,9 +61,6 @@ ], ], 'endpoints' => [ - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'nlp-automl.cn-hangzhou.aliyuncs.com', - ], + ['regionId' => 'cn-hangzhou', 'endpoint' => 'nlp-automl.cn-hangzhou.aliyuncs.com'], ], ]; diff --git a/data/zh_cn/nlp-automl/2019-07-01/api-docs.php b/data/zh_cn/nlp-automl/2019-07-01/api-docs.php index d661e4e..d2cd65f 100644 --- a/data/zh_cn/nlp-automl/2019-07-01/api-docs.php +++ b/data/zh_cn/nlp-automl/2019-07-01/api-docs.php @@ -1,35 +1,14 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'nlp-automl', - 'version' => '2019-07-01', - ], - 'directories' => [ - [ - 'id' => 0, - 'title' => '其它', - 'type' => 'directory', - 'children' => [ - 'AddMTInterveneWord', - 'GetPredictDoc', - 'PredictMTModelByDoc', - ], - ], - ], + 'info' => ['style' => 'RPC', 'product' => 'nlp-automl', 'version' => '2019-07-01'], + 'directories' => ['AddMTInterveneWord', 'GetPredictDoc', 'PredictMTModelByDoc'], 'components' => [ 'schemas' => [], ], 'apis' => [ 'AddMTInterveneWord' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -43,53 +22,27 @@ ], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - ], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'SourceText', 'in' => 'query', - 'schema' => [ - 'description' => '原文', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'hello', - ], + 'schema' => ['description' => '原文', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'hello'], ], [ 'name' => 'TargetText', 'in' => 'query', - 'schema' => [ - 'description' => '译文', - 'type' => 'string', - 'required' => false, - 'example' => '你好', - ], + 'schema' => ['description' => '译文', 'type' => 'string', 'required' => false, 'example' => '你好'], ], [ 'name' => 'ProjectId', 'in' => 'query', - 'schema' => [ - 'description' => '项目id', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '1', - ], + 'schema' => ['description' => '项目id', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '1'], ], [ 'name' => 'PackageId', 'in' => 'query', - 'schema' => [ - 'description' => '词包id', - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => '1', - 'default' => 'mt_automl', - ], + 'schema' => ['description' => '词包id', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '1', 'default' => 'mt_automl'], ], ], 'responses' => [ @@ -97,30 +50,13 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '接口返回码:200:表示成功。'."\n" - .'其它:表示错误码。错误码详情,请参见错误码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Message' => [ - 'description' => '错误信息。错误码对应的错误信息。', - 'type' => 'string', - 'example' => 'parameterError', - ], - 'RequestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => '46E6B40D-2B6C-571B-AC41-86207DE288A5', - ], - 'WordId' => [ - 'description' => '新增成功的词id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], + 'Code' => ['description' => '接口返回码:200:表示成功。'."\n" + .'其它:表示错误码。错误码详情,请参见错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Message' => ['description' => '错误信息。错误码对应的错误信息。', 'type' => 'string', 'example' => 'parameterError'], + 'RequestId' => ['description' => '请求id', 'type' => 'string', 'example' => '46E6B40D-2B6C-571B-AC41-86207DE288A5'], + 'WordId' => ['description' => '新增成功的词id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], ], + 'description' => '', ], ], ], @@ -128,17 +64,19 @@ 'title' => '增加干预数据', 'summary' => '把待干预的原文和译文添加到ProjectId和PackageId对应的dataSet上。', 'description' => '请确保在使用该接口前,已充分了解NLP自学习平台产品的收费方式和[价格](https://common-buy.aliyun.com/?commodityCode=nlp_bag#/buy)', - ], - 'GetPredictDoc' => [ - 'methods' => [ - 'head', - 'post', - 'get', + 'changeSet' => [ + ['createdAt' => '2022-03-07T07:22:38.000Z', 'description' => '响应参数发生变更、错误码发生变更'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AddMTInterveneWord'], + ], + 'product' => ['code' => 'nlp', 'title' => '自然语言处理'], ], + ], + 'GetPredictDoc' => [ + 'methods' => ['head', 'post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -155,32 +93,17 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'DocId', 'in' => 'query', - 'schema' => [ - 'description' => '文档id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '1000', - ], + 'schema' => ['description' => '文档id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '1000'], ], [ 'name' => 'Product', 'in' => 'query', - 'schema' => [ - 'description' => '产品code', - 'type' => 'string', - 'required' => false, - 'example' => '空', - 'default' => 'mt_automl', - ], + 'schema' => ['description' => '产品code', 'type' => 'string', 'required' => false, 'example' => '空', 'default' => 'mt_automl'], ], ], 'responses' => [ @@ -188,28 +111,12 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'description' => '0:初始化 1:处理中 2:处理成功 3:处理失败', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'RequestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => '86D18195-D89C-4C8C-9DC4-5FCE789CE6D5', - ], - 'ResultContent' => [ - 'description' => '预测结果,文件流形式', - 'type' => 'string', - 'example' => 'xxx', - ], - 'XLIFFInfo' => [ - 'description' => 'xliff信息,文件流形式', - 'type' => 'string', - 'example' => 'xxx', - ], + 'Status' => ['description' => '0:初始化 1:处理中 2:处理成功 3:处理失败', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], + 'RequestId' => ['description' => '请求id', 'type' => 'string', 'example' => '86D18195-D89C-4C8C-9DC4-5FCE789CE6D5'], + 'ResultContent' => ['description' => '预测结果,文件流形式', 'type' => 'string', 'example' => 'xxx'], + 'XLIFFInfo' => ['description' => 'xliff信息,文件流形式', 'type' => 'string', 'example' => 'xxx'], ], + 'description' => '', ], ], ], @@ -217,17 +124,11 @@ 'title' => '获取文档预测结果', 'summary' => '根据调用PredictMTModelByDoc返回的docId,调用该接口,返回预测后的结果。', 'description' => '请确保在使用该接口前,已充分了解NLP自学习平台产品的收费方式和[价格](https://common-buy.aliyun.com/?commodityCode=nlp_bag#/buy)', + 'changeSet' => [], ], 'PredictMTModelByDoc' => [ - 'methods' => [ - 'head', - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['head', 'post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -244,64 +145,32 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'FileContent', 'in' => 'formData', - 'schema' => [ - 'description' => '文件数据内容,文件内容需进过base64编码', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '[base64 encode content]', - ], + 'schema' => ['description' => '文件数据内容,文件内容需进过base64编码', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '[base64 encode content]'], ], [ 'name' => 'FileType', 'in' => 'query', - 'schema' => [ - 'description' => '文件类型', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'docx', - ], + 'schema' => ['description' => '文件类型', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'docx'], ], [ 'name' => 'ModelId', 'in' => 'query', - 'schema' => [ - 'description' => '模型id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'docRequired' => true, - 'example' => '1', - ], + 'schema' => ['description' => '模型id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '1'], ], [ 'name' => 'NeedXLIFF', 'in' => 'query', - 'schema' => [ - 'description' => '是否需要xliff信息', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'schema' => ['description' => '是否需要xliff信息', 'type' => 'boolean', 'required' => false, 'example' => 'true'], ], [ 'name' => 'ModelVersion', 'in' => 'query', - 'schema' => [ - 'description' => '模型版本', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'v1', - ], + 'schema' => ['description' => '模型版本', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'v1'], ], ], 'responses' => [ @@ -309,17 +178,10 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'DocId' => [ - 'description' => '文档id', - 'type' => 'string', - 'example' => '1', - ], - 'RequestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => '86D18195-D89C-4C8C-9DC4-5FCE789CE6D5', - ], + 'DocId' => ['description' => '文档id', 'type' => 'string', 'example' => '1'], + 'RequestId' => ['description' => '请求id', 'type' => 'string', 'example' => '86D18195-D89C-4C8C-9DC4-5FCE789CE6D5'], ], + 'description' => '', ], ], ], @@ -327,12 +189,94 @@ 'title' => '提交文档预测任务', 'summary' => '上传文档内容,指定模型进行预测。', 'description' => '请确保在使用该接口前,已充分了解NLP自学习平台产品的收费方式和[价格](https://common-buy.aliyun.com/?commodityCode=nlp_bag#/buy)', + 'changeSet' => [ + ['createdAt' => '2024-07-04T02:12:17.000Z', 'description' => '错误码发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PredictMTModelByDoc'], + ], + 'product' => ['code' => 'nlp', 'title' => '自然语言处理'], + ], ], ], 'endpoints' => [ + ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'nlp-automl.cn-hangzhou.aliyuncs.com', 'endpoint' => 'nlp-automl.cn-hangzhou.aliyuncs.com', 'vpc' => 'nlp-automl-vpc.cn-hangzhou.aliyuncs.com'], + ], + 'errorCodes' => [ + ['code' => '40001', 'message' => 'The quota for calling the model is exceeded.', 'http_code' => 403, 'description' => '调用额度已超出限制'], + ['code' => '40002', 'message' => 'The specified interface is throttled.', 'http_code' => 403, 'description' => '调用接口被限流'], + ['code' => '40003', 'message' => 'An error occurred while authenticating the model.', 'http_code' => 403, 'description' => '模型鉴权失败'], + ['code' => '40004', 'message' => 'A server error occurred while processing your request. Please try again later or contact customer support.', 'http_code' => 200, 'description' => '服务器内部出现错误,请稍后重试或者联系客服人员帮忙解决。'], + ['code' => '40013', 'message' => 'An error occurred while authenticating the model.', 'http_code' => 403, 'description' => '模型鉴权失败'], + ['code' => 'Account arrearage', 'message' => 'The account is arrearage.', 'http_code' => 400, 'description' => '账户已欠费'], + ['code' => 'BaseModelNotFound', 'message' => 'The base model is not found.', 'http_code' => 400, 'description' => '未找到基础模型'], + ['code' => 'createModelConcurrency', 'message' => 'Creating multiple models at the same time is not allowed.', 'http_code' => 400, 'description' => '不允许同时创建多个模型。'], + ['code' => 'DataCenter.IllegalDatasetId', 'message' => 'The format of the dataset ID is invalid.', 'http_code' => 403, 'description' => '数据集ID不是有效的数据集ID'], + ['code' => 'DataCenter.IllegalDatasetRecord', 'message' => 'The format of the dataset record is invalid.', 'http_code' => 403, 'description' => '数据集标注数据格式无效'], + ['code' => 'dataFormatError', 'message' => 'The number of data bars added exceeds 500.', 'http_code' => 400, 'description' => '添加的数据条数过大,超过了500条'], + ['code' => 'DocParseError', 'message' => 'The version of the uploaded DOC file is too early to support parsing. You are advised to replace the DOCX file with the latest version.', 'http_code' => 400, 'description' => '上传的DOC文件类型的版本过低,不支持解析,建议替换为最新版本的DOCX。'], + ['code' => 'FileParseError', 'message' => 'The uploaded file failed to be parsed.', 'http_code' => 500, 'description' => '上传的文件解析失败。'], + ['code' => 'Forbbiden', 'message' => 'You are not authorized to operate on the specified resource.', 'http_code' => 403, 'description' => '用户未被授权操作指定的资源。'], + ['code' => 'InternalError', 'message' => 'An error occurred while processing your request.', 'http_code' => 500, 'description' => '未知错误。'], + ['code' => 'InvalidAccountStatus.ServiceLimit', 'message' => 'The maximum number of free API daily visits is exceeded.', 'http_code' => 400, 'description' => 'API访问次数超过了免费额度限制。'], + ['code' => 'InvalidAccountStatus.ServiceUnavailable', 'message' => 'The NLP Auto Machine Learning service has not been activated.', 'http_code' => 400, 'description' => '用户未开通NLP自学习服务。'], + ['code' => 'InvalidContentLength', 'message' => 'The length of content exceeds the limit.', 'http_code' => 400, 'description' => '内容长度过长。'], + ['code' => 'InvalidParameter', 'message' => 'The parameter is invalid.', 'http_code' => 400, 'description' => '参数错误'], + ['code' => 'InvalidParameter.ModelId', 'message' => 'The specified modelId is invalid.', 'http_code' => 400, 'description' => '参数modelId不合法。'], + ['code' => 'InvalidParameter.ModelVersion', 'message' => 'The specified modelVersion is invalid.', 'http_code' => 400, 'description' => '参数modelVersion不合法。'], + ['code' => 'InvalidServiceName', 'message' => 'The service does not exist.', 'http_code' => 400, 'description' => '服务不存在。'], + ['code' => 'ModelCenter.CreateModelLimit', 'message' => 'The maximum number of models you created is exceeded.', 'http_code' => 403, 'description' => '创建模型数量已达上限'], + ['code' => 'ModelCenter.DeployModelLimit', 'message' => 'The maximum number of online models is exceeded. You cannot deploy the model.', 'http_code' => 403, 'description' => '模型在线数量已达上限,不能发布'], + ['code' => 'ModelCenter.IllegalModelName', 'message' => 'The format of the model name is invalid.', 'http_code' => 400, 'description' => '模型名称格式错误'], + ['code' => 'ModelCenter.MinTrainingcount', 'message' => 'The number of model training records is less than 4.', 'http_code' => 400, 'description' => '模型训练数据少于4条'], + ['code' => 'ModelCenter.ModelNotFound', 'message' => 'The model information is not found.', 'http_code' => 400, 'description' => '未找到模型信息'], + ['code' => 'ModelCenter.ModelNotInProject', 'message' => 'The model is not in the specified project.', 'http_code' => 400, 'description' => '项目ID不匹配'], + ['code' => 'ModelCenter.ModelStatusError', 'message' => 'The model status is abnormal.', 'http_code' => 400, 'description' => '模型状态异常'], + ['code' => 'ModelCenter.NoDatasetOnline', 'message' => 'The status of the training dataset is not online.', 'http_code' => 400, 'description' => '数据集状态未在线'], + ['code' => 'ModelCenter.NoPermission', 'message' => 'You are not authorized to perform the operation.', 'http_code' => 403, 'description' => '无权限操作'], + ['code' => 'ModelCenter.NotFoundConfig', 'message' => 'The configuration information of the model type is not found.', 'http_code' => 400, 'description' => '未找到模型类型配置信息'], + ['code' => 'ModelCenter.OnlineModelLimit', 'message' => 'The maximum number of online models is exceeded.', 'http_code' => 403, 'description' => '模型在线数量已达上限,不能操作上线'], + ['code' => 'ModelGroupNotFound', 'message' => 'The model group is not found.', 'http_code' => 400, 'description' => '未找到模型组信息'], + ['code' => 'ModelInferenceError', 'message' => 'Failed to obtain the model prediction result.', 'http_code' => 500, 'description' => '获取模型预测结果失败。'], + ['code' => 'ModelInferenceFailed', 'message' => 'The model inference result is null.', 'http_code' => 500, 'description' => '模型推测结果为空'], + ['code' => 'NotFoundUploadDataError', 'message' => 'No data set is created.', 'http_code' => 400, 'description' => '未创建数据集。'], + ['code' => 'parameterError', 'message' => 'The parameter is invalid.', 'http_code' => 400, 'description' => '参数错误'], + ['code' => 'PermissionDeny', 'message' => 'No RAM permission.', 'http_code' => 400, 'description' => '改账号没有权限'], + ['code' => 'postPaidArrearage', 'message' => 'The service is not opened or the account is overdue.', 'http_code' => 400, 'description' => '服务未开通或账户已欠费。'], + ['code' => 'postpaidArrearageError', 'message' => 'You have an overdue payment.', 'http_code' => 400, 'description' => '您已欠费'], + ['code' => 'predictContentLength', 'message' => 'The length of content exceeds the limit.', 'http_code' => 400, 'description' => '输入预测内容的长度超出限制。'], + ['code' => 'predictLimit', 'message' => 'The maximum number of submitted tasks is exceeded.', 'http_code' => 400, 'description' => '提交任务到达上限'], + ['code' => 'predictQpsLimit', 'message' => 'The maximum number of queries-per-second is exceeded.', 'http_code' => 403, 'description' => '单模型QPS达到上限'], + ['code' => 'predictTimeout', 'message' => 'model predict cost greater than 9000ms.', 'http_code' => 500, 'description' => '模型响应时间超过9秒。'], + ['code' => 'queryExceedMaxDuration', 'message' => 'The query data exceeds the upper limit.', 'http_code' => 400, 'description' => '查询数据超过允许的最大区间。'], + ['code' => 'ResourceNotFound', 'message' => 'The specified Model does not exist.', 'http_code' => 404, 'description' => '指定的模型不存在。'], + ['code' => 'ServiceUnavailable', 'message' => 'An error occurred while processing your request.', 'http_code' => 503, 'description' => '服务内部错误。'], + ['code' => 'UnknownError', 'message' => 'A server error occurred while processing your request. Please try again later or contact customer support.', 'http_code' => 500, 'description' => '未知错误。'], + ], + 'changeSet' => [ [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'nlp-automl.cn-hangzhou.aliyuncs.com', + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'GetPredictDoc'], + ['description' => '错误码发生变更', 'api' => 'PredictMTModelByDoc'], + ], + 'createdAt' => '2024-07-04T02:12:21.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更、错误码发生变更', 'api' => 'AddMTInterveneWord'], + ], + 'createdAt' => '2022-03-07T07:23:44.000Z', + 'description' => '修改AddMTInterveneWord这个接口的返回的message和wordId的数据类型,其他接口从public修改为private', + ], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetPredictDoc'], + ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PredictMTModelByDoc'], + ['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AddMTInterveneWord'], ], + 'product' => ['code' => 'nlp', 'title' => '自然语言处理'], ], ]; diff --git a/data/zh_cn/nlp-automl/2019-11-11/api-docs.php b/data/zh_cn/nlp-automl/2019-11-11/api-docs.php index 7eb872f..bbe67ed 100644 --- a/data/zh_cn/nlp-automl/2019-11-11/api-docs.php +++ b/data/zh_cn/nlp-automl/2019-11-11/api-docs.php @@ -1,28 +1,18 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'nlp-automl', - 'version' => '2019-11-11', - ], + 'info' => ['style' => 'RPC', 'product' => 'nlp-automl', 'version' => '2019-11-11'], 'directories' => [ [ - 'id' => 66230, - 'title' => '预测', + 'children' => ['CreateAsyncPredict', 'GetAsyncPredict'], 'type' => 'directory', - 'children' => [ - 'CreateAsyncPredict', - 'GetAsyncPredict', - ], + 'title' => '预测', + 'id' => 434474, ], [ - 'id' => 66233, - 'title' => '模型', + 'children' => ['GetPredictResult', 'RunPreTrainService'], 'type' => 'directory', - 'children' => [ - 'GetPredictResult', - 'RunPreTrainService', - ], + 'title' => '模型', + 'id' => 434477, ], ], 'components' => [ @@ -31,13 +21,8 @@ 'apis' => [ 'CreateAsyncPredict' => [ 'summary' => '调用CreateAsyncPredict创建一个异步预测。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -50,170 +35,66 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeNodes' => [ - 'FEATUREnlp2P1OGB', - 'FEATUREnlp6HZZI5', - 'FEATUREnlp8RK87E', - 'FEATUREnlpMXQY7X', - 'FEATUREnlp0537I6', - 'FEATUREnlpAOZDQ8', - 'FEATUREnlpCAMXDD', - 'FEATUREnlpEZFBRW', - 'FEATUREnlpM7P12V', - 'FEATUREnlp3ZJX2G', - 'FEATUREnlpQTX906', - 'FEATUREnlp97BF9V', - 'FEATUREnlpLCH6DG', - 'FEATUREnlpR1YV22', - 'FEATUREnlpDG0HX3', - 'FEATUREnlpJOUXF2', - 'FEATUREnlp9YSZ64', - 'FEATUREnlpF61RQU', - 'FEATUREnlpUZ2C2Y', - 'FEATUREnlpM0OA48', - 'FEATUREnlpZBZJI2', - 'FEATUREnlp01ENOR', - 'FEATUREnlpV1PN9B', - 'FEATUREnlp0VR1QU', - 'FEATUREnlpWB1IYO', - 'FEATUREnlp6X5BYZ', - 'FEATUREnlpX2LEJN', - 'FEATUREnlpLSF30C', - 'FEATUREnlpQ032BR', - 'FEATUREnlpQHAWK2', - 'FEATUREnlpWLVJE2', - 'FEATUREnlp4JXFXB', - 'FEATUREnlp0PKWIK', - 'FEATUREnlp1V7KGA', - 'FEATUREnlpR5NT62', - 'FEATUREnlpUC15C2', - 'FEATUREnlpOT0DNK', - 'FEATUREnlpQBSUD4', - 'FEATUREnlp8ES9UE', - 'FEATUREnlpTE27I1', - 'FEATUREnlp6WE0DC', - 'FEATUREnlpVBPY3Z', - 'FEATUREnlp0MGP51', - 'FEATUREnlpJSUF2I', + 'FEATUREnlp2P1OGB', 'FEATUREnlp6HZZI5', 'FEATUREnlp8RK87E', 'FEATUREnlpMXQY7X', 'FEATUREnlp0537I6', 'FEATUREnlpAOZDQ8', 'FEATUREnlpCAMXDD', 'FEATUREnlpEZFBRW', 'FEATUREnlpM7P12V', 'FEATUREnlp3ZJX2G', 'FEATUREnlpQTX906', 'FEATUREnlp97BF9V', 'FEATUREnlpLCH6DG', 'FEATUREnlpR1YV22', 'FEATUREnlpDG0HX3', 'FEATUREnlpJOUXF2', 'FEATUREnlp9YSZ64', 'FEATUREnlpF61RQU', 'FEATUREnlpUZ2C2Y', 'FEATUREnlpM0OA48', + 'FEATUREnlpZBZJI2', 'FEATUREnlp01ENOR', 'FEATUREnlpV1PN9B', 'FEATUREnlp0VR1QU', 'FEATUREnlpWB1IYO', 'FEATUREnlp6X5BYZ', 'FEATUREnlpX2LEJN', 'FEATUREnlpLSF30C', 'FEATUREnlpQ032BR', 'FEATUREnlpQHAWK2', 'FEATUREnlpWLVJE2', 'FEATUREnlp4JXFXB', 'FEATUREnlp0PKWIK', 'FEATUREnlp1V7KGA', 'FEATUREnlpR5NT62', 'FEATUREnlpUC15C2', 'FEATUREnlpOT0DNK', 'FEATUREnlpQBSUD4', 'FEATUREnlp8ES9UE', 'FEATUREnlpTE27I1', + 'FEATUREnlp6WE0DC', 'FEATUREnlpVBPY3Z', 'FEATUREnlp0MGP51', 'FEATUREnlpJSUF2I', ], ], 'parameters' => [ [ 'name' => 'ModelId', 'in' => 'formData', - 'schema' => [ - 'title' => '根据服务名称和服务版本创建异步预测的时候,此参数不必传;否则必传;', - 'description' => '模型ID。根据服务名称和服务版本创建异步预测的时候,此参数不必传;否则必传。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'docRequired' => false, - 'example' => '1', - ], + 'schema' => ['title' => '根据服务名称和服务版本创建异步预测的时候,此参数不必传;否则必传;', 'description' => '模型ID。根据服务名称和服务版本创建异步预测的时候,此参数不必传;否则必传。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '1'], ], [ 'name' => 'Content', 'in' => 'formData', - 'schema' => [ - 'description' => '预测内容,最大长度:1024字节。', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => '全国土地利用总体规划', - ], + 'schema' => ['description' => '预测内容,最大长度:1024字节。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '全国土地利用总体规划'], ], [ 'name' => 'ModelVersion', 'in' => 'formData', - 'schema' => [ - 'description' => '要获取的物模型版本号。不传入此参数,则返回已发布的最新版本。根据模型ID调用异步预测接口的时候传此参数。', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'V1', - ], + 'schema' => ['description' => '要获取的物模型版本号。不传入此参数,则返回已发布的最新版本。根据模型ID调用异步预测接口的时候传此参数。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'V1'], ], [ 'name' => 'DetailTag', 'in' => 'formData', - 'schema' => [ - 'description' => '文本实体抽取类型模型,是否返回详细抽取结果。可选值:true/false。', - 'type' => 'string', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => '文本实体抽取类型模型,是否返回详细抽取结果。可选值:true/false。', 'type' => 'string', 'required' => false, 'example' => 'false'], ], [ 'name' => 'TopK', 'in' => 'formData', - 'schema' => [ - 'description' => '设置返回top结果数量。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '0,3', - ], + 'schema' => ['description' => '设置返回top结果数量。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0,3'], ], [ 'name' => 'FileType', 'in' => 'formData', - 'schema' => [ - 'description' => '文件类型', - 'type' => 'string', - 'required' => false, - 'example' => 'text,html,pdf,docx,doc', - ], + 'schema' => ['description' => '文件类型', 'type' => 'string', 'required' => false, 'example' => 'text,html,pdf,docx,doc'], ], [ 'name' => 'FileUrl', 'in' => 'formData', - 'schema' => [ - 'description' => '文件HTTP保存地址。', - 'type' => 'string', - 'required' => false, - 'example' => 'http://127.0.0.1/example.docx', - ], + 'schema' => ['description' => '文件HTTP保存地址。', 'type' => 'string', 'required' => false, 'example' => 'http://127.0.0.1/example.docx'], ], [ 'name' => 'FileContent', 'in' => 'formData', - 'schema' => [ - 'description' => '文件内容Base64编码。', - 'type' => 'string', - 'required' => false, - 'example' => '[base64 encode content]', - ], + 'schema' => ['description' => '文件内容Base64编码。', 'type' => 'string', 'required' => false, 'example' => '[base64 encode content]'], ], [ 'name' => 'FetchContent', 'in' => 'formData', - 'schema' => [ - 'description' => '返回预测文本', - 'type' => 'string', - 'required' => false, - 'example' => 'true', - ], + 'schema' => ['description' => '返回预测文本', 'type' => 'string', 'required' => false, 'example' => 'true'], ], [ 'name' => 'ServiceName', 'in' => 'formData', - 'schema' => [ - 'title' => '服务名称', - 'description' => '服务名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'ContractNERPretrain', - ], + 'schema' => ['title' => '服务名称', 'description' => '服务名称。', 'type' => 'string', 'required' => false, 'example' => 'ContractNERPretrain'], ], [ 'name' => 'ServiceVersion', 'in' => 'formData', - 'schema' => [ - 'title' => '服务版本', - 'description' => '服务版本。', - 'type' => 'string', - 'required' => false, - 'example' => 'V1', - ], + 'schema' => ['title' => '服务版本', 'description' => '服务版本。', 'type' => 'string', 'required' => false, 'example' => 'V1'], ], ], 'responses' => [ @@ -221,103 +102,54 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'AsyncPredictId' => [ - 'description' => '异步预测唯一ID,用于查询异步预测结果。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => 'E5C4531B-8331-5CD5-BEB3-2F8B58A4D680', - ], + 'AsyncPredictId' => ['description' => '异步预测唯一ID,用于查询异步预测结果。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'E5C4531B-8331-5CD5-BEB3-2F8B58A4D680'], ], + 'description' => '', ], ], ], 'errorCodes' => [ 200 => [ - [ - 'errorCode' => '40002', - 'errorMessage' => 'The specified interface is throttled.', - ], - [ - 'errorCode' => '40013', - 'errorMessage' => 'An error occurred while authenticating the model.', - ], + ['errorCode' => '40002', 'errorMessage' => 'The specified interface is throttled.', 'description' => ''], + ['errorCode' => '40013', 'errorMessage' => 'An error occurred while authenticating the model.', 'description' => ''], ], 400 => [ - [ - 'errorCode' => 'InvalidAccountStatus.ServiceUnavailable', - 'errorMessage' => 'The NLP Auto Machine Learning service has not been activated.', - ], - [ - 'errorCode' => 'InvalidAccountStatus.ServiceLimit', - 'errorMessage' => 'The maximum number of free API daily visits is exceeded.', - ], - [ - 'errorCode' => 'InvalidParameter.ModelId', - 'errorMessage' => 'The specified modelId is invalid.', - ], - [ - 'errorCode' => 'InvalidParameter.ModelVersion', - 'errorMessage' => 'The specified modelVersion is invalid.', - ], - [ - 'errorCode' => 'InvalidContentLength', - 'errorMessage' => 'The length of content exceeds the limit.', - ], - [ - 'errorCode' => 'parameterError', - 'errorMessage' => 'The parameter is invalid.', - ], - [ - 'errorCode' => 'predictLimit', - 'errorMessage' => 'The maximum number of submitted tasks is exceeded.', - ], - [ - 'errorCode' => 'postPaidArrearage', - 'errorMessage' => 'The service is not opened or the account is overdue.', - ], + ['errorCode' => 'InvalidAccountStatus.ServiceUnavailable', 'errorMessage' => 'The NLP Auto Machine Learning service has not been activated.', 'description' => '用户未开通NLP自学习服务。'], + ['errorCode' => 'InvalidAccountStatus.ServiceLimit', 'errorMessage' => 'The maximum number of free API daily visits is exceeded.', 'description' => 'API访问次数超过了免费额度限制。'], + ['errorCode' => 'InvalidParameter.ModelId', 'errorMessage' => 'The specified modelId is invalid.', 'description' => '参数modelId不合法。'], + ['errorCode' => 'InvalidParameter.ModelVersion', 'errorMessage' => 'The specified modelVersion is invalid.', 'description' => '参数modelVersion不合法。'], + ['errorCode' => 'InvalidContentLength', 'errorMessage' => 'The length of content exceeds the limit.', 'description' => '内容长度过长。'], + ['errorCode' => 'parameterError', 'errorMessage' => 'The parameter is invalid.', 'description' => '参数错误'], + ['errorCode' => 'predictLimit', 'errorMessage' => 'The maximum number of submitted tasks is exceeded.', 'description' => '提交任务到达上限'], + ['errorCode' => 'postPaidArrearage', 'errorMessage' => 'The service is not opened or the account is overdue.', 'description' => '服务未开通或账户已欠费。'], ], 403 => [ - [ - 'errorCode' => 'Forbbiden', - 'errorMessage' => 'You are not authorized to operate on the specified resource.', - ], + ['errorCode' => 'Forbbiden', 'errorMessage' => 'You are not authorized to operate on the specified resource.', 'description' => '用户未被授权操作指定的资源。'], ], [ - [ - 'errorCode' => 'ResourceNotFound', - 'errorMessage' => 'The specified Model does not exist.', - ], + ['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified Model does not exist.', 'description' => '指定的模型不存在。'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'An error occurred while processing your request.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'An error occurred while processing your request.', 'description' => '未知错误。'], ], 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'An error occurred while processing your request.', - ], + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'An error occurred while processing your request.', 'description' => '服务内部错误。'], ], ], 'responseDemo' => '[{"type":"json","example":"{\\n \\"AsyncPredictId\\": 1,\\n \\"RequestId\\": \\"E5C4531B-8331-5CD5-BEB3-2F8B58A4D680\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateAsyncPredictResponse>\\r\\n <requestId>A357B459-3EA6-4F68-B285-FFDDF4E4662D</requestId>\\r\\n <asyncPredictId>1634</asyncPredictId>\\r\\n</CreateAsyncPredictResponse>","errorExample":""}]', 'title' => '创建一个异步预测', + 'changeSet' => [ + ['createdAt' => '2025-05-19T02:40:38.000Z', 'description' => '错误码发生变更'], + ['createdAt' => '2023-03-23T05:58:30.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2022-11-14T05:05:20.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2022-11-14T03:18:25.000Z', 'description' => '请求参数发生变更'], + ], ], 'GetAsyncPredict' => [ 'summary' => '调用GetAsyncPredict获取异步预测结果。', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -330,64 +162,16 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeNodes' => [ - 'FEATUREnlp2P1OGB', - 'FEATUREnlp6HZZI5', - 'FEATUREnlp8RK87E', - 'FEATUREnlpMXQY7X', - 'FEATUREnlp0537I6', - 'FEATUREnlpAOZDQ8', - 'FEATUREnlpCAMXDD', - 'FEATUREnlpEZFBRW', - 'FEATUREnlpM7P12V', - 'FEATUREnlp3ZJX2G', - 'FEATUREnlpQTX906', - 'FEATUREnlp97BF9V', - 'FEATUREnlpLCH6DG', - 'FEATUREnlpR1YV22', - 'FEATUREnlpDG0HX3', - 'FEATUREnlpJOUXF2', - 'FEATUREnlp9YSZ64', - 'FEATUREnlpF61RQU', - 'FEATUREnlpUZ2C2Y', - 'FEATUREnlpM0OA48', - 'FEATUREnlpZBZJI2', - 'FEATUREnlp01ENOR', - 'FEATUREnlpV1PN9B', - 'FEATUREnlp0VR1QU', - 'FEATUREnlpWB1IYO', - 'FEATUREnlp6X5BYZ', - 'FEATUREnlpX2LEJN', - 'FEATUREnlpLSF30C', - 'FEATUREnlpQ032BR', - 'FEATUREnlpQHAWK2', - 'FEATUREnlpWLVJE2', - 'FEATUREnlp4JXFXB', - 'FEATUREnlp0PKWIK', - 'FEATUREnlp1V7KGA', - 'FEATUREnlpR5NT62', - 'FEATUREnlpUC15C2', - 'FEATUREnlpOT0DNK', - 'FEATUREnlpQBSUD4', - 'FEATUREnlp8ES9UE', - 'FEATUREnlpTE27I1', - 'FEATUREnlp6WE0DC', - 'FEATUREnlpVBPY3Z', - 'FEATUREnlp0MGP51', - 'FEATUREnlpJSUF2I', + 'FEATUREnlp2P1OGB', 'FEATUREnlp6HZZI5', 'FEATUREnlp8RK87E', 'FEATUREnlpMXQY7X', 'FEATUREnlp0537I6', 'FEATUREnlpAOZDQ8', 'FEATUREnlpCAMXDD', 'FEATUREnlpEZFBRW', 'FEATUREnlpM7P12V', 'FEATUREnlp3ZJX2G', 'FEATUREnlpQTX906', 'FEATUREnlp97BF9V', 'FEATUREnlpLCH6DG', 'FEATUREnlpR1YV22', 'FEATUREnlpDG0HX3', 'FEATUREnlpJOUXF2', 'FEATUREnlp9YSZ64', 'FEATUREnlpF61RQU', 'FEATUREnlpUZ2C2Y', 'FEATUREnlpM0OA48', + 'FEATUREnlpZBZJI2', 'FEATUREnlp01ENOR', 'FEATUREnlpV1PN9B', 'FEATUREnlp0VR1QU', 'FEATUREnlpWB1IYO', 'FEATUREnlp6X5BYZ', 'FEATUREnlpX2LEJN', 'FEATUREnlpLSF30C', 'FEATUREnlpQ032BR', 'FEATUREnlpQHAWK2', 'FEATUREnlpWLVJE2', 'FEATUREnlp4JXFXB', 'FEATUREnlp0PKWIK', 'FEATUREnlp1V7KGA', 'FEATUREnlpR5NT62', 'FEATUREnlpUC15C2', 'FEATUREnlpOT0DNK', 'FEATUREnlpQBSUD4', 'FEATUREnlp8ES9UE', 'FEATUREnlpTE27I1', + 'FEATUREnlp6WE0DC', 'FEATUREnlpVBPY3Z', 'FEATUREnlp0MGP51', 'FEATUREnlpJSUF2I', ], ], 'parameters' => [ [ 'name' => 'AsyncPredictId', 'in' => 'query', - 'schema' => [ - 'description' => '异步预测ID,通过调用CreateAsyncPredict接口获取。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'docRequired' => true, - 'example' => '1629', - ], + 'schema' => ['description' => '异步预测ID,通过调用CreateAsyncPredict接口获取。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '1629'], ], ], 'responses' => [ @@ -395,90 +179,40 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'AsyncPredictId' => [ - 'description' => '异步预测ID,通过调用CreateAsyncPredict接口获取。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1629', - ], - 'Status' => [ - 'description' => '异步预测状态,状态类型说明:'."\n" - ."\n" - .'- 1:处理中。'."\n" - .'- 2:处理完成。'."\n" - .'- 3:处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'EBF1AAD7-A3FB-4A78-B5E9-8356324B12B2', - ], - 'Content' => [ - 'description' => '异步预测结果,JSON字符串格式文本。', - 'type' => 'string', - 'example' => 'json string', - ], + 'AsyncPredictId' => ['description' => '异步预测ID,通过调用CreateAsyncPredict接口获取。', 'type' => 'integer', 'format' => 'int32', 'example' => '1629'], + 'Status' => ['description' => '异步预测状态,状态类型说明:'."\n" + ."\n" + .'- 1:处理中。'."\n" + .'- 2:处理完成。'."\n" + .'- 3:处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'EBF1AAD7-A3FB-4A78-B5E9-8356324B12B2'], + 'Content' => ['description' => '异步预测结果,JSON字符串格式文本。', 'type' => 'string', 'example' => 'json string'], ], + 'description' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidAccountStatus.ServiceUnavailable', - 'errorMessage' => 'The NLP Auto Machine Learning service has not been activated.', - ], - [ - 'errorCode' => 'InvalidAccountStatus.ServiceLimit', - 'errorMessage' => 'The maximum number of free API daily visits is exceeded.', - ], - [ - 'errorCode' => 'InvalidParameter.ModelId', - 'errorMessage' => 'The specified modelId is invalid.', - ], - [ - 'errorCode' => 'InvalidParameter.ModelVersion', - 'errorMessage' => 'The specified modelVersion is invalid.', - ], - [ - 'errorCode' => 'InvalidContentLength', - 'errorMessage' => 'The length of content exceeds the limit.', - ], - [ - 'errorCode' => 'Account arrearage', - 'errorMessage' => 'The account is arrearage.', - ], - [ - 'errorCode' => 'PermissionDeny', - 'errorMessage' => 'No RAM permission.', - ], + ['errorCode' => 'InvalidAccountStatus.ServiceUnavailable', 'errorMessage' => 'The NLP Auto Machine Learning service has not been activated.', 'description' => ''], + ['errorCode' => 'InvalidAccountStatus.ServiceLimit', 'errorMessage' => 'The maximum number of free API daily visits is exceeded.', 'description' => ''], + ['errorCode' => 'InvalidParameter.ModelId', 'errorMessage' => 'The specified modelId is invalid.', 'description' => ''], + ['errorCode' => 'InvalidParameter.ModelVersion', 'errorMessage' => 'The specified modelVersion is invalid.', 'description' => ''], + ['errorCode' => 'InvalidContentLength', 'errorMessage' => 'The length of content exceeds the limit.', 'description' => ''], + ['errorCode' => 'Account arrearage', 'errorMessage' => 'The account is arrearage.', 'description' => ''], + ['errorCode' => 'PermissionDeny', 'errorMessage' => 'No RAM permission.', 'description' => ''], ], 403 => [ - [ - 'errorCode' => 'Forbbiden', - 'errorMessage' => 'You are not authorized to operate on the specified resource.', - ], + ['errorCode' => 'Forbbiden', 'errorMessage' => 'You are not authorized to operate on the specified resource.', 'description' => ''], ], [ - [ - 'errorCode' => 'ResourceNotFound', - 'errorMessage' => 'The specified Model does not exist.', - ], + ['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified Model does not exist.', 'description' => ''], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'An error occurred while processing your request.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'An error occurred while processing your request.', 'description' => ''], ], 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'An error occurred while processing your request.', - ], + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'An error occurred while processing your request.', 'description' => ''], ], ], 'responseDemo' => '[{"type":"json","example":"{\\n \\"AsyncPredictId\\": 1629,\\n \\"Status\\": 2,\\n \\"RequestId\\": \\"EBF1AAD7-A3FB-4A78-B5E9-8356324B12B2\\",\\n \\"Content\\": \\"json string\\"\\n}","errorExample":""},{"type":"xml","example":"<GetAsyncPredictResponse>\\n <requestId>EBF1AAD7-A3FB-4A78-B5E9-8356324B12B2</requestId>\\n <asyncPredictId>1629</asyncPredictId>\\n <status>2</status>\\n <content></content>\\n</GetAsyncPredictResponse>","errorExample":""}]', @@ -486,16 +220,12 @@ 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', + 'changeSet' => [], ], 'GetPredictResult' => [ 'summary' => '调用GetPredictResult获取模型预测结果。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -507,67 +237,33 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREnlp6HZZI5', - 'FEATUREnlpMXQY7X', - 'FEATUREnlpAOZDQ8', - 'FEATUREnlpEZFBRW', - 'FEATUREnlp3ZJX2G', - 'FEATUREnlp97BF9V', - 'FEATUREnlpR1YV22', - 'FEATUREnlpJOUXF2', - 'FEATUREnlpF61RQU', - 'FEATUREnlpM0OA48', - 'FEATUREnlp01ENOR', - 'FEATUREnlp0VR1QU', - 'FEATUREnlp6X5BYZ', - ], + 'abilityTreeNodes' => ['FEATUREnlp6HZZI5', 'FEATUREnlpMXQY7X', 'FEATUREnlpAOZDQ8', 'FEATUREnlpEZFBRW', 'FEATUREnlp3ZJX2G', 'FEATUREnlp97BF9V', 'FEATUREnlpR1YV22', 'FEATUREnlpJOUXF2', 'FEATUREnlpF61RQU', 'FEATUREnlpM0OA48', 'FEATUREnlp01ENOR', 'FEATUREnlp0VR1QU', 'FEATUREnlp6X5BYZ'], ], 'parameters' => [ [ 'name' => 'ModelId', 'in' => 'formData', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'description' => ''], ], [ 'name' => 'Content', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true, 'description' => ''], ], [ 'name' => 'ModelVersion', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => false, 'docRequired' => true, 'description' => ''], ], [ 'name' => 'DetailTag', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false, 'description' => ''], ], [ 'name' => 'TopK', 'in' => 'formData', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'description' => ''], ], ], 'responses' => [ @@ -575,104 +271,54 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Content' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Content' => ['type' => 'string', 'description' => ''], + 'RequestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidAccountStatus.ServiceUnavailable', - 'errorMessage' => 'The NLP Auto Machine Learning service has not been activated.', - ], - [ - 'errorCode' => 'InvalidAccountStatus.ServiceLimit', - 'errorMessage' => 'The maximum number of free API daily visits is exceeded.', - ], - [ - 'errorCode' => 'InvalidParameter.ModelId', - 'errorMessage' => 'The specified modelId is invalid.', - ], - [ - 'errorCode' => 'InvalidParameter.ModelVersion', - 'errorMessage' => 'The specified modelVersion is invalid.', - ], - [ - 'errorCode' => 'InvalidContentLength', - 'errorMessage' => 'The length of content exceeds the limit.', - ], - [ - 'errorCode' => 'parameterError', - 'errorMessage' => 'The parameter is invalid.', - ], - [ - 'errorCode' => 'Account arrearage', - 'errorMessage' => 'The account is arrearage.', - ], - [ - 'errorCode' => 'PermissionDeny', - 'errorMessage' => 'No RAM permission.', - ], + ['errorCode' => 'InvalidAccountStatus.ServiceUnavailable', 'errorMessage' => 'The NLP Auto Machine Learning service has not been activated.', 'description' => '用户未开通NLP自学习服务。'], + ['errorCode' => 'InvalidAccountStatus.ServiceLimit', 'errorMessage' => 'The maximum number of free API daily visits is exceeded.', 'description' => 'API访问次数超过了免费额度限制。'], + ['errorCode' => 'InvalidParameter.ModelId', 'errorMessage' => 'The specified modelId is invalid.', 'description' => '参数modelId不合法。'], + ['errorCode' => 'InvalidParameter.ModelVersion', 'errorMessage' => 'The specified modelVersion is invalid.', 'description' => '参数modelVersion不合法。'], + ['errorCode' => 'InvalidContentLength', 'errorMessage' => 'The length of content exceeds the limit.', 'description' => '内容长度过长。'], + ['errorCode' => 'parameterError', 'errorMessage' => 'The parameter is invalid.', 'description' => '参数错误'], + ['errorCode' => 'Account arrearage', 'errorMessage' => 'The account is arrearage.', 'description' => '账户已欠费'], + ['errorCode' => 'PermissionDeny', 'errorMessage' => 'No RAM permission.', 'description' => '改账号没有权限'], ], 403 => [ - [ - 'errorCode' => '40003', - 'errorMessage' => 'An error occurred while authenticating the model.', - ], - [ - 'errorCode' => 'Forbbiden', - 'errorMessage' => 'You are not authorized to operate on the specified resource.', - ], - [ - 'errorCode' => '40002', - 'errorMessage' => 'The specified interface is throttled.', - ], - [ - 'errorCode' => '40013', - 'errorMessage' => 'An error occurred while authenticating the model.', - ], + ['errorCode' => '40003', 'errorMessage' => 'An error occurred while authenticating the model.', 'description' => '模型鉴权失败'], + ['errorCode' => 'Forbbiden', 'errorMessage' => 'You are not authorized to operate on the specified resource.', 'description' => '用户未被授权操作指定的资源。'], + ['errorCode' => '40002', 'errorMessage' => 'The specified interface is throttled.', 'description' => '调用接口被限流'], + ['errorCode' => '40013', 'errorMessage' => 'An error occurred while authenticating the model.', 'description' => '模型鉴权失败'], ], [ - [ - 'errorCode' => 'ResourceNotFound', - 'errorMessage' => 'The specified Model does not exist.', - ], + ['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified Model does not exist.', 'description' => '指定的模型不存在。'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'An error occurred while processing your request.', - ], - [ - 'errorCode' => 'ModelInferenceFailed', - 'errorMessage' => 'The model inference result is null.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'An error occurred while processing your request.', 'description' => '未知错误。'], + ['errorCode' => 'ModelInferenceFailed', 'errorMessage' => 'The model inference result is null.', 'description' => '模型推测结果为空'], ], 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'An error occurred while processing your request.', - ], + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'An error occurred while processing your request.', 'description' => '服务内部错误。'], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Content\\": \\"\\",\\n \\"RequestId\\": \\"\\"\\n}","type":"json"}]', 'title' => '获取模型预测结果', + 'changeSet' => [ + ['createdAt' => '2025-06-09T05:43:29.000Z', 'description' => '错误码发生变更'], + ['createdAt' => '2025-05-19T02:40:38.000Z', 'description' => '错误码发生变更'], + ['createdAt' => '2022-04-18T01:52:31.000Z', 'description' => '错误码发生变更'], + ['createdAt' => '2022-04-18T01:52:31.000Z', 'description' => '错误码发生变更'], + ], ], 'RunPreTrainService' => [ 'summary' => '调用预训练模型服务。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -685,72 +331,25 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeNodes' => [ - 'FEATUREnlp2P1OGB', - 'FEATUREnlp8RK87E', - 'FEATUREnlp0537I6', - 'FEATUREnlpCAMXDD', - 'FEATUREnlpM7P12V', - 'FEATUREnlpQTX906', - 'FEATUREnlpLCH6DG', - 'FEATUREnlpDG0HX3', - 'FEATUREnlp9YSZ64', - 'FEATUREnlpUZ2C2Y', - 'FEATUREnlpZBZJI2', - 'FEATUREnlpV1PN9B', - 'FEATUREnlpWB1IYO', - 'FEATUREnlpX2LEJN', - 'FEATUREnlpLSF30C', - 'FEATUREnlpQ032BR', - 'FEATUREnlpQHAWK2', - 'FEATUREnlpWLVJE2', - 'FEATUREnlp4JXFXB', - 'FEATUREnlp0PKWIK', - 'FEATUREnlp1V7KGA', - 'FEATUREnlpR5NT62', - 'FEATUREnlpUC15C2', - 'FEATUREnlpOT0DNK', - 'FEATUREnlpQBSUD4', - 'FEATUREnlp8ES9UE', - 'FEATUREnlpTE27I1', - 'FEATUREnlp6WE0DC', - 'FEATUREnlpVBPY3Z', - 'FEATUREnlp0MGP51', - 'FEATUREnlpJSUF2I', + 'FEATUREnlp2P1OGB', 'FEATUREnlp8RK87E', 'FEATUREnlp0537I6', 'FEATUREnlpCAMXDD', 'FEATUREnlpM7P12V', 'FEATUREnlpQTX906', 'FEATUREnlpLCH6DG', 'FEATUREnlpDG0HX3', 'FEATUREnlp9YSZ64', 'FEATUREnlpUZ2C2Y', 'FEATUREnlpZBZJI2', 'FEATUREnlpV1PN9B', 'FEATUREnlpWB1IYO', 'FEATUREnlpX2LEJN', 'FEATUREnlpLSF30C', 'FEATUREnlpQ032BR', 'FEATUREnlpQHAWK2', 'FEATUREnlpWLVJE2', 'FEATUREnlp4JXFXB', 'FEATUREnlp0PKWIK', + 'FEATUREnlp1V7KGA', 'FEATUREnlpR5NT62', 'FEATUREnlpUC15C2', 'FEATUREnlpOT0DNK', 'FEATUREnlpQBSUD4', 'FEATUREnlp8ES9UE', 'FEATUREnlpTE27I1', 'FEATUREnlp6WE0DC', 'FEATUREnlpVBPY3Z', 'FEATUREnlp0MGP51', 'FEATUREnlpJSUF2I', ], ], 'parameters' => [ [ 'name' => 'ServiceName', 'in' => 'formData', - 'schema' => [ - 'description' => '服务名称。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'ReviewAnalysis', - ], + 'schema' => ['description' => '服务名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ReviewAnalysis'], ], [ 'name' => 'ServiceVersion', 'in' => 'formData', - 'schema' => [ - 'description' => '服务版本。', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'V1', - ], + 'schema' => ['description' => '服务版本。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'V1'], ], [ 'name' => 'PredictContent', 'in' => 'formData', - 'schema' => [ - 'description' => '预测输入。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '{"input":{"content": "这件衣服真好看", "domain": "clothing"}}', - ], + 'schema' => ['description' => '预测输入。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '{"input":{"content": "这件衣服真好看", "domain": "clothing"}}'], ], ], 'responses' => [ @@ -758,92 +357,144 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'PredictResult' => [ - 'description' => '模型预测结果。', - 'type' => 'string', - 'example' => '{"cost":"21.812ms","imprs":[{"aspect":"款式","clause":"这件衣服真好看","neg_prob":0.0,"pos_prob":0.566100001335144,"position":"0,7","sentiment":"正"}]},"message":"SUCCESS","tracerId":"7973b50e31dcbea8323460e0134d3226"}', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '7310FFCF-9FE8-4257-AE38-0E1AD828C2CC', - ], - 'BillingCount' => [ - 'description' => '计费次数,对应抵扣资源包数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], + 'PredictResult' => ['description' => '模型预测结果。', 'type' => 'string', 'example' => '{"cost":"21.812ms","imprs":[{"aspect":"款式","clause":"这件衣服真好看","neg_prob":0.0,"pos_prob":0.566100001335144,"position":"0,7","sentiment":"正"}]},"message":"SUCCESS","tracerId":"7973b50e31dcbea8323460e0134d3226"}'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '7310FFCF-9FE8-4257-AE38-0E1AD828C2CC'], + 'BillingCount' => ['description' => '计费次数,对应抵扣资源包数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], ], + 'description' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidAccountStatus.ServiceUnavailable', - 'errorMessage' => 'The NLP Auto Machine Learning service has not been activated.', - ], - [ - 'errorCode' => 'InvalidAccountStatus.ServiceLimit', - 'errorMessage' => 'The maximum number of free API daily visits is exceeded.', - ], - [ - 'errorCode' => 'parameterError', - 'errorMessage' => 'The parameter is invalid.', - ], - [ - 'errorCode' => 'predictContentLength', - 'errorMessage' => 'The length of content exceeds the limit.', - ], - [ - 'errorCode' => 'postPaidArrearage', - 'errorMessage' => 'The service is not opened or the account is overdue.', - ], - [ - 'errorCode' => 'PermissionDeny', - 'errorMessage' => 'No RAM permission.', - ], + ['errorCode' => 'InvalidAccountStatus.ServiceUnavailable', 'errorMessage' => 'The NLP Auto Machine Learning service has not been activated.', 'description' => '用户未开通NLP自学习服务。'], + ['errorCode' => 'InvalidAccountStatus.ServiceLimit', 'errorMessage' => 'The maximum number of free API daily visits is exceeded.', 'description' => 'API访问次数超过了免费额度限制。'], + ['errorCode' => 'parameterError', 'errorMessage' => 'The parameter is invalid.', 'description' => '参数错误'], + ['errorCode' => 'predictContentLength', 'errorMessage' => 'The length of content exceeds the limit.', 'description' => '输入预测内容的长度超出限制。'], + ['errorCode' => 'postPaidArrearage', 'errorMessage' => 'The service is not opened or the account is overdue.', 'description' => '服务未开通或账户已欠费。'], + ['errorCode' => 'PermissionDeny', 'errorMessage' => 'No RAM permission.', 'description' => '改账号没有权限'], ], 404 => [ - [ - 'errorCode' => 'ResourceNotFound', - 'errorMessage' => 'The specified Model does not exist.', - ], + ['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified Model does not exist.', 'description' => '指定的模型不存在。'], ], 500 => [ - [ - 'errorCode' => 'ModelInferenceError', - 'errorMessage' => 'Failed to obtain the model prediction result.', - ], - [ - 'errorCode' => 'UnknownError', - 'errorMessage' => 'A server error occurred while processing your request. Please try again later or contact customer support.', - ], - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'An error occurred while processing your request.', - ], - [ - 'errorCode' => 'predictTimeout', - 'errorMessage' => 'model predict cost greater than 9000ms.', - ], + ['errorCode' => 'ModelInferenceError', 'errorMessage' => 'Failed to obtain the model prediction result.', 'description' => '获取模型预测结果失败。'], + ['errorCode' => 'UnknownError', 'errorMessage' => 'A server error occurred while processing your request. Please try again later or contact customer support.', 'description' => '未知错误。'], + ['errorCode' => 'InternalError', 'errorMessage' => 'An error occurred while processing your request.', 'description' => '未知错误。'], + ['errorCode' => 'predictTimeout', 'errorMessage' => 'model predict cost greater than 9000ms.', 'description' => '模型响应时间超过9秒。'], ], 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'An error occurred while processing your request.', - ], + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'An error occurred while processing your request.', 'description' => '服务内部错误。'], ], ], 'responseDemo' => '[{"type":"json","example":"{\\n \\"PredictResult\\": \\"{\\\\\\"cost\\\\\\":\\\\\\"21.812ms\\\\\\",\\\\\\"imprs\\\\\\":[{\\\\\\"aspect\\\\\\":\\\\\\"款式\\\\\\",\\\\\\"clause\\\\\\":\\\\\\"这件衣服真好看\\\\\\",\\\\\\"neg_prob\\\\\\":0.0,\\\\\\"pos_prob\\\\\\":0.566100001335144,\\\\\\"position\\\\\\":\\\\\\"0,7\\\\\\",\\\\\\"sentiment\\\\\\":\\\\\\"正\\\\\\"}]},\\\\\\"message\\\\\\":\\\\\\"SUCCESS\\\\\\",\\\\\\"tracerId\\\\\\":\\\\\\"7973b50e31dcbea8323460e0134d3226\\\\\\"}\\",\\n \\"RequestId\\": \\"7310FFCF-9FE8-4257-AE38-0E1AD828C2CC\\",\\n \\"BillingCount\\": 1\\n}","errorExample":""},{"type":"xml","example":"<RunPreTrainServiceResponse>\\n <PredictResult>{\\"cost\\":\\"21.812ms\\",\\"imprs\\":[{\\"aspect\\":\\"款式\\",\\"clause\\":\\"这件衣服真好看\\",\\"neg_prob\\":0.0,\\"pos_prob\\":0.566100001335144,\\"position\\":\\"0,7\\",\\"sentiment\\":\\"正\\"}]},\\"message\\":\\"SUCCESS\\",\\"tracerId\\":\\"7973b50e31dcbea8323460e0134d3226\\"}</PredictResult>\\n <RequestId>7310FFCF-9FE8-4257-AE38-0E1AD828C2CC</RequestId>\\n <BillingCount>1</BillingCount>\\n</RunPreTrainServiceResponse>","errorExample":""}]', 'title' => '调用预训练模型服务', + 'changeSet' => [], ], ], 'endpoints' => [ + ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'nlp-automl.cn-hangzhou.aliyuncs.com', 'endpoint' => 'nlp-automl.cn-hangzhou.aliyuncs.com', 'vpc' => 'nlp-automl-vpc.cn-hangzhou.aliyuncs.com'], + ], + 'errorCodes' => [ + ['code' => '40001', 'message' => 'The quota for calling the model is exceeded.', 'http_code' => 403, 'description' => '调用额度已超出限制'], + ['code' => '40002', 'message' => 'The specified interface is throttled.', 'http_code' => 403, 'description' => '调用接口被限流'], + ['code' => '40003', 'message' => 'An error occurred while authenticating the model.', 'http_code' => 403, 'description' => '模型鉴权失败'], + ['code' => '40004', 'message' => 'A server error occurred while processing your request. Please try again later or contact customer support.', 'http_code' => 200, 'description' => '服务器内部出现错误,请稍后重试或者联系客服人员帮忙解决。'], + ['code' => '40013', 'message' => 'An error occurred while authenticating the model.', 'http_code' => 403, 'description' => '模型鉴权失败'], + ['code' => 'Account arrearage', 'message' => 'The account is arrearage.', 'http_code' => 400, 'description' => '账户已欠费'], + ['code' => 'BaseModelNotFound', 'message' => 'The base model is not found.', 'http_code' => 400, 'description' => '未找到基础模型'], + ['code' => 'createModelConcurrency', 'message' => 'Creating multiple models at the same time is not allowed.', 'http_code' => 400, 'description' => '不允许同时创建多个模型。'], + ['code' => 'DataCenter.IllegalDatasetId', 'message' => 'The format of the dataset ID is invalid.', 'http_code' => 403, 'description' => '数据集ID不是有效的数据集ID'], + ['code' => 'DataCenter.IllegalDatasetRecord', 'message' => 'The format of the dataset record is invalid.', 'http_code' => 403, 'description' => '数据集标注数据格式无效'], + ['code' => 'dataFormatError', 'message' => 'The number of data bars added exceeds 500.', 'http_code' => 400, 'description' => '添加的数据条数过大,超过了500条'], + ['code' => 'DocParseError', 'message' => 'The version of the uploaded DOC file is too early to support parsing. You are advised to replace the DOCX file with the latest version.', 'http_code' => 400, 'description' => '上传的DOC文件类型的版本过低,不支持解析,建议替换为最新版本的DOCX。'], + ['code' => 'FileParseError', 'message' => 'The uploaded file failed to be parsed.', 'http_code' => 500, 'description' => '上传的文件解析失败。'], + ['code' => 'Forbbiden', 'message' => 'You are not authorized to operate on the specified resource.', 'http_code' => 403, 'description' => '用户未被授权操作指定的资源。'], + ['code' => 'InternalError', 'message' => 'An error occurred while processing your request.', 'http_code' => 500, 'description' => '未知错误。'], + ['code' => 'InvalidAccountStatus.ServiceLimit', 'message' => 'The maximum number of free API daily visits is exceeded.', 'http_code' => 400, 'description' => 'API访问次数超过了免费额度限制。'], + ['code' => 'InvalidAccountStatus.ServiceUnavailable', 'message' => 'The NLP Auto Machine Learning service has not been activated.', 'http_code' => 400, 'description' => '用户未开通NLP自学习服务。'], + ['code' => 'InvalidContentLength', 'message' => 'The length of content exceeds the limit.', 'http_code' => 400, 'description' => '内容长度过长。'], + ['code' => 'InvalidParameter', 'message' => 'The parameter is invalid.', 'http_code' => 400, 'description' => '参数错误'], + ['code' => 'InvalidParameter.ModelId', 'message' => 'The specified modelId is invalid.', 'http_code' => 400, 'description' => '参数modelId不合法。'], + ['code' => 'InvalidParameter.ModelVersion', 'message' => 'The specified modelVersion is invalid.', 'http_code' => 400, 'description' => '参数modelVersion不合法。'], + ['code' => 'InvalidServiceName', 'message' => 'The service does not exist.', 'http_code' => 400, 'description' => '服务不存在。'], + ['code' => 'ModelCenter.CreateModelLimit', 'message' => 'The maximum number of models you created is exceeded.', 'http_code' => 403, 'description' => '创建模型数量已达上限'], + ['code' => 'ModelCenter.DeployModelLimit', 'message' => 'The maximum number of online models is exceeded. You cannot deploy the model.', 'http_code' => 403, 'description' => '模型在线数量已达上限,不能发布'], + ['code' => 'ModelCenter.IllegalModelName', 'message' => 'The format of the model name is invalid.', 'http_code' => 400, 'description' => '模型名称格式错误'], + ['code' => 'ModelCenter.MinTrainingcount', 'message' => 'The number of model training records is less than 4.', 'http_code' => 400, 'description' => '模型训练数据少于4条'], + ['code' => 'ModelCenter.ModelNotFound', 'message' => 'The model information is not found.', 'http_code' => 400, 'description' => '未找到模型信息'], + ['code' => 'ModelCenter.ModelNotInProject', 'message' => 'The model is not in the specified project.', 'http_code' => 400, 'description' => '项目ID不匹配'], + ['code' => 'ModelCenter.ModelStatusError', 'message' => 'The model status is abnormal.', 'http_code' => 400, 'description' => '模型状态异常'], + ['code' => 'ModelCenter.NoDatasetOnline', 'message' => 'The status of the training dataset is not online.', 'http_code' => 400, 'description' => '数据集状态未在线'], + ['code' => 'ModelCenter.NoPermission', 'message' => 'You are not authorized to perform the operation.', 'http_code' => 403, 'description' => '无权限操作'], + ['code' => 'ModelCenter.NotFoundConfig', 'message' => 'The configuration information of the model type is not found.', 'http_code' => 400, 'description' => '未找到模型类型配置信息'], + ['code' => 'ModelCenter.OnlineModelLimit', 'message' => 'The maximum number of online models is exceeded.', 'http_code' => 403, 'description' => '模型在线数量已达上限,不能操作上线'], + ['code' => 'ModelGroupNotFound', 'message' => 'The model group is not found.', 'http_code' => 400, 'description' => '未找到模型组信息'], + ['code' => 'ModelInferenceError', 'message' => 'Failed to obtain the model prediction result.', 'http_code' => 500, 'description' => '获取模型预测结果失败。'], + ['code' => 'ModelInferenceFailed', 'message' => 'The model inference result is null.', 'http_code' => 500, 'description' => '模型推测结果为空'], + ['code' => 'NotFoundUploadDataError', 'message' => 'No data set is created.', 'http_code' => 400, 'description' => '未创建数据集。'], + ['code' => 'parameterError', 'message' => 'The parameter is invalid.', 'http_code' => 400, 'description' => '参数错误'], + ['code' => 'PermissionDeny', 'message' => 'No RAM permission.', 'http_code' => 400, 'description' => '改账号没有权限'], + ['code' => 'postPaidArrearage', 'message' => 'The service is not opened or the account is overdue.', 'http_code' => 400, 'description' => '服务未开通或账户已欠费。'], + ['code' => 'postpaidArrearageError', 'message' => 'You have an overdue payment.', 'http_code' => 400, 'description' => '您已欠费'], + ['code' => 'predictContentLength', 'message' => 'The length of content exceeds the limit.', 'http_code' => 400, 'description' => '输入预测内容的长度超出限制。'], + ['code' => 'predictLimit', 'message' => 'The maximum number of submitted tasks is exceeded.', 'http_code' => 400, 'description' => '提交任务到达上限'], + ['code' => 'predictQpsLimit', 'message' => 'The maximum number of queries-per-second is exceeded.', 'http_code' => 403, 'description' => '单模型QPS达到上限'], + ['code' => 'predictTimeout', 'message' => 'model predict cost greater than 9000ms.', 'http_code' => 500, 'description' => '模型响应时间超过9秒。'], + ['code' => 'queryExceedMaxDuration', 'message' => 'The query data exceeds the upper limit.', 'http_code' => 400, 'description' => '查询数据超过允许的最大区间。'], + ['code' => 'ResourceNotFound', 'message' => 'The specified Model does not exist.', 'http_code' => 404, 'description' => '指定的模型不存在。'], + ['code' => 'ServiceUnavailable', 'message' => 'An error occurred while processing your request.', 'http_code' => 503, 'description' => '服务内部错误。'], + ['code' => 'UnknownError', 'message' => 'A server error occurred while processing your request. Please try again later or contact customer support.', 'http_code' => 500, 'description' => '未知错误。'], + ], + 'changeSet' => [ + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'RunPreTrainService'], + ], + 'createdAt' => '2023-05-06T09:24:51.000Z', + 'description' => '', + ], [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'nlp-automl.cn-hangzhou.aliyuncs.com', + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'RunPreTrainService'], + ], + 'createdAt' => '2023-03-24T08:21:17.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateAsyncPredict'], + ], + 'createdAt' => '2023-03-24T08:20:06.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateAsyncPredict'], + ], + 'createdAt' => '2022-11-14T05:07:09.000Z', + 'description' => '异步预测接口支持根据服务名称和服务版本进行调用。', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateAsyncPredict'], + ], + 'createdAt' => '2022-11-14T03:20:10.000Z', + 'description' => '异步预测接口支持预训练模型根据服务名称和服务版本进行调用了。', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'GetPredictResult'], + ], + 'createdAt' => '2022-04-19T03:32:51.000Z', + 'description' => 'GetPredictResult调用模型未返回结果时,返回ErrorCode: ModelInferenceFailed,ErrorMessage:The model inference result is null.', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'GetPredictResult'], + ], + 'createdAt' => '2022-04-18T03:06:41.000Z', + 'description' => 'GetPredictResult接口模型鉴权失败时接口的http_code变更为403', ], ], ]; |
