1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'RPC', 'product' => 'nlp-automl', 'version' => '2019-11-11'],
'directories' => [
[
'children' => ['CreateAsyncPredict', 'GetAsyncPredict'],
'type' => 'directory',
'title' => '预测',
'id' => 434474,
],
[
'children' => ['GetPredictResult', 'RunPreTrainService'],
'type' => 'directory',
'title' => '模型',
'id' => 434477,
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'CreateAsyncPredict' => [
'summary' => '调用CreateAsyncPredict创建一个异步预测。',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'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',
],
],
'parameters' => [
[
'name' => 'ModelId',
'in' => 'formData',
'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' => '全国土地利用总体规划'],
],
[
'name' => 'ModelVersion',
'in' => 'formData',
'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'],
],
[
'name' => 'TopK',
'in' => 'formData',
'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'],
],
[
'name' => 'FileUrl',
'in' => 'formData',
'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]'],
],
[
'name' => 'FetchContent',
'in' => 'formData',
'schema' => ['description' => '返回预测文本', 'type' => 'string', 'required' => false, 'example' => 'true'],
],
[
'name' => 'ServiceName',
'in' => 'formData',
'schema' => ['title' => '服务名称', 'description' => '服务名称。', 'type' => 'string', 'required' => false, 'example' => 'ContractNERPretrain'],
],
[
'name' => 'ServiceVersion',
'in' => 'formData',
'schema' => ['title' => '服务版本', 'description' => '服务版本。', 'type' => 'string', 'required' => false, 'example' => 'V1'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'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.', '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.', '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.', 'description' => '用户未被授权操作指定的资源。'],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified Model does not exist.', 'description' => '指定的模型不存在。'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'An error occurred while processing your request.', 'description' => '未知错误。'],
],
503 => [
['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'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'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',
],
],
'parameters' => [
[
'name' => 'AsyncPredictId',
'in' => 'query',
'schema' => ['description' => '异步预测ID,通过调用CreateAsyncPredict接口获取。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '1629'],
],
],
'responses' => [
200 => [
'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'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['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.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified Model does not exist.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'An error occurred while processing your request.', 'description' => ''],
],
503 => [
['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":""}]',
'title' => '获取异步预测结果',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
],
'GetPredictResult' => [
'summary' => '调用GetPredictResult获取模型预测结果。',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'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, 'description' => ''],
],
[
'name' => 'Content',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true, 'description' => ''],
],
[
'name' => 'ModelVersion',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => false, 'docRequired' => true, 'description' => ''],
],
[
'name' => 'DetailTag',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
],
[
'name' => 'TopK',
'in' => 'formData',
'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'description' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'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.', '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.', '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.', 'description' => '指定的模型不存在。'],
],
500 => [
['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.', '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'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'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',
],
],
'parameters' => [
[
'name' => 'ServiceName',
'in' => 'formData',
'schema' => ['description' => '服务名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ReviewAnalysis'],
],
[
'name' => 'ServiceVersion',
'in' => 'formData',
'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"}}'],
],
],
'responses' => [
200 => [
'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'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['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.', 'description' => '指定的模型不存在。'],
],
500 => [
['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.', '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' => '',
],
[
'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',
],
],
];
|