tencentcloud-sdk-nodejs 4.0.587 → 4.0.589

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/CHANGELOG.md +438 -0
  2. package/SERVICE_CHANGELOG.md +443 -214
  3. package/package.json +1 -1
  4. package/products.md +31 -31
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/aiart/v20221229/aiart_models.ts +1 -1
  7. package/src/services/billing/v20180709/billing_models.ts +6 -0
  8. package/src/services/cbs/v20170312/cbs_models.ts +17 -10
  9. package/src/services/cdb/v20170320/cdb_client.ts +173 -47
  10. package/src/services/cdb/v20170320/cdb_models.ts +1198 -362
  11. package/src/services/cfs/v20190719/cfs_client.ts +12 -0
  12. package/src/services/cfs/v20190719/cfs_models.ts +56 -0
  13. package/src/services/clb/v20180317/clb_models.ts +7 -7
  14. package/src/services/cls/v20201016/cls_models.ts +1 -1
  15. package/src/services/dnspod/v20210323/dnspod_models.ts +22 -0
  16. package/src/services/essbasic/v20210526/essbasic_models.ts +6 -0
  17. package/src/services/gaap/v20180529/gaap_client.ts +1 -0
  18. package/src/services/gaap/v20180529/gaap_models.ts +16 -0
  19. package/src/services/iotexplorer/v20190423/iotexplorer_models.ts +6 -0
  20. package/src/services/iotvideoindustry/v20201201/iotvideoindustry_client.ts +1 -1
  21. package/src/services/iotvideoindustry/v20201201/iotvideoindustry_models.ts +6 -0
  22. package/src/services/mps/v20190612/mps_models.ts +28 -19
  23. package/src/services/nlp/v20190408/nlp_client.ts +159 -55
  24. package/src/services/nlp/v20190408/nlp_models.ts +991 -495
  25. package/src/services/ocr/v20181119/ocr_client.ts +1 -1
  26. package/src/services/ocr/v20181119/ocr_models.ts +4 -4
  27. package/src/services/redis/v20180412/redis_models.ts +3 -6
  28. package/src/services/rum/v20210622/rum_models.ts +13 -2
  29. package/src/services/tdmq/v20200217/tdmq_models.ts +43 -1
  30. package/src/services/teo/v20220901/teo_client.ts +46 -8
  31. package/src/services/teo/v20220901/teo_models.ts +310 -174
  32. package/src/services/tione/v20211111/tione_models.ts +41 -10
  33. package/src/services/tke/v20180525/tke_models.ts +16 -6
  34. package/src/services/tmt/v20180321/tmt_client.ts +1 -2
  35. package/src/services/tmt/v20180321/tmt_models.ts +13 -13
  36. package/src/services/trtc/v20190722/trtc_models.ts +1 -1
  37. package/src/services/vpc/v20170312/vpc_client.ts +19 -7
  38. package/src/services/vpc/v20170312/vpc_models.ts +30 -0
  39. package/tencentcloud/common/sdk_version.d.ts +1 -1
  40. package/tencentcloud/common/sdk_version.js +1 -1
  41. package/tencentcloud/services/aiart/v20221229/aiart_models.d.ts +1 -1
  42. package/tencentcloud/services/billing/v20180709/billing_models.d.ts +5 -0
  43. package/tencentcloud/services/cbs/v20170312/cbs_models.d.ts +14 -8
  44. package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +53 -13
  45. package/tencentcloud/services/cdb/v20170320/cdb_client.js +77 -17
  46. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +991 -286
  47. package/tencentcloud/services/cfs/v20190719/cfs_client.d.ts +5 -1
  48. package/tencentcloud/services/cfs/v20190719/cfs_client.js +6 -0
  49. package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +47 -0
  50. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +7 -7
  51. package/tencentcloud/services/cls/v20201016/cls_models.d.ts +1 -1
  52. package/tencentcloud/services/dnspod/v20210323/dnspod_models.d.ts +18 -0
  53. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +5 -0
  54. package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +14 -0
  55. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +5 -0
  56. package/tencentcloud/services/iotvideoindustry/v20201201/iotvideoindustry_client.d.ts +1 -1
  57. package/tencentcloud/services/iotvideoindustry/v20201201/iotvideoindustry_client.js +1 -1
  58. package/tencentcloud/services/iotvideoindustry/v20201201/iotvideoindustry_models.d.ts +5 -0
  59. package/tencentcloud/services/mps/v20190612/mps_models.d.ts +10 -1
  60. package/tencentcloud/services/nlp/v20190408/nlp_client.d.ts +38 -6
  61. package/tencentcloud/services/nlp/v20190408/nlp_client.js +54 -6
  62. package/tencentcloud/services/nlp/v20190408/nlp_models.d.ts +946 -517
  63. package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +1 -1
  64. package/tencentcloud/services/ocr/v20181119/ocr_client.js +1 -1
  65. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +4 -4
  66. package/tencentcloud/services/redis/v20180412/redis_models.d.ts +3 -6
  67. package/tencentcloud/services/rum/v20210622/rum_models.d.ts +11 -2
  68. package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +36 -1
  69. package/tencentcloud/services/teo/v20220901/teo_client.d.ts +13 -1
  70. package/tencentcloud/services/teo/v20220901/teo_client.js +18 -0
  71. package/tencentcloud/services/teo/v20220901/teo_models.d.ts +275 -157
  72. package/tencentcloud/services/tione/v20211111/tione_models.d.ts +35 -9
  73. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +14 -6
  74. package/tencentcloud/services/tmt/v20180321/tmt_client.d.ts +1 -2
  75. package/tencentcloud/services/tmt/v20180321/tmt_client.js +1 -2
  76. package/tencentcloud/services/tmt/v20180321/tmt_models.d.ts +13 -13
  77. package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +1 -1
  78. package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +8 -4
  79. package/tencentcloud/services/vpc/v20170312/vpc_client.js +10 -4
  80. package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +26 -0
  81. package/test/cdb.v20170320.test.js +110 -10
  82. package/test/cfs.v20190719.test.js +10 -0
  83. package/test/nlp.v20190408.test.js +82 -2
  84. package/test/teo.v20220901.test.js +30 -0
  85. package/test/vpc.v20170312.test.js +12 -2
@@ -1,20 +1,11 @@
1
1
  /**
2
- * LexicalAnalysis返回参数结构体
2
+ * RetrieveSimilarWords返回参数结构体
3
3
  */
4
- export interface LexicalAnalysisResponse {
5
- /**
6
- * 命名实体识别结果。取值范围:
7
- <li>PER:表示人名,如刘德华、贝克汉姆</li>
8
- <li>LOC:表示地名,如北京、华山</li>
9
- <li>ORG:表示机构团体名,如腾讯、最高人民法院、人大附中</li>
10
- <li>PRODUCTION:表示产品名,如QQ、微信、iPhone</li>
11
- 注意:此字段可能返回 null,表示取不到有效值。
12
- */
13
- NerTokens?: Array<NerToken>;
4
+ export interface RetrieveSimilarWordsResponse {
14
5
  /**
15
- * 分词&词性标注结果(词性表请参见附录)
6
+ * 召回的相似词数组。
16
7
  */
17
- PosTokens?: Array<PosToken>;
8
+ WordList?: Array<string>;
18
9
  /**
19
10
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
20
11
  */
@@ -30,163 +21,65 @@ export interface SentenceEmbeddingRequest {
30
21
  Text: string;
31
22
  }
32
23
  /**
33
- * TextClassification请求参数结构体
34
- */
35
- export interface TextClassificationRequest {
36
- /**
37
- * 待分类的文本(仅支持UTF-8格式,不超过10000字)
38
- */
39
- Text: string;
40
- /**
41
- * 领域分类体系(默认取1值):
42
- 1、通用领域,二分类
43
- 2、新闻领域,五分类。类别数据不一定全部返回,详情见类目映射表(注意:目前五分类已下线不可用)
44
- */
45
- Flag?: number;
46
- }
47
- /**
48
- * WordSimilarity请求参数结构体
49
- */
50
- export interface WordSimilarityRequest {
51
- /**
52
- * 计算相似度的源词(仅支持UTF-8格式,不超过20字)
53
- */
54
- SrcWord: string;
55
- /**
56
- * 计算相似度的目标词(仅支持UTF-8格式,不超过20字)
57
- */
58
- TargetWord: string;
59
- }
60
- /**
61
- * SearchWordItems返回参数结构体
24
+ * EvaluateWordSimilarity返回参数结构体
62
25
  */
63
- export interface SearchWordItemsResponse {
26
+ export interface EvaluateWordSimilarityResponse {
64
27
  /**
65
- * 词条检索结果集合。
66
- 注意:此字段可能返回 null,表示取不到有效值。
28
+ * 词相似度分值。
67
29
  */
68
- Results: Array<SearchResult>;
30
+ Similarity?: number;
69
31
  /**
70
32
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
71
33
  */
72
34
  RequestId?: string;
73
35
  }
74
36
  /**
75
- * 句法依存分析结果,包括基础词,基础词的序号,当前词父节点的序号,句法依存关系的类型
37
+ * ParseWords返回参数结构体
76
38
  */
77
- export interface DpToken {
78
- /**
79
- * 句法依存关系的类型
80
- */
81
- Relation?: string;
39
+ export interface ParseWordsResponse {
82
40
  /**
83
- * 当前词父节点的序号
41
+ * 输入文本正则化的结果。(包括对英文文本中的开头和实体进行大写等)
84
42
  */
85
- HeadId?: number;
43
+ NormalText?: string;
86
44
  /**
87
- * 基础词
45
+ * 基础粒度分词和词性标注的结果。(词性表请参见附录)
46
+
88
47
  */
89
- Word?: string;
48
+ BasicParticiples?: Array<BasicParticiple>;
90
49
  /**
91
- * 基础词的序号
50
+ * 复合粒度分词和词性标注的结果。(词性表请参见附录)
92
51
  */
93
- Id?: number;
94
- }
95
- /**
96
- * TextSimilarity返回参数结构体
97
- */
98
- export interface TextSimilarityResponse {
52
+ CompoundParticiples?: Array<CompoundParticiple>;
99
53
  /**
100
- * 每个目标句子与源句子的相似度分值,按照分值降序排列
54
+ * 实体识别结果。(实体类型数据请参见附录)
55
+
101
56
  */
102
- Similarity: Array<Similarity>;
57
+ Entities?: Array<Entity>;
103
58
  /**
104
59
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
105
60
  */
106
61
  RequestId?: string;
107
62
  }
108
63
  /**
109
- * WordEmbedding请求参数结构体
110
- */
111
- export interface WordEmbeddingRequest {
112
- /**
113
- * 输入的词语(仅支持UTF-8格式,不超过20字)
114
- */
115
- Text: string;
116
- }
117
- /**
118
- * ChatBot返回参数结构体
64
+ * 基础粒度分词和词性标注的结果
119
65
  */
120
- export interface ChatBotResponse {
121
- /**
122
- * 闲聊回复
123
- */
124
- Reply: string;
125
- /**
126
- * 对于当前输出回复的自信度
127
- */
128
- Confidence: number;
66
+ export interface BasicParticiple {
129
67
  /**
130
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
68
+ * 基础词。
131
69
  */
132
- RequestId?: string;
133
- }
134
- /**
135
- * AutoSummarization请求参数结构体
136
- */
137
- export interface AutoSummarizationRequest {
70
+ Word?: string;
138
71
  /**
139
- * 待处理的文本(仅支持UTF-8格式,不超过2000字)
72
+ * 基础词在NormalText中的起始位置。
140
73
  */
141
- Text: string;
74
+ BeginOffset?: number;
142
75
  /**
143
- * 指定摘要的长度上限(默认值为200)
144
- 注:为保证摘要的可读性,最终生成的摘要长度会低于指定的长度上限。
76
+ * 基础词的长度。
145
77
  */
146
78
  Length?: number;
147
- }
148
- /**
149
- * ChatBot请求参数结构体
150
- */
151
- export interface ChatBotRequest {
152
- /**
153
- * 用户请求的query
154
- */
155
- Query: string;
156
- /**
157
- * 服务的id, 主要用于儿童闲聊接口,比如手Q的openid
158
- */
159
- OpenId?: string;
160
- /**
161
- * 0: 通用闲聊, 1:儿童闲聊, 默认是通用闲聊
162
- */
163
- Flag?: number;
164
- }
165
- /**
166
- * TextClassification返回参数结构体
167
- */
168
- export interface TextClassificationResponse {
169
- /**
170
- * 文本分类结果(文本分类映射表请参见附录)
171
- */
172
- Classes: Array<ClassificationResult>;
173
- /**
174
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
175
- */
176
- RequestId?: string;
177
- }
178
- /**
179
- * KeywordsExtraction请求参数结构体
180
- */
181
- export interface KeywordsExtractionRequest {
182
- /**
183
- * 待处理的文本(仅支持UTF-8格式,不超过10000字符)
184
- */
185
- Text: string;
186
79
  /**
187
- * 指定关键词个数上限(默认值为5)
80
+ * 词性。
188
81
  */
189
- Num?: number;
82
+ Pos?: string;
190
83
  }
191
84
  /**
192
85
  * 自定义词库信息
@@ -214,58 +107,21 @@ export interface DictInfo {
214
107
  CreateTime?: string;
215
108
  }
216
109
  /**
217
- * TextCorrection请求参数结构体
110
+ * 词条信息。
218
111
  */
219
- export interface TextCorrectionRequest {
112
+ export interface WordItem {
220
113
  /**
221
- * 待纠错的文本(仅支持UTF-8格式,不超过2000字符)
114
+ * 词条文本内容。
222
115
  */
223
116
  Text: string;
224
- }
225
- /**
226
- * 文本分类结果
227
- */
228
- export interface ClassificationResult {
229
- /**
230
- * 一级分类名称
231
- */
232
- FirstClassName?: string;
233
- /**
234
- * 二级分类名称
235
- */
236
- SecondClassName?: string;
237
- /**
238
- * 一级分类概率
239
- */
240
- FirstClassProbability?: number;
241
- /**
242
- * 二级分类概率
243
- */
244
- SecondClassProbability?: number;
245
- /**
246
- * 三级分类名称,仅有当新闻领域五分类可能出现,详情见文本分类文档
247
- */
248
- ThirdClassName?: string;
249
- /**
250
- * 三级分类概率,仅有当新闻领域五分类可能出现,详情见文本分类文档
251
- */
252
- ThirdClassProbability?: number;
253
- /**
254
- * 四级分类名称,仅有当新闻领域五分类可能出现,详情见文本分类文档
255
- */
256
- FourthClassName?: string;
257
- /**
258
- * 四级分类概率,仅有当新闻领域五分类可能出现,详情见文本分类文档
259
- */
260
- FourthClassProbability?: number;
261
117
  /**
262
- * 五级分类名称,仅有当新闻领域五分类可能出现,详情见文本分类文档
118
+ * 词条创建时间。
263
119
  */
264
- FifthClassName?: string;
120
+ CreateTime?: string;
265
121
  /**
266
- * 五级分类概率,仅有当新闻领域五分类可能出现,详情见文本分类文档
122
+ * 词条的词性。
267
123
  */
268
- FifthClassProbability?: number;
124
+ Pos?: string;
269
125
  }
270
126
  /**
271
127
  * TextCorrectionPro返回参数结构体
@@ -286,388 +142,417 @@ export interface TextCorrectionProResponse {
286
142
  RequestId?: string;
287
143
  }
288
144
  /**
289
- * 关键词提取结果
145
+ * 文本润色结果
290
146
  */
291
- export interface Keyword {
147
+ export interface Embellish {
292
148
  /**
293
- * 权重
149
+ * 润色后的文本。
150
+ 注意:此字段可能返回 null,表示取不到有效值。
294
151
  */
295
- Score?: number;
152
+ Text?: string;
296
153
  /**
297
- * 关键词
154
+ * 润色类型。类型列表
155
+ expansion:扩写
156
+ rewriting:改写
157
+ translation_m2a:从现代文改写为古文
158
+ translation_a2m:从古文改写为现代文
159
+
160
+
161
+ 注意:此字段可能返回 null,表示取不到有效值。
298
162
  */
299
- Word?: string;
163
+ EmbellishType?: string;
300
164
  }
301
165
  /**
302
- * TextSimilarityPro请求参数结构体
166
+ * EvaluateWordSimilarity请求参数结构体
303
167
  */
304
- export interface TextSimilarityProRequest {
168
+ export interface EvaluateWordSimilarityRequest {
305
169
  /**
306
- * 需要与目标句子计算相似度的源句子(仅支持UTF-8格式,不超过128字符)
170
+ * 计算相似度的源词。(仅支持UTF-8格式,不超过10字符)
171
+
307
172
  */
308
- SrcText: string;
173
+ SourceWord: string;
309
174
  /**
310
- * 目标句子(仅支持UTF-8格式,不超过128字符)
175
+ * 计算相似度的目标词。(仅支持UTF-8格式,不超过10字符)
176
+
311
177
  */
312
- TargetText: Array<string>;
178
+ TargetWord: string;
313
179
  }
314
180
  /**
315
- * UpdateDict返回参数结构体
181
+ * DeleteDict返回参数结构体
316
182
  */
317
- export interface UpdateDictResponse {
183
+ export interface DeleteDictResponse {
318
184
  /**
319
185
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
320
186
  */
321
187
  RequestId?: string;
322
188
  }
323
189
  /**
324
- * DescribeDicts请求参数结构体
190
+ * TextWriting返回参数结构体
325
191
  */
326
- export interface DescribeDictsRequest {
192
+ export interface TextWritingResponse {
327
193
  /**
328
- * 每页数据量,范围为1~100,默认为10。
194
+ * 续写结果列表。
329
195
  */
330
- Limit?: number;
196
+ WritingList?: Array<Writing>;
331
197
  /**
332
- * 分页偏移量,从0开始,默认为0
198
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId
333
199
  */
334
- Offset?: number;
200
+ RequestId?: string;
335
201
  }
336
202
  /**
337
- * WordSimilarity返回参数结构体
203
+ * CreateDict返回参数结构体
338
204
  */
339
- export interface WordSimilarityResponse {
205
+ export interface CreateDictResponse {
340
206
  /**
341
- * 两个词语的相似度
207
+ * 创建的自定义词库ID。
208
+ 注意:此字段可能返回 null,表示取不到有效值。
342
209
  */
343
- Similarity?: number;
210
+ DictId?: string;
344
211
  /**
345
212
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
346
213
  */
347
214
  RequestId?: string;
348
215
  }
349
216
  /**
350
- * 词条搜索的结果,主要描述该词条是否存在以及相关的词性。
217
+ * TextClassification返回参数结构体
351
218
  */
352
- export interface SearchResult {
353
- /**
354
- * 被搜索的词条文本。
355
- */
356
- Text: string;
357
- /**
358
- * 0表示词条不存在,1表示存在。
359
- */
360
- IsExist: number;
219
+ export interface TextClassificationResponse {
361
220
  /**
362
- * 匹配到的词条文本。
221
+ * 文本分类结果(文本分类映射表请参见附录)
363
222
  */
364
- MatchText: string;
223
+ Classes: Array<ClassificationResult>;
365
224
  /**
366
- * 词条的词性。
225
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
367
226
  */
368
- Pos?: string;
227
+ RequestId?: string;
369
228
  }
370
229
  /**
371
- * CreateWordItems请求参数结构体
230
+ * LexicalAnalysis返回参数结构体
372
231
  */
373
- export interface CreateWordItemsRequest {
374
- /**
375
- * 自定义词库ID。
376
- */
377
- DictId: string;
232
+ export interface LexicalAnalysisResponse {
378
233
  /**
379
- * 待添加的词条集合。
380
- */
381
- WordItems: Array<WordItem>;
382
- }
383
- /**
384
- * 词条信息。
385
- */
386
- export interface WordItem {
387
- /**
388
- * 词条文本内容。
234
+ * 命名实体识别结果。取值范围:
235
+ <li>PER:表示人名,如刘德华、贝克汉姆</li>
236
+ <li>LOC:表示地名,如北京、华山</li>
237
+ <li>ORG:表示机构团体名,如腾讯、最高人民法院、人大附中</li>
238
+ <li>PRODUCTION:表示产品名,如QQ、微信、iPhone</li>
239
+ 注意:此字段可能返回 null,表示取不到有效值。
389
240
  */
390
- Text: string;
241
+ NerTokens?: Array<NerToken>;
391
242
  /**
392
- * 词条创建时间。
243
+ * 分词&词性标注结果(词性表请参见附录)
393
244
  */
394
- CreateTime?: string;
245
+ PosTokens?: Array<PosToken>;
395
246
  /**
396
- * 词条的词性。
247
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
397
248
  */
398
- Pos?: string;
249
+ RequestId?: string;
399
250
  }
400
251
  /**
401
- * DeleteWordItems返回参数结构体
252
+ * DescribeDict返回参数结构体
402
253
  */
403
- export interface DeleteWordItemsResponse {
254
+ export interface DescribeDictResponse {
255
+ /**
256
+ * 查询到的词库信息列表。
257
+ 注意:此字段可能返回 null,表示取不到有效值。
258
+ */
259
+ Dicts?: Array<DictInfo>;
404
260
  /**
405
261
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
406
262
  */
407
263
  RequestId?: string;
408
264
  }
409
265
  /**
410
- * SentenceEmbedding返回参数结构体
266
+ * DescribeDicts返回参数结构体
411
267
  */
412
- export interface SentenceEmbeddingResponse {
268
+ export interface DescribeDictsResponse {
413
269
  /**
414
- * 句向量数组
270
+ * 记录总条数。
415
271
  */
416
- Vector?: Array<number>;
272
+ TotalCount?: number;
417
273
  /**
418
- * 句向量的维度
274
+ * 自定义词库信息列表。
275
+ 注意:此字段可能返回 null,表示取不到有效值。
419
276
  */
420
- Dimension?: number;
277
+ Dicts?: Array<DictInfo>;
421
278
  /**
422
279
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
423
280
  */
424
281
  RequestId?: string;
425
282
  }
426
283
  /**
427
- * UpdateDict请求参数结构体
284
+ * DeleteDict请求参数结构体
428
285
  */
429
- export interface UpdateDictRequest {
286
+ export interface DeleteDictRequest {
430
287
  /**
431
- * 自定义词库ID。
288
+ * 要删除的自定义词库ID。
432
289
  */
433
290
  DictId: string;
291
+ }
292
+ /**
293
+ * 实体识别结果。
294
+ */
295
+ export interface Entity {
434
296
  /**
435
- * 词库描述,不超过100字。
297
+ * 基础词。
436
298
  */
437
- Description?: string;
299
+ Word?: string;
438
300
  /**
439
- * 词库名称,不超过20字。
301
+ * 基础词在NormalText中的起始位置。
302
+ */
303
+ BeginOffset?: number;
304
+ /**
305
+ * 基础词的长度。
306
+ */
307
+ Length?: number;
308
+ /**
309
+ * 实体类型的标准名字。
310
+ */
311
+ Type?: string;
312
+ /**
313
+ * 类型名字的自然语言表达。(中文或英文)
440
314
  */
441
315
  Name?: string;
442
316
  }
443
317
  /**
444
- * DeleteDict返回参数结构体
318
+ * GeneratePoetry请求参数结构体
445
319
  */
446
- export interface DeleteDictResponse {
320
+ export interface GeneratePoetryRequest {
447
321
  /**
448
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
322
+ * 生成诗词的关键词。
449
323
  */
450
- RequestId?: string;
324
+ Text: string;
325
+ /**
326
+ * 生成诗词的类型。0:藏头或藏身;1:藏头;2:藏身。默认为0。
327
+ */
328
+ PoetryType?: number;
329
+ /**
330
+ * 诗的体裁。0:五言律诗或七言律诗;5:五言律诗;7:七言律诗。默认为0。
331
+ */
332
+ Genre?: number;
451
333
  }
452
334
  /**
453
- * DescribeWordItems请求参数结构体
335
+ * SearchWordItems请求参数结构体
454
336
  */
455
- export interface DescribeWordItemsRequest {
337
+ export interface SearchWordItemsRequest {
456
338
  /**
457
339
  * 自定义词库ID。
458
340
  */
459
341
  DictId: string;
460
342
  /**
461
- * 分页偏移量,从0开始,默认为0。
343
+ * 待检索的词条集合。
462
344
  */
463
- Offset?: number;
345
+ WordItems: Array<WordItem>;
346
+ }
347
+ /**
348
+ * GenerateKeywordSentence请求参数结构体
349
+ */
350
+ export interface GenerateKeywordSentenceRequest {
464
351
  /**
465
- * 每页数据量,范围为1~100,默认为10
352
+ * 生成句子的关键词,关键词个数需不超过4个,中文关键词长度应不超过10字符,英文关键词长度不超过3个单词。关键词中不可包含标点符号。
466
353
  */
467
- Limit?: number;
354
+ WordList: Array<string>;
468
355
  /**
469
- * 待检索的词条文本,支持模糊匹配。
356
+ * 返回生成句子的个数。数量需>=1且<=5。
357
+ (注意实际结果可能小于指定个数)
470
358
  */
471
- Text?: string;
359
+ Number: number;
360
+ /**
361
+ * 指定生成句子的领域,支持领域列表
362
+ general:通用领域,支持中英文
363
+ academic:学术领域,仅支持英文
364
+ 默认为general(通用领域)。
365
+ */
366
+ Domain?: string;
472
367
  }
473
368
  /**
474
- * GenerateCouplet返回参数结构体
369
+ * SentimentAnalysis返回参数结构体
475
370
  */
476
- export interface GenerateCoupletResponse {
371
+ export interface SentimentAnalysisResponse {
477
372
  /**
478
- * 横批。
373
+ * 正面情感概率
479
374
  */
480
- TopScroll: string;
375
+ Positive: number;
481
376
  /**
482
- * 上联与下联。
377
+ * 中性情感概率,当输入参数Mode取值为3class时有效,否则值为空
378
+ 注意:此字段可能返回 null,表示取不到有效值。
483
379
  */
484
- Content: Array<string>;
380
+ Neutral: number;
485
381
  /**
486
- * 当对联随机生成时,展示随机生成原因。
382
+ * 负面情感概率
487
383
  */
488
- RandomCause: string;
384
+ Negative: number;
385
+ /**
386
+ * 情感分类结果:
387
+ 1、positive,表示正面情感
388
+ 2、negative,表示负面情感
389
+ 3、neutral,表示中性、无情感
390
+ */
391
+ Sentiment: string;
489
392
  /**
490
393
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
491
394
  */
492
395
  RequestId?: string;
493
396
  }
494
397
  /**
495
- * CreateDict返回参数结构体
398
+ * ChatBot返回参数结构体
496
399
  */
497
- export interface CreateDictResponse {
400
+ export interface ChatBotResponse {
498
401
  /**
499
- * 创建的自定义词库ID。
500
- 注意:此字段可能返回 null,表示取不到有效值。
402
+ * 闲聊回复
501
403
  */
502
- DictId?: string;
404
+ Reply: string;
405
+ /**
406
+ * 对于当前输出回复的自信度
407
+ */
408
+ Confidence: number;
503
409
  /**
504
410
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
505
411
  */
506
412
  RequestId?: string;
507
413
  }
508
414
  /**
509
- * TextSimilarity请求参数结构体
415
+ * KeywordsExtraction请求参数结构体
510
416
  */
511
- export interface TextSimilarityRequest {
417
+ export interface KeywordsExtractionRequest {
512
418
  /**
513
- * 需要与目标句子计算相似度的源句子(仅支持UTF-8格式,不超过500字符)
419
+ * 待处理的文本(仅支持UTF-8格式,不超过10000字符)
514
420
  */
515
- SrcText: string;
421
+ Text: string;
516
422
  /**
517
- * 目标句子(以句子数量为单位消耗资源包)
423
+ * 指定关键词个数上限(默认值为5)
518
424
  */
519
- TargetText: Array<string>;
425
+ Num?: number;
520
426
  }
521
427
  /**
522
- * AutoSummarization返回参数结构体
428
+ * 词条搜索的结果,主要描述该词条是否存在以及相关的词性。
523
429
  */
524
- export interface AutoSummarizationResponse {
430
+ export interface SearchResult {
525
431
  /**
526
- * 文本摘要结果
432
+ * 被搜索的词条文本。
527
433
  */
528
- Summary: string;
434
+ Text: string;
529
435
  /**
530
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
436
+ * 0表示词条不存在,1表示存在。
531
437
  */
532
- RequestId?: string;
438
+ IsExist: number;
439
+ /**
440
+ * 匹配到的词条文本。
441
+ */
442
+ MatchText: string;
443
+ /**
444
+ * 词条的词性。
445
+ */
446
+ Pos?: string;
533
447
  }
534
448
  /**
535
- * WordEmbedding返回参数结构体
449
+ * SentenceEmbedding返回参数结构体
536
450
  */
537
- export interface WordEmbeddingResponse {
451
+ export interface SentenceEmbeddingResponse {
538
452
  /**
539
- * 词向量数组
453
+ * 句向量数组
540
454
  */
541
- Vector: Array<number>;
455
+ Vector?: Array<number>;
542
456
  /**
543
- * 词向量的维度
457
+ * 句向量的维度
544
458
  */
545
- Dimension: number;
459
+ Dimension?: number;
546
460
  /**
547
461
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
548
462
  */
549
463
  RequestId?: string;
550
464
  }
551
465
  /**
552
- * DescribeWordItems返回参数结构体
466
+ * UpdateDict请求参数结构体
553
467
  */
554
- export interface DescribeWordItemsResponse {
468
+ export interface UpdateDictRequest {
555
469
  /**
556
- * 词条记录总条数。
470
+ * 自定义词库ID。
557
471
  */
558
- TotalCount?: number;
472
+ DictId: string;
559
473
  /**
560
- * 词条信息列表。
561
- 注意:此字段可能返回 null,表示取不到有效值。
474
+ * 词库描述,不超过100字。
562
475
  */
563
- WordItems?: Array<WordItem>;
476
+ Description?: string;
564
477
  /**
565
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
478
+ * 词库名称,不超过20字。
566
479
  */
567
- RequestId?: string;
480
+ Name?: string;
568
481
  }
569
482
  /**
570
- * SimilarWords请求参数结构体
483
+ * SentimentAnalysis请求参数结构体
571
484
  */
572
- export interface SimilarWordsRequest {
485
+ export interface SentimentAnalysisRequest {
573
486
  /**
574
- * 输入的词语(仅支持UTF-8格式,不超过20字)
487
+ * 待分析的文本(仅支持UTF-8格式,不超过200字)
575
488
  */
576
489
  Text: string;
577
490
  /**
578
- * 相似词个数;取值范围:1-200,默认为10;
579
- */
580
- WordNumber?: number;
581
- }
582
- /**
583
- * DescribeDict请求参数结构体
584
- */
585
- export interface DescribeDictRequest {
586
- /**
587
- * 自定义词库ID。
491
+ * 待分析文本所属的类型,仅当输入参数Mode取值为2class时有效(默认取4值):
492
+ 1、商品评论类
493
+ 2、社交类
494
+ 3、美食酒店类
495
+ 4、通用领域类
588
496
  */
589
- DictId?: string;
497
+ Flag?: number;
590
498
  /**
591
- * 自定义词库名称,模糊搜索。
499
+ * 情感分类模式选项,可取2class或3class(默认值为2class)
500
+ 1、2class:返回正负面二分类情感结果
501
+ 2、3class:返回正负面及中性三分类情感结果
592
502
  */
593
- Name?: string;
503
+ Mode?: string;
594
504
  }
595
505
  /**
596
- * 分词&词性标注结果
506
+ * TextWriting请求参数结构体
597
507
  */
598
- export interface PosToken {
508
+ export interface TextWritingRequest {
599
509
  /**
600
- * 基础词
510
+ * 待续写的句子,文本统一使用utf-8格式编码,长度不超过200字符。
601
511
  */
602
- Word: string;
512
+ Text: string;
603
513
  /**
604
- * 长度
514
+ * 待续写文本的语言类型,支持语言列表
515
+ zh:中文
516
+ en:英文
605
517
  */
606
- Length: number;
518
+ SourceLang: string;
607
519
  /**
608
- * 起始位置
520
+ * 返回续写结果的个数。数量需>=1且<=5。
521
+ (注意实际结果可能小于指定个数)
609
522
  */
610
- BeginOffset: number;
523
+ Number: number;
611
524
  /**
612
- * 词性
525
+ * 指定续写领域,支持领域列表
526
+ general:通用领域,支持中英文补全
527
+ academic:学术领域,仅支持英文补全
528
+ 默认为general(通用领域)。
613
529
  */
614
- Pos: string;
530
+ Domain?: string;
531
+ /**
532
+ * 指定续写风格,支持风格列表
533
+ science_fiction:科幻
534
+ military_history:军事
535
+ xuanhuan_wuxia:武侠
536
+ urban_officialdom:职场
537
+ 默认为xuanhuan_wuxia(武侠)。
538
+ */
539
+ Style?: string;
615
540
  }
616
541
  /**
617
- * GeneratePoetry返回参数结构体
542
+ * AutoSummarization返回参数结构体
618
543
  */
619
- export interface GeneratePoetryResponse {
620
- /**
621
- * 诗题,即输入的生成诗词的关键词。
622
- */
623
- Title: string;
544
+ export interface AutoSummarizationResponse {
624
545
  /**
625
- * 诗的内容。
546
+ * 文本摘要结果
626
547
  */
627
- Content: Array<string>;
548
+ Summary: string;
628
549
  /**
629
550
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
630
551
  */
631
552
  RequestId?: string;
632
553
  }
633
554
  /**
634
- * DeleteWordItems请求参数结构体
635
- */
636
- export interface DeleteWordItemsRequest {
637
- /**
638
- * 自定义词库ID。
639
- */
640
- DictId: string;
641
- /**
642
- * 待删除的词条集合。
643
- */
644
- WordItems: Array<WordItem>;
645
- }
646
- /**
647
- * DescribeDict返回参数结构体
648
- */
649
- export interface DescribeDictResponse {
650
- /**
651
- * 查询到的词库信息列表。
652
- 注意:此字段可能返回 null,表示取不到有效值。
653
- */
654
- Dicts?: Array<DictInfo>;
655
- /**
656
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
657
- */
658
- RequestId?: string;
659
- }
660
- /**
661
- * TextCorrectionPro请求参数结构体
662
- */
663
- export interface TextCorrectionProRequest {
664
- /**
665
- * 待纠错的文本(仅支持UTF-8格式,不超过128字符)
666
- */
667
- Text: string;
668
- }
669
- /**
670
- * TextCorrection返回参数结构体
555
+ * TextCorrection返回参数结构体
671
556
  */
672
557
  export interface TextCorrectionResponse {
673
558
  /**
@@ -685,66 +570,17 @@ export interface TextCorrectionResponse {
685
570
  RequestId?: string;
686
571
  }
687
572
  /**
688
- * TextSimilarityPro返回参数结构体
689
- */
690
- export interface TextSimilarityProResponse {
691
- /**
692
- * 每个目标句子与源句子的相似度分值,按照分值降序排列
693
- */
694
- Similarity: Array<Similarity>;
695
- /**
696
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
697
- */
698
- RequestId?: string;
699
- }
700
- /**
701
- * DescribeDicts返回参数结构体
702
- */
703
- export interface DescribeDictsResponse {
704
- /**
705
- * 记录总条数。
706
- */
707
- TotalCount?: number;
708
- /**
709
- * 自定义词库信息列表。
710
- 注意:此字段可能返回 null,表示取不到有效值。
711
- */
712
- Dicts?: Array<DictInfo>;
713
- /**
714
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
715
- */
716
- RequestId?: string;
717
- }
718
- /**
719
- * DependencyParsing请求参数结构体
720
- */
721
- export interface DependencyParsingRequest {
722
- /**
723
- * 待分析的文本(仅支持UTF-8格式,不超过200字)
724
- */
725
- Text: string;
726
- }
727
- /**
728
- * DeleteDict请求参数结构体
573
+ * DeleteWordItems请求参数结构体
729
574
  */
730
- export interface DeleteDictRequest {
575
+ export interface DeleteWordItemsRequest {
731
576
  /**
732
- * 要删除的自定义词库ID。
577
+ * 自定义词库ID。
733
578
  */
734
579
  DictId: string;
735
- }
736
- /**
737
- * 文本相似度
738
- */
739
- export interface Similarity {
740
- /**
741
- * 目标文本句子
742
- */
743
- Text: string;
744
580
  /**
745
- * 相似度分数
581
+ * 待删除的词条集合。
746
582
  */
747
- Score: number;
583
+ WordItems: Array<WordItem>;
748
584
  }
749
585
  /**
750
586
  * 命名实体识别结果
@@ -768,29 +604,13 @@ export interface NerToken {
768
604
  Type: string;
769
605
  }
770
606
  /**
771
- * SentimentAnalysis返回参数结构体
607
+ * SimilarWords返回参数结构体
772
608
  */
773
- export interface SentimentAnalysisResponse {
774
- /**
775
- * 正面情感概率
776
- */
777
- Positive: number;
778
- /**
779
- * 中性情感概率,当输入参数Mode取值为3class时有效,否则值为空
780
- 注意:此字段可能返回 null,表示取不到有效值。
781
- */
782
- Neutral: number;
783
- /**
784
- * 负面情感概率
785
- */
786
- Negative: number;
609
+ export interface SimilarWordsResponse {
787
610
  /**
788
- * 情感分类结果:
789
- 1、positive,表示正面情感
790
- 2、negative,表示负面情感
791
- 3、neutral,表示中性、无情感
611
+ * 相似词数组
792
612
  */
793
- Sentiment: string;
613
+ SimilarWords?: Array<string>;
794
614
  /**
795
615
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
796
616
  */
@@ -824,19 +644,6 @@ export interface DependencyParsingResponse {
824
644
  */
825
645
  RequestId?: string;
826
646
  }
827
- /**
828
- * SimilarWords返回参数结构体
829
- */
830
- export interface SimilarWordsResponse {
831
- /**
832
- * 相似词数组
833
- */
834
- SimilarWords?: Array<string>;
835
- /**
836
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
837
- */
838
- RequestId?: string;
839
- }
840
647
  /**
841
648
  * GenerateCouplet请求参数结构体
842
649
  */
@@ -850,23 +657,6 @@ export interface GenerateCoupletRequest {
850
657
  */
851
658
  TargetType?: number;
852
659
  }
853
- /**
854
- * 文本纠错结果
855
- */
856
- export interface CCIToken {
857
- /**
858
- * 错别字内容
859
- */
860
- Word?: string;
861
- /**
862
- * 错别字的起始位置,从0开始
863
- */
864
- BeginOffset?: number;
865
- /**
866
- * 错别字纠错结果
867
- */
868
- CorrectWord?: string;
869
- }
870
660
  /**
871
661
  * LexicalAnalysis请求参数结构体
872
662
  */
@@ -887,81 +677,720 @@ export interface LexicalAnalysisRequest {
887
677
  Flag?: number;
888
678
  }
889
679
  /**
890
- * GeneratePoetry请求参数结构体
680
+ * CreateWordItems返回参数结构体
891
681
  */
892
- export interface GeneratePoetryRequest {
682
+ export interface CreateWordItemsResponse {
893
683
  /**
894
- * 生成诗词的关键词。
684
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
895
685
  */
896
- Text: string;
686
+ RequestId?: string;
687
+ }
688
+ /**
689
+ * TextSimilarityPro请求参数结构体
690
+ */
691
+ export interface TextSimilarityProRequest {
897
692
  /**
898
- * 生成诗词的类型。0:藏头或藏身;1:藏头;2:藏身。默认为0。
693
+ * 需要与目标句子计算相似度的源句子(仅支持UTF-8格式,不超过128字符)
899
694
  */
900
- PoetryType?: number;
695
+ SrcText: string;
901
696
  /**
902
- * 诗的体裁。0:五言律诗或七言律诗;5:五言律诗;7:七言律诗。默认为0。
697
+ * 目标句子(仅支持UTF-8格式,不超过128字符)
903
698
  */
904
- Genre?: number;
699
+ TargetText: Array<string>;
905
700
  }
906
701
  /**
907
- * CreateWordItems返回参数结构体
702
+ * RetrieveSimilarWords请求参数结构体
908
703
  */
909
- export interface CreateWordItemsResponse {
704
+ export interface RetrieveSimilarWordsRequest {
910
705
  /**
911
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
706
+ * 输入的词语。(仅支持UTF-8格式,不超过10字符)
912
707
  */
913
- RequestId?: string;
708
+ Text: string;
709
+ /**
710
+ * 召回的相似词个数,取值范围为1-20。
711
+ */
712
+ Number: number;
914
713
  }
915
714
  /**
916
- * SentimentAnalysis请求参数结构体
715
+ * 文本续写结果
917
716
  */
918
- export interface SentimentAnalysisRequest {
717
+ export interface Writing {
919
718
  /**
920
- * 待分析的文本(仅支持UTF-8格式,不超过200字)
719
+ * 续写的文本。
921
720
  */
922
- Text: string;
721
+ TargetText?: string;
923
722
  /**
924
- * 待分析文本所属的类型,仅当输入参数Mode取值为2class时有效(默认取4值):
925
- 1、商品评论类
926
- 2、社交类
927
- 3、美食酒店类
928
- 4、通用领域类
723
+ * 续写的前缀。
929
724
  */
930
- Flag?: number;
725
+ PrefixText?: string;
726
+ }
727
+ /**
728
+ * AutoSummarization请求参数结构体
729
+ */
730
+ export interface AutoSummarizationRequest {
931
731
  /**
932
- * 情感分类模式选项,可取2class或3class(默认值为2class)
933
- 1、2class:返回正负面二分类情感结果
934
- 2、3class:返回正负面及中性三分类情感结果
732
+ * 待处理的文本(仅支持UTF-8格式,不超过2000字)
935
733
  */
936
- Mode?: string;
734
+ Text: string;
735
+ /**
736
+ * 指定摘要的长度上限(默认值为200)
737
+ 注:为保证摘要的可读性,最终生成的摘要长度会低于指定的长度上限。
738
+ */
739
+ Length?: number;
937
740
  }
938
741
  /**
939
- * SearchWordItems请求参数结构体
742
+ * 文本分类结果
940
743
  */
941
- export interface SearchWordItemsRequest {
744
+ export interface ClassificationResult {
942
745
  /**
943
- * 自定义词库ID。
746
+ * 一级分类名称
944
747
  */
945
- DictId: string;
748
+ FirstClassName?: string;
946
749
  /**
947
- * 待检索的词条集合。
750
+ * 二级分类名称
948
751
  */
949
- WordItems: Array<WordItem>;
752
+ SecondClassName?: string;
753
+ /**
754
+ * 一级分类概率
755
+ */
756
+ FirstClassProbability?: number;
757
+ /**
758
+ * 二级分类概率
759
+ */
760
+ SecondClassProbability?: number;
761
+ /**
762
+ * 三级分类名称,仅有当新闻领域五分类可能出现,详情见文本分类文档
763
+ */
764
+ ThirdClassName?: string;
765
+ /**
766
+ * 三级分类概率,仅有当新闻领域五分类可能出现,详情见文本分类文档
767
+ */
768
+ ThirdClassProbability?: number;
769
+ /**
770
+ * 四级分类名称,仅有当新闻领域五分类可能出现,详情见文本分类文档
771
+ */
772
+ FourthClassName?: string;
773
+ /**
774
+ * 四级分类概率,仅有当新闻领域五分类可能出现,详情见文本分类文档
775
+ */
776
+ FourthClassProbability?: number;
777
+ /**
778
+ * 五级分类名称,仅有当新闻领域五分类可能出现,详情见文本分类文档
779
+ */
780
+ FifthClassName?: string;
781
+ /**
782
+ * 五级分类概率,仅有当新闻领域五分类可能出现,详情见文本分类文档
783
+ */
784
+ FifthClassProbability?: number;
950
785
  }
951
786
  /**
952
- * KeywordsExtraction返回参数结构体
787
+ * DescribeDicts请求参数结构体
953
788
  */
954
- export interface KeywordsExtractionResponse {
789
+ export interface DescribeDictsRequest {
955
790
  /**
956
- * 关键词提取结果
957
- 注意:此字段可能返回 null,表示取不到有效值。
791
+ * 每页数据量,范围为1~100,默认为10。
958
792
  */
959
- Keywords: Array<Keyword>;
793
+ Limit?: number;
794
+ /**
795
+ * 分页偏移量,从0开始,默认为0。
796
+ */
797
+ Offset?: number;
798
+ }
799
+ /**
800
+ * WordSimilarity返回参数结构体
801
+ */
802
+ export interface WordSimilarityResponse {
803
+ /**
804
+ * 两个词语的相似度
805
+ */
806
+ Similarity?: number;
807
+ /**
808
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
809
+ */
810
+ RequestId?: string;
811
+ }
812
+ /**
813
+ * TextEmbellish请求参数结构体
814
+ */
815
+ export interface TextEmbellishRequest {
816
+ /**
817
+ * 待润色的文本。中文文本长度需<=50字符;英文文本长度需<=30个单词。
818
+ */
819
+ Text: string;
820
+ /**
821
+ * 待润色文本的语言类型,支持语言列表
822
+ zh:中文
823
+ en:英文
824
+ */
825
+ SourceLang: string;
826
+ /**
827
+ * 返回润色结果的个数。数量需>=1且<=5。
828
+ (注意实际结果可能小于指定个数)
829
+ */
830
+ Number: number;
831
+ /**
832
+ * 控制润色类型,类型列表
833
+ both:同时返回改写和扩写
834
+ expansion:扩写
835
+ rewriting:改写
836
+ m2a:从现代文改写为古文
837
+ a2m:从古文改写为现代文
838
+ 默认为both。
839
+ */
840
+ Style?: string;
841
+ }
842
+ /**
843
+ * EvaluateSentenceSimilarity返回参数结构体
844
+ */
845
+ export interface EvaluateSentenceSimilarityResponse {
846
+ /**
847
+ * 每个句子对的相似度分值。
848
+ */
849
+ ScoreList?: Array<number>;
850
+ /**
851
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
852
+ */
853
+ RequestId?: string;
854
+ }
855
+ /**
856
+ * CreateWordItems请求参数结构体
857
+ */
858
+ export interface CreateWordItemsRequest {
859
+ /**
860
+ * 自定义词库ID。
861
+ */
862
+ DictId: string;
863
+ /**
864
+ * 待添加的词条集合。
865
+ */
866
+ WordItems: Array<WordItem>;
867
+ }
868
+ /**
869
+ * SimilarWords请求参数结构体
870
+ */
871
+ export interface SimilarWordsRequest {
872
+ /**
873
+ * 输入的词语(仅支持UTF-8格式,不超过20字)
874
+ */
875
+ Text: string;
876
+ /**
877
+ * 相似词个数;取值范围:1-200,默认为10;
878
+ */
879
+ WordNumber?: number;
880
+ }
881
+ /**
882
+ * DescribeWordItems请求参数结构体
883
+ */
884
+ export interface DescribeWordItemsRequest {
885
+ /**
886
+ * 自定义词库ID。
887
+ */
888
+ DictId: string;
889
+ /**
890
+ * 分页偏移量,从0开始,默认为0。
891
+ */
892
+ Offset?: number;
893
+ /**
894
+ * 每页数据量,范围为1~100,默认为10。
895
+ */
896
+ Limit?: number;
897
+ /**
898
+ * 待检索的词条文本,支持模糊匹配。
899
+ */
900
+ Text?: string;
901
+ }
902
+ /**
903
+ * GenerateCouplet返回参数结构体
904
+ */
905
+ export interface GenerateCoupletResponse {
906
+ /**
907
+ * 横批。
908
+ */
909
+ TopScroll: string;
910
+ /**
911
+ * 上联与下联。
912
+ */
913
+ Content: Array<string>;
914
+ /**
915
+ * 当对联随机生成时,展示随机生成原因。
916
+ */
917
+ RandomCause: string;
918
+ /**
919
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
920
+ */
921
+ RequestId?: string;
922
+ }
923
+ /**
924
+ * WordEmbedding返回参数结构体
925
+ */
926
+ export interface WordEmbeddingResponse {
927
+ /**
928
+ * 词向量数组
929
+ */
930
+ Vector: Array<number>;
931
+ /**
932
+ * 词向量的维度
933
+ */
934
+ Dimension: number;
935
+ /**
936
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
937
+ */
938
+ RequestId?: string;
939
+ }
940
+ /**
941
+ * 分词&词性标注结果
942
+ */
943
+ export interface PosToken {
944
+ /**
945
+ * 基础词
946
+ */
947
+ Word: string;
948
+ /**
949
+ * 长度
950
+ */
951
+ Length: number;
952
+ /**
953
+ * 起始位置
954
+ */
955
+ BeginOffset: number;
956
+ /**
957
+ * 词性
958
+ */
959
+ Pos: string;
960
+ }
961
+ /**
962
+ * KeywordsExtraction返回参数结构体
963
+ */
964
+ export interface KeywordsExtractionResponse {
965
+ /**
966
+ * 关键词提取结果
967
+ 注意:此字段可能返回 null,表示取不到有效值。
968
+ */
969
+ Keywords: Array<Keyword>;
970
+ /**
971
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
972
+ */
973
+ RequestId?: string;
974
+ }
975
+ /**
976
+ * SentenceCorrection返回参数结构体
977
+ */
978
+ export interface SentenceCorrectionResponse {
979
+ /**
980
+ * 纠错结果列表。
981
+ (注意仅展示错误句子的纠错结果,若句子无错则不展示,若全部待纠错句子都被认为无错,则可能返回数组为空)
982
+ */
983
+ CorrectionList?: Array<CorrectionItem>;
984
+ /**
985
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
986
+ */
987
+ RequestId?: string;
988
+ }
989
+ /**
990
+ * EvaluateSentenceSimilarity请求参数结构体
991
+ */
992
+ export interface EvaluateSentenceSimilarityRequest {
993
+ /**
994
+ * 待分析的句子对数组。句子对应不超过5对,支持中英文文本,原句子与目标句子均应不超过500字符。
995
+ */
996
+ SentencePairList: Array<SentencePair>;
997
+ }
998
+ /**
999
+ * 文本相似度
1000
+ */
1001
+ export interface Similarity {
1002
+ /**
1003
+ * 目标文本句子
1004
+ */
1005
+ Text: string;
1006
+ /**
1007
+ * 相似度分数
1008
+ */
1009
+ Score: number;
1010
+ }
1011
+ /**
1012
+ * GenerateKeywordSentence返回参数结构体
1013
+ */
1014
+ export interface GenerateKeywordSentenceResponse {
1015
+ /**
1016
+ * 生成的句子列表。
1017
+ */
1018
+ KeywordSentenceList?: Array<KeywordSentence>;
1019
+ /**
1020
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1021
+ */
1022
+ RequestId?: string;
1023
+ }
1024
+ /**
1025
+ * 文本纠错结果
1026
+ */
1027
+ export interface CCIToken {
1028
+ /**
1029
+ * 错别字内容
1030
+ */
1031
+ Word?: string;
1032
+ /**
1033
+ * 错别字的起始位置,从0开始
1034
+ */
1035
+ BeginOffset?: number;
1036
+ /**
1037
+ * 错别字纠错结果
1038
+ */
1039
+ CorrectWord?: string;
1040
+ }
1041
+ /**
1042
+ * TextEmbellish返回参数结构体
1043
+ */
1044
+ export interface TextEmbellishResponse {
1045
+ /**
1046
+ * 润色结果列表。
1047
+ */
1048
+ EmbellishList?: Array<Embellish>;
1049
+ /**
1050
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1051
+ */
1052
+ RequestId?: string;
1053
+ }
1054
+ /**
1055
+ * 纠错结果列表
1056
+ */
1057
+ export interface CorrectionItem {
1058
+ /**
1059
+ * 纠错句子的序号。
1060
+ */
1061
+ Order?: number;
1062
+ /**
1063
+ * 错误的起始位置,从0开始。
1064
+ */
1065
+ BeginOffset?: number;
1066
+ /**
1067
+ * 错误内容长度。
1068
+ */
1069
+ Len?: number;
1070
+ /**
1071
+ * 错误内容。
1072
+ */
1073
+ Word?: string;
1074
+ /**
1075
+ * 纠错结果,当为删除类错误时,结果为null。
1076
+ 注意:此字段可能返回 null,表示取不到有效值。
1077
+ */
1078
+ CorrectWord?: Array<string>;
1079
+ /**
1080
+ * 纠错类型。0:替换;1:插入;2:删除。
1081
+ */
1082
+ CorrectionType?: number;
1083
+ /**
1084
+ * 纠错信息置信度。0:error;1:warning;error的置信度更高。(仅供参考)
1085
+ */
1086
+ Confidence?: number;
1087
+ /**
1088
+ * 纠错信息中文描述。
1089
+ 注意:此字段可能返回 null,表示取不到有效值。
1090
+ */
1091
+ DescriptionZh?: string;
1092
+ /**
1093
+ * 纠错信息英文描述。
1094
+ 注意:此字段可能返回 null,表示取不到有效值。
1095
+ */
1096
+ DescriptionEn?: string;
1097
+ }
1098
+ /**
1099
+ * TextClassification请求参数结构体
1100
+ */
1101
+ export interface TextClassificationRequest {
1102
+ /**
1103
+ * 待分类的文本(仅支持UTF-8格式,不超过10000字)
1104
+ */
1105
+ Text: string;
1106
+ /**
1107
+ * 领域分类体系(默认取1值):
1108
+ 1、通用领域,二分类
1109
+ 2、新闻领域,五分类。类别数据不一定全部返回,详情见类目映射表(注意:目前五分类已下线不可用)
1110
+ */
1111
+ Flag?: number;
1112
+ }
1113
+ /**
1114
+ * SearchWordItems返回参数结构体
1115
+ */
1116
+ export interface SearchWordItemsResponse {
1117
+ /**
1118
+ * 词条检索结果集合。
1119
+ 注意:此字段可能返回 null,表示取不到有效值。
1120
+ */
1121
+ Results: Array<SearchResult>;
1122
+ /**
1123
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1124
+ */
1125
+ RequestId?: string;
1126
+ }
1127
+ /**
1128
+ * 句法依存分析结果,包括基础词,基础词的序号,当前词父节点的序号,句法依存关系的类型
1129
+ */
1130
+ export interface DpToken {
1131
+ /**
1132
+ * 句法依存关系的类型
1133
+ */
1134
+ Relation?: string;
1135
+ /**
1136
+ * 当前词父节点的序号
1137
+ */
1138
+ HeadId?: number;
1139
+ /**
1140
+ * 基础词
1141
+ */
1142
+ Word?: string;
1143
+ /**
1144
+ * 基础词的序号
1145
+ */
1146
+ Id?: number;
1147
+ }
1148
+ /**
1149
+ * ChatBot请求参数结构体
1150
+ */
1151
+ export interface ChatBotRequest {
1152
+ /**
1153
+ * 用户请求的query
1154
+ */
1155
+ Query: string;
1156
+ /**
1157
+ * 服务的id, 主要用于儿童闲聊接口,比如手Q的openid
1158
+ */
1159
+ OpenId?: string;
1160
+ /**
1161
+ * 0: 通用闲聊, 1:儿童闲聊, 默认是通用闲聊
1162
+ */
1163
+ Flag?: number;
1164
+ }
1165
+ /**
1166
+ * TextCorrection请求参数结构体
1167
+ */
1168
+ export interface TextCorrectionRequest {
1169
+ /**
1170
+ * 待纠错的文本(仅支持UTF-8格式,不超过2000字符)
1171
+ */
1172
+ Text: string;
1173
+ }
1174
+ /**
1175
+ * 关键词提取结果
1176
+ */
1177
+ export interface Keyword {
1178
+ /**
1179
+ * 权重
1180
+ */
1181
+ Score?: number;
1182
+ /**
1183
+ * 关键词
1184
+ */
1185
+ Word?: string;
1186
+ }
1187
+ /**
1188
+ * UpdateDict返回参数结构体
1189
+ */
1190
+ export interface UpdateDictResponse {
1191
+ /**
1192
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1193
+ */
1194
+ RequestId?: string;
1195
+ }
1196
+ /**
1197
+ * WordSimilarity请求参数结构体
1198
+ */
1199
+ export interface WordSimilarityRequest {
1200
+ /**
1201
+ * 计算相似度的源词(仅支持UTF-8格式,不超过20字)
1202
+ */
1203
+ SrcWord: string;
1204
+ /**
1205
+ * 计算相似度的目标词(仅支持UTF-8格式,不超过20字)
1206
+ */
1207
+ TargetWord: string;
1208
+ }
1209
+ /**
1210
+ * DeleteWordItems返回参数结构体
1211
+ */
1212
+ export interface DeleteWordItemsResponse {
1213
+ /**
1214
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1215
+ */
1216
+ RequestId?: string;
1217
+ }
1218
+ /**
1219
+ * TextSimilarity请求参数结构体
1220
+ */
1221
+ export interface TextSimilarityRequest {
1222
+ /**
1223
+ * 需要与目标句子计算相似度的源句子(仅支持UTF-8格式,不超过500字符)
1224
+ */
1225
+ SrcText: string;
1226
+ /**
1227
+ * 目标句子(以句子数量为单位消耗资源包)
1228
+ */
1229
+ TargetText: Array<string>;
1230
+ }
1231
+ /**
1232
+ * WordEmbedding请求参数结构体
1233
+ */
1234
+ export interface WordEmbeddingRequest {
1235
+ /**
1236
+ * 输入的词语(仅支持UTF-8格式,不超过20字)
1237
+ */
1238
+ Text: string;
1239
+ }
1240
+ /**
1241
+ * 复合粒度分词和词性标注的结果。
1242
+ */
1243
+ export interface CompoundParticiple {
1244
+ /**
1245
+ * 基础词。
1246
+ */
1247
+ Word?: string;
1248
+ /**
1249
+ * 基础词在NormalText中的起始位置。
1250
+ */
1251
+ BeginOffset?: number;
1252
+ /**
1253
+ * 基础词的长度。
1254
+ */
1255
+ Length?: number;
1256
+ /**
1257
+ * 词性。
1258
+ */
1259
+ Pos?: string;
1260
+ }
1261
+ /**
1262
+ * DescribeWordItems返回参数结构体
1263
+ */
1264
+ export interface DescribeWordItemsResponse {
1265
+ /**
1266
+ * 词条记录总条数。
1267
+ */
1268
+ TotalCount?: number;
1269
+ /**
1270
+ * 词条信息列表。
1271
+ 注意:此字段可能返回 null,表示取不到有效值。
1272
+ */
1273
+ WordItems?: Array<WordItem>;
1274
+ /**
1275
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1276
+ */
1277
+ RequestId?: string;
1278
+ }
1279
+ /**
1280
+ * ParseWords请求参数结构体
1281
+ */
1282
+ export interface ParseWordsRequest {
1283
+ /**
1284
+ * 待分析的文本(支持中英文文本,不超过500字符)
1285
+ */
1286
+ Text: string;
1287
+ }
1288
+ /**
1289
+ * TextSimilarity返回参数结构体
1290
+ */
1291
+ export interface TextSimilarityResponse {
1292
+ /**
1293
+ * 每个目标句子与源句子的相似度分值,按照分值降序排列
1294
+ */
1295
+ Similarity: Array<Similarity>;
1296
+ /**
1297
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1298
+ */
1299
+ RequestId?: string;
1300
+ }
1301
+ /**
1302
+ * DescribeDict请求参数结构体
1303
+ */
1304
+ export interface DescribeDictRequest {
1305
+ /**
1306
+ * 自定义词库ID。
1307
+ */
1308
+ DictId?: string;
1309
+ /**
1310
+ * 自定义词库名称,模糊搜索。
1311
+ */
1312
+ Name?: string;
1313
+ }
1314
+ /**
1315
+ * GeneratePoetry返回参数结构体
1316
+ */
1317
+ export interface GeneratePoetryResponse {
1318
+ /**
1319
+ * 诗题,即输入的生成诗词的关键词。
1320
+ */
1321
+ Title: string;
1322
+ /**
1323
+ * 诗的内容。
1324
+ */
1325
+ Content: Array<string>;
960
1326
  /**
961
1327
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
962
1328
  */
963
1329
  RequestId?: string;
964
1330
  }
1331
+ /**
1332
+ * TextSimilarityPro返回参数结构体
1333
+ */
1334
+ export interface TextSimilarityProResponse {
1335
+ /**
1336
+ * 每个目标句子与源句子的相似度分值,按照分值降序排列
1337
+ */
1338
+ Similarity: Array<Similarity>;
1339
+ /**
1340
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1341
+ */
1342
+ RequestId?: string;
1343
+ }
1344
+ /**
1345
+ * DependencyParsing请求参数结构体
1346
+ */
1347
+ export interface DependencyParsingRequest {
1348
+ /**
1349
+ * 待分析的文本(仅支持UTF-8格式,不超过200字)
1350
+ */
1351
+ Text: string;
1352
+ }
1353
+ /**
1354
+ * 待分析的句子对
1355
+ */
1356
+ export interface SentencePair {
1357
+ /**
1358
+ * 需要与目标句子计算相似度的源句子。(仅支持UTF-8格式,不超过500字符)
1359
+ */
1360
+ SourceText: string;
1361
+ /**
1362
+ * 目标句子。(仅支持UTF-8格式,不超过500字符)
1363
+
1364
+ */
1365
+ TargetText: string;
1366
+ }
1367
+ /**
1368
+ * 通过关键词生成的句子信息
1369
+ */
1370
+ export interface KeywordSentence {
1371
+ /**
1372
+ * 通过关键词生成的句子。
1373
+ */
1374
+ TargetText?: string;
1375
+ }
1376
+ /**
1377
+ * SentenceCorrection请求参数结构体
1378
+ */
1379
+ export interface SentenceCorrectionRequest {
1380
+ /**
1381
+ * 待纠错的句子列表。可以以数组方式在一次请求中填写多个待纠错的句子。文本统一使用utf-8格式编码,每个中文句子的长度不超过150字符,每个英文句子的长度不超过100个单词,且数组长度需小于150,即句子总数需少于150句。
1382
+ */
1383
+ TextList: Array<string>;
1384
+ }
1385
+ /**
1386
+ * TextCorrectionPro请求参数结构体
1387
+ */
1388
+ export interface TextCorrectionProRequest {
1389
+ /**
1390
+ * 待纠错的文本(仅支持UTF-8格式,不超过128字符)
1391
+ */
1392
+ Text: string;
1393
+ }
965
1394
  /**
966
1395
  * CreateDict请求参数结构体
967
1396
  */