tencentcloud-sdk-nodejs-tms 4.0.744 → 4.0.745
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.
- package/package.json +1 -1
- package/products.md +20 -20
- package/src/services/tms/v20201229/tms_client.ts +4 -3
- package/src/services/tms/v20201229/tms_models.ts +62 -11
- package/tencentcloud/services/tms/v20201229/tms_client.d.ts +2 -3
- package/tencentcloud/services/tms/v20201229/tms_client.js +2 -3
- package/tencentcloud/services/tms/v20201229/tms_models.d.ts +60 -11
package/package.json
CHANGED
package/products.md
CHANGED
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
| ame | [正版曲库直通车](https://cloud.tencent.com/document/product/1155) | 2023-08-17 01:06:14 |
|
|
11
11
|
| ams | [音频内容安全](https://cloud.tencent.com/document/product/1219) | 2023-11-16 01:06:13 |
|
|
12
12
|
| anicloud | [动效素材服务](https://cloud.tencent.com/document/product/1641) | 2023-05-18 01:01:53 |
|
|
13
|
-
| antiddos | [T-Sec-DDoS防护(Anti-DDoS)](https://cloud.tencent.com/document/product/297) | 2023-
|
|
13
|
+
| antiddos | [T-Sec-DDoS防护(Anti-DDoS)](https://cloud.tencent.com/document/product/297) | 2023-11-28 01:06:04 |
|
|
14
14
|
| apcas | [汽车精准获客服务](https://cloud.tencent.com/document/product/1244) | 2022-04-04 06:05:36 |
|
|
15
15
|
| ape | [正版图库直通车](https://cloud.tencent.com/document/product/1181) | 2022-04-04 06:05:40 |
|
|
16
16
|
| api | [云 API](https://cloud.tencent.com/document/product/1278) | 2023-01-05 01:02:52 |
|
|
17
17
|
| apigateway | [API 网关](https://cloud.tencent.com/document/product/628) | 2023-11-16 01:06:33 |
|
|
18
18
|
| apm | [应用性能监控](https://cloud.tencent.com/document/product/1463) | 2023-10-27 01:10:12 |
|
|
19
19
|
| as | [弹性伸缩](https://cloud.tencent.com/document/product/377) | 2023-11-20 00:01:45 |
|
|
20
|
-
| asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2023-
|
|
20
|
+
| asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2023-11-28 01:06:51 |
|
|
21
21
|
| asw | [应用与服务编排工作流](https://cloud.tencent.com/document/product/1272) | 2023-05-18 01:04:02 |
|
|
22
22
|
| ba | [ICP备案](https://cloud.tencent.com/document/product/243) | 2023-10-13 01:07:08 |
|
|
23
23
|
| batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2023-10-27 01:11:09 |
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
| cdwpg | [云数据仓库 PostgreSQL](https://cloud.tencent.com/document/product/878) | 2023-10-24 01:08:56 |
|
|
49
49
|
| cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2023-11-24 01:09:00 |
|
|
50
50
|
| cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2023-11-10 01:10:02 |
|
|
51
|
-
| cfw | [云防火墙](https://cloud.tencent.com/document/product/1132) | 2023-11-
|
|
51
|
+
| cfw | [云防火墙](https://cloud.tencent.com/document/product/1132) | 2023-11-28 01:09:22 |
|
|
52
52
|
| chdfs | [云 HDFS](https://cloud.tencent.com/document/product/1105) | 2023-08-17 01:47:49 |
|
|
53
53
|
| ciam | [账号风控平台](https://cloud.tencent.com/document/product/1441) | 2023-07-06 01:13:25 |
|
|
54
54
|
| cii | [智能保险助手](https://cloud.tencent.com/document/product/1368) | 2023-05-18 01:12:07 |
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
| cloudaudit | [云审计](https://cloud.tencent.com/document/product/629) | 2023-05-18 01:13:28 |
|
|
60
60
|
| cloudhsm | [云加密机](https://cloud.tencent.com/document/product/639) | 2023-08-17 01:57:08 |
|
|
61
61
|
| cloudstudio | [Cloud Studio(云端 IDE)](https://cloud.tencent.com/document/product/1039) | 2023-08-03 01:03:28 |
|
|
62
|
-
| cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2023-11-
|
|
62
|
+
| cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2023-11-28 01:10:26 |
|
|
63
63
|
| cme | [多媒体创作引擎](https://cloud.tencent.com/document/product/1156) | 2023-10-19 16:00:29 |
|
|
64
64
|
| cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2023-08-17 02:03:39 |
|
|
65
65
|
| cms | [内容安全](https://cloud.tencent.com/document/product/669) | 2023-08-24 01:10:10 |
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
| csip | [云安全一体化平台](https://cloud.tencent.com/document/product/664) | 2023-11-17 01:10:47 |
|
|
70
70
|
| csxg | [5G入云服务](https://cloud.tencent.com/document/product/1687) | 2023-05-19 11:26:14 |
|
|
71
71
|
| cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2023-11-23 01:14:32 |
|
|
72
|
-
| cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2023-11-
|
|
72
|
+
| cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2023-11-28 01:11:42 |
|
|
73
73
|
| cws | [漏洞扫描服务](https://cloud.tencent.com/document/product) | 2019-11-22 12:16:15 |
|
|
74
74
|
| cynosdb | [TDSQL-C MySQL 版](https://cloud.tencent.com/document/product/1003) | 2023-11-21 01:14:05 |
|
|
75
75
|
| dasb | [T-Sec-堡垒机(BH)](https://cloud.tencent.com/document/product/1025) | 2023-11-17 01:12:46 |
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
| ds | [文档服务](https://cloud.tencent.com/document/product/869) | 2023-08-17 02:59:40 |
|
|
87
87
|
| dsgc | [数据安全治理中心](https://cloud.tencent.com/document/product/1087) | 2023-11-21 01:16:05 |
|
|
88
88
|
| dtf | [分布式事务](https://cloud.tencent.com/document/product/1224) | 2022-04-04 06:38:57 |
|
|
89
|
-
| dts | [数据传输服务](https://cloud.tencent.com/document/product/571) | 2023-11-
|
|
89
|
+
| dts | [数据传输服务](https://cloud.tencent.com/document/product/571) | 2023-11-28 01:14:42 |
|
|
90
90
|
| eb | [事件总线](https://cloud.tencent.com/document/product/1359) | 2023-11-24 01:14:11 |
|
|
91
91
|
| ecc | [英文作文批改](https://cloud.tencent.com/document/product/1076) | 2023-09-13 01:42:58 |
|
|
92
92
|
| ecdn | [全站加速网络](https://cloud.tencent.com/document/product/570) | 2023-08-17 03:03:04 |
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
| emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2023-10-16 01:15:50 |
|
|
97
97
|
| es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2023-11-23 01:18:36 |
|
|
98
98
|
| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2023-11-24 01:14:56 |
|
|
99
|
-
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2023-11-
|
|
99
|
+
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2023-11-28 01:15:59 |
|
|
100
100
|
| facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2023-09-18 01:48:33 |
|
|
101
101
|
| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2023-11-14 01:16:39 |
|
|
102
102
|
| fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2023-08-17 03:12:49 |
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
| memcached | [云数据库Memcached](https://cloud.tencent.com/document/product/241) | 2023-10-20 01:19:21 |
|
|
142
142
|
| mgobe | [游戏联机对战引擎](https://cloud.tencent.com/document/product/1038) | 2022-07-08 06:11:32 |
|
|
143
143
|
| mmps | [小程序安全](https://cloud.tencent.com/document/product/1223) | 2023-05-18 01:39:20 |
|
|
144
|
-
| mna | [多网聚合加速](https://cloud.tencent.com/document/product/1385) | 2023-11-
|
|
144
|
+
| mna | [多网聚合加速](https://cloud.tencent.com/document/product/1385) | 2023-11-28 01:19:46 |
|
|
145
145
|
| mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2023-09-15 02:08:53 |
|
|
146
146
|
| monitor | [腾讯云可观测平台](https://cloud.tencent.com/document/product/248) | 2023-11-24 01:19:23 |
|
|
147
147
|
| mps | [媒体处理](https://cloud.tencent.com/document/product/862) | 2023-10-25 01:21:31 |
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
| mvj | [营销价值判断](https://cloud.tencent.com/document/product) | 2020-03-19 08:11:44 |
|
|
152
152
|
| nlp | [NLP 服务](https://cloud.tencent.com/document/product/271) | 2023-09-15 02:14:19 |
|
|
153
153
|
| npp | [号码保护](https://cloud.tencent.com/document/product) | 2020-04-22 08:00:22 |
|
|
154
|
-
| oceanus | [流计算 Oceanus](https://cloud.tencent.com/document/product/849) | 2023-11-
|
|
154
|
+
| oceanus | [流计算 Oceanus](https://cloud.tencent.com/document/product/849) | 2023-11-28 01:20:57 |
|
|
155
155
|
| ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2023-11-20 00:15:46 |
|
|
156
156
|
| omics | [腾讯健康组学平台](https://cloud.tencent.com/document/product/1643) | 2023-11-14 01:22:26 |
|
|
157
157
|
| organization | [集团账号管理](https://cloud.tencent.com/document/product/850) | 2023-11-08 02:00:11 |
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
| smh | [智能媒资托管](https://cloud.tencent.com/document/product/1339) | 2023-07-11 01:37:49 |
|
|
172
172
|
| smop | [腾讯安心用户运营平台](https://cloud.tencent.com/document/product/1310) | 2023-05-18 01:47:59 |
|
|
173
173
|
| smpn | [营销号码安全](https://cloud.tencent.com/document/product/1127) | 2023-08-17 04:38:34 |
|
|
174
|
-
| sms | [短信](https://cloud.tencent.com/document/product/382) | 2023-11-
|
|
174
|
+
| sms | [短信](https://cloud.tencent.com/document/product/382) | 2023-11-28 01:23:01 |
|
|
175
175
|
| soe | [智聆口语评测](https://cloud.tencent.com/document/product/884) | 2023-10-16 01:23:02 |
|
|
176
176
|
| solar | [智汇零售](https://cloud.tencent.com/document/product) | 2020-03-19 08:01:59 |
|
|
177
177
|
| sqlserver | [云数据库 SQL Server](https://cloud.tencent.com/document/product/238) | 2023-11-24 01:21:58 |
|
|
@@ -183,26 +183,26 @@
|
|
|
183
183
|
| taf | [流量反欺诈](https://cloud.tencent.com/document/product/1031) | 2023-08-17 04:47:19 |
|
|
184
184
|
| tag | [标签](https://cloud.tencent.com/document/product/651) | 2023-10-31 02:21:34 |
|
|
185
185
|
| tan | [碳引擎](https://cloud.tencent.com/document/product/1498) | 2023-05-18 01:50:16 |
|
|
186
|
-
| tat | [自动化助手](https://cloud.tencent.com/document/product/1340) | 2023-
|
|
186
|
+
| tat | [自动化助手](https://cloud.tencent.com/document/product/1340) | 2023-11-28 01:23:58 |
|
|
187
187
|
| tav | [文件检测](https://cloud.tencent.com/document/product) | 2019-11-28 22:10:04 |
|
|
188
188
|
| tbaas | [腾讯云区块链服务平台 TBaaS](https://cloud.tencent.com/document/product/663) | 2023-11-23 01:26:18 |
|
|
189
189
|
| tbm | [](https://cloud.tencent.com/document/product) | 2019-03-29 14:49:11 |
|
|
190
190
|
| tbp | [腾讯智能对话平台](https://cloud.tencent.com/document/product/1060) | 2023-08-17 04:48:55 |
|
|
191
191
|
| tcaplusdb | [游戏数据库 TcaplusDB](https://cloud.tencent.com/document/product/596) | 2023-09-25 01:25:42 |
|
|
192
|
-
| tcb | [云开发 CloudBase](https://cloud.tencent.com/document/product/876) | 2023-
|
|
192
|
+
| tcb | [云开发 CloudBase](https://cloud.tencent.com/document/product/876) | 2023-11-28 01:24:16 |
|
|
193
193
|
| tcbr | [云托管 CloudBase Run](https://cloud.tencent.com/document/product/1243) | 2023-05-18 01:51:15 |
|
|
194
194
|
| tcex | [腾讯云释义](https://cloud.tencent.com/document/product/1266) | 2022-07-21 06:17:29 |
|
|
195
|
-
| tchd | [腾讯云健康看板](https://cloud.tencent.com/document/product/1688) | 2023-11-
|
|
195
|
+
| tchd | [腾讯云健康看板](https://cloud.tencent.com/document/product/1688) | 2023-11-28 01:24:39 |
|
|
196
196
|
| tci | [腾讯智学课堂分析](https://cloud.tencent.com/document/product) | 2020-08-24 08:06:03 |
|
|
197
197
|
| tcm | [服务网格](https://cloud.tencent.com/document/product/1261) | 2023-10-09 01:23:14 |
|
|
198
198
|
| tcr | [容器镜像服务](https://cloud.tencent.com/document/product/1141) | 2023-11-27 00:18:18 |
|
|
199
199
|
| tcss | [容器安全服务](https://cloud.tencent.com/document/product/1285) | 2023-11-21 01:33:13 |
|
|
200
200
|
| tdcpg | [TDSQL-C PostgreSQL 版](https://cloud.tencent.com/document/product/1556) | 2023-06-21 01:36:25 |
|
|
201
201
|
| tdid | [分布式身份](https://cloud.tencent.com/document/product/1439) | 2023-07-24 01:49:20 |
|
|
202
|
-
| tdmq | [消息队列 TDMQ](https://cloud.tencent.com/document/product/1179) | 2023-11-
|
|
202
|
+
| tdmq | [消息队列 TDMQ](https://cloud.tencent.com/document/product/1179) | 2023-11-28 01:25:42 |
|
|
203
203
|
| tds | [设备安全](https://cloud.tencent.com/document/product/1628) | 2023-11-15 02:26:59 |
|
|
204
204
|
| tem | [弹性微服务](https://cloud.tencent.com/document/product/1371) | 2023-08-30 01:25:15 |
|
|
205
|
-
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2023-11-
|
|
205
|
+
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2023-11-28 01:26:13 |
|
|
206
206
|
| thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2023-11-27 00:20:12 |
|
|
207
207
|
| tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
|
|
208
208
|
| tic | [资源编排 TIC](https://cloud.tencent.com/document/product/1213) | 2023-08-17 05:26:08 |
|
|
@@ -214,11 +214,11 @@
|
|
|
214
214
|
| tiw | [互动白板](https://cloud.tencent.com/document/product/1137) | 2023-11-01 01:23:35 |
|
|
215
215
|
| tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2023-11-24 01:25:38 |
|
|
216
216
|
| tkgdq | [腾讯知识图谱数据查询](https://cloud.tencent.com/document/product) | 2020-03-10 00:51:44 |
|
|
217
|
-
| tms | [文本内容安全](https://cloud.tencent.com/document/product/1124) | 2023-11-
|
|
217
|
+
| tms | [文本内容安全](https://cloud.tencent.com/document/product/1124) | 2023-11-28 01:28:13 |
|
|
218
218
|
| tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2023-09-27 01:26:36 |
|
|
219
219
|
| tourism | [文旅客情大数据](https://cloud.tencent.com/document/product/1684) | 2023-08-10 01:43:37 |
|
|
220
220
|
| trdp | [流量风险决策平台](https://cloud.tencent.com/document/product/1604) | 2023-05-18 02:01:19 |
|
|
221
|
-
| trocket | [消息队列 RocketMQ 版](https://cloud.tencent.com/document/product/1493) | 2023-11-
|
|
221
|
+
| trocket | [消息队列 RocketMQ 版](https://cloud.tencent.com/document/product/1493) | 2023-11-28 01:28:19 |
|
|
222
222
|
| trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2023-10-26 14:46:10 |
|
|
223
223
|
| trro | [远程实时操控](https://cloud.tencent.com/document/product/1584) | 2023-07-18 01:53:24 |
|
|
224
224
|
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2023-11-24 01:26:16 |
|
|
@@ -229,13 +229,13 @@
|
|
|
229
229
|
| ump | [客流数字化平台](https://cloud.tencent.com/document/product/1320) | 2023-08-17 05:50:27 |
|
|
230
230
|
| vm | [视频内容安全](https://cloud.tencent.com/document/product/1265) | 2023-11-15 02:36:58 |
|
|
231
231
|
| vms | [语音消息](https://cloud.tencent.com/document/product/1128) | 2023-08-17 05:50:56 |
|
|
232
|
-
| vod | [云点播](https://cloud.tencent.com/document/product/266) | 2023-11-
|
|
233
|
-
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2023-11-
|
|
232
|
+
| vod | [云点播](https://cloud.tencent.com/document/product/266) | 2023-11-28 01:29:30 |
|
|
233
|
+
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2023-11-28 01:30:07 |
|
|
234
234
|
| vrs | [声音复刻](https://cloud.tencent.com/document/product/1283) | 2023-11-27 00:23:42 |
|
|
235
235
|
| waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2023-11-22 08:16:17 |
|
|
236
236
|
| wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2023-11-15 02:42:49 |
|
|
237
237
|
| wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2023-11-23 01:33:33 |
|
|
238
|
-
| weilingwith | [微瓴同业开放平台](https://cloud.tencent.com/document/product/1693) | 2023-11-
|
|
238
|
+
| weilingwith | [微瓴同业开放平台](https://cloud.tencent.com/document/product/1693) | 2023-11-28 01:32:20 |
|
|
239
239
|
| wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
|
|
240
240
|
| yinsuda | [音速达直播音乐版权引擎](https://cloud.tencent.com/document/product/1592) | 2023-08-10 01:50:27 |
|
|
241
241
|
| youmall | [](https://cloud.tencent.com/document/product) | 2019-01-11 11:24:15 |
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
|
|
19
19
|
import {
|
|
20
|
+
SentimentAnalysis,
|
|
20
21
|
Positions,
|
|
21
22
|
RiskDetails,
|
|
22
23
|
TextModerationRequest,
|
|
@@ -25,6 +26,7 @@ import {
|
|
|
25
26
|
Tag,
|
|
26
27
|
User,
|
|
27
28
|
Device,
|
|
29
|
+
SentimentDetail,
|
|
28
30
|
TextModerationResponse,
|
|
29
31
|
} from "./tms_models"
|
|
30
32
|
|
|
@@ -38,10 +40,10 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
/**
|
|
41
|
-
* 本接口(Text Moderation)用于提交文本内容进行智能审核任务。使用前请您使用腾讯云主账号登录控制台 [开通文本内容安全服务](https://console.cloud.tencent.com/cms
|
|
43
|
+
* 本接口(Text Moderation)用于提交文本内容进行智能审核任务。使用前请您使用腾讯云主账号登录控制台 [开通文本内容安全服务](https://console.cloud.tencent.com/cms) 并调整好对应的业务配置。
|
|
42
44
|
|
|
43
45
|
### 接口使用说明
|
|
44
|
-
- 前往“[内容安全控制台-文本内容安全](https://console.cloud.tencent.com/cms
|
|
46
|
+
- 前往“[内容安全控制台-文本内容安全](https://console.cloud.tencent.com/cms)”开启使用文本内容安全服务,首次开通服务的用户可免费领用试用套餐包,包含**3000条**文本识别额度,有效期为15天。
|
|
45
47
|
- 该接口为收费接口,计费方式敬请参见 [腾讯云文本内容安全定价](https://cloud.tencent.com/product/tms/pricing)。
|
|
46
48
|
|
|
47
49
|
### 接口功能说明:
|
|
@@ -55,7 +57,6 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
55
57
|
- 文本内容大小支持:文本原文长度不能超过unicode编码长度10000个字符;
|
|
56
58
|
- 文本审核语言支持:目前支持中文、英文、阿拉伯数字的检测;
|
|
57
59
|
- 默认接口请求频率限制:**1000次/秒**,超过该频率限制则接口会报错。
|
|
58
|
-
|
|
59
60
|
*/
|
|
60
61
|
async TextModeration(
|
|
61
62
|
req: TextModerationRequest,
|
|
@@ -15,6 +15,36 @@
|
|
|
15
15
|
* under the License.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* 情感分析结果
|
|
20
|
+
*/
|
|
21
|
+
export interface SentimentAnalysis {
|
|
22
|
+
/**
|
|
23
|
+
* 情感标签
|
|
24
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
25
|
+
*/
|
|
26
|
+
Label?: string
|
|
27
|
+
/**
|
|
28
|
+
* 标签分数,取值范围0到100
|
|
29
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30
|
+
*/
|
|
31
|
+
Score?: number
|
|
32
|
+
/**
|
|
33
|
+
* 情感分析明细
|
|
34
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35
|
+
*/
|
|
36
|
+
Detail?: SentimentDetail
|
|
37
|
+
/**
|
|
38
|
+
* 响应码,成功为"OK",失败为"InternalError"
|
|
39
|
+
*/
|
|
40
|
+
Code?: string
|
|
41
|
+
/**
|
|
42
|
+
* 异常信息
|
|
43
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
44
|
+
*/
|
|
45
|
+
Message?: string
|
|
46
|
+
}
|
|
47
|
+
|
|
18
48
|
/**
|
|
19
49
|
* 标识命中的违规关键词位置信息
|
|
20
50
|
*/
|
|
@@ -270,6 +300,22 @@ export interface Device {
|
|
|
270
300
|
IDFV?: string
|
|
271
301
|
}
|
|
272
302
|
|
|
303
|
+
/**
|
|
304
|
+
* 情感分析明细
|
|
305
|
+
*/
|
|
306
|
+
export interface SentimentDetail {
|
|
307
|
+
/**
|
|
308
|
+
* 正向分数,取值范围0到100
|
|
309
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
310
|
+
*/
|
|
311
|
+
Positive?: number
|
|
312
|
+
/**
|
|
313
|
+
* 负向分数,取值范围0到100
|
|
314
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
315
|
+
*/
|
|
316
|
+
Negative?: number
|
|
317
|
+
}
|
|
318
|
+
|
|
273
319
|
/**
|
|
274
320
|
* TextModeration返回参数结构体
|
|
275
321
|
*/
|
|
@@ -277,54 +323,59 @@ export interface TextModerationResponse {
|
|
|
277
323
|
/**
|
|
278
324
|
* 该字段用于返回请求参数中的BizType参数
|
|
279
325
|
*/
|
|
280
|
-
BizType
|
|
326
|
+
BizType?: string
|
|
281
327
|
/**
|
|
282
328
|
* 该字段用于返回检测结果(DetailResults)中所对应的**优先级最高的恶意标签**,表示模型推荐的审核结果,建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型
|
|
283
329
|
*/
|
|
284
|
-
Label
|
|
330
|
+
Label?: string
|
|
285
331
|
/**
|
|
286
332
|
* 该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示系统推荐的后续操作;建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
|
|
287
333
|
*/
|
|
288
|
-
Suggestion
|
|
334
|
+
Suggestion?: string
|
|
289
335
|
/**
|
|
290
336
|
* 该字段用于返回当前标签(Label)下被检测文本命中的关键词信息,用于标注文本违规的具体原因(如:*加我微信*)。该参数可能会有多个返回值,代表命中的多个关键词;如返回值为空且Score不为空,则代表识别结果所对应的恶意标签(Label)是来自于语义模型判断的返回值
|
|
291
337
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
292
338
|
*/
|
|
293
|
-
Keywords
|
|
339
|
+
Keywords?: Array<string>
|
|
294
340
|
/**
|
|
295
341
|
* 该字段用于返回当前标签(Label)下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高** ),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容;*色情 0*,则表明该文本不属于色情内容
|
|
296
342
|
*/
|
|
297
|
-
Score
|
|
343
|
+
Score?: number
|
|
298
344
|
/**
|
|
299
345
|
* 该字段用于返回基于文本风险库审核的详细结果,返回值信息可参阅对应数据结构(DetailResults)的详细描述
|
|
300
346
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
301
347
|
*/
|
|
302
|
-
DetailResults
|
|
348
|
+
DetailResults?: Array<DetailResults>
|
|
303
349
|
/**
|
|
304
350
|
* 该字段用于返回文本检测中存在违规风险的账号检测结果,主要包括违规风险类别和风险等级信息,具体内容可参阅对应数据结构(RiskDetails)的详细描述
|
|
305
351
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
306
352
|
*/
|
|
307
|
-
RiskDetails
|
|
353
|
+
RiskDetails?: Array<RiskDetails>
|
|
308
354
|
/**
|
|
309
355
|
* 该字段用于返回根据您的需求配置的额外附加信息(Extra),如未配置则默认返回值为空。<br>备注:不同客户或Biztype下返回信息不同,如需配置该字段请提交工单咨询或联系售后专员处理
|
|
310
356
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
311
357
|
*/
|
|
312
|
-
Extra
|
|
358
|
+
Extra?: string
|
|
313
359
|
/**
|
|
314
360
|
* 该字段用于返回检测对象对应请求参数中的DataId,与输入的DataId字段中的内容对应
|
|
315
361
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
316
362
|
*/
|
|
317
|
-
DataId
|
|
363
|
+
DataId?: string
|
|
318
364
|
/**
|
|
319
365
|
* 该字段用于返回当前标签(Label)下的二级标签。
|
|
320
366
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
321
367
|
*/
|
|
322
|
-
SubLabel
|
|
368
|
+
SubLabel?: string
|
|
323
369
|
/**
|
|
324
370
|
* 该字段用于返回上下文关联文本
|
|
325
371
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
326
372
|
*/
|
|
327
|
-
ContextText
|
|
373
|
+
ContextText?: string
|
|
374
|
+
/**
|
|
375
|
+
* 情感分析结果
|
|
376
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
377
|
+
*/
|
|
378
|
+
SentimentAnalysis?: SentimentAnalysis
|
|
328
379
|
/**
|
|
329
380
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
330
381
|
*/
|
|
@@ -7,10 +7,10 @@ import { TextModerationRequest, TextModerationResponse } from "./tms_models";
|
|
|
7
7
|
export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
8
8
|
constructor(clientConfig: TencentCloudCommon.ClientConfig);
|
|
9
9
|
/**
|
|
10
|
-
* 本接口(Text Moderation)用于提交文本内容进行智能审核任务。使用前请您使用腾讯云主账号登录控制台 [开通文本内容安全服务](https://console.cloud.tencent.com/cms
|
|
10
|
+
* 本接口(Text Moderation)用于提交文本内容进行智能审核任务。使用前请您使用腾讯云主账号登录控制台 [开通文本内容安全服务](https://console.cloud.tencent.com/cms) 并调整好对应的业务配置。
|
|
11
11
|
|
|
12
12
|
### 接口使用说明
|
|
13
|
-
- 前往“[内容安全控制台-文本内容安全](https://console.cloud.tencent.com/cms
|
|
13
|
+
- 前往“[内容安全控制台-文本内容安全](https://console.cloud.tencent.com/cms)”开启使用文本内容安全服务,首次开通服务的用户可免费领用试用套餐包,包含**3000条**文本识别额度,有效期为15天。
|
|
14
14
|
- 该接口为收费接口,计费方式敬请参见 [腾讯云文本内容安全定价](https://cloud.tencent.com/product/tms/pricing)。
|
|
15
15
|
|
|
16
16
|
### 接口功能说明:
|
|
@@ -24,7 +24,6 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
24
24
|
- 文本内容大小支持:文本原文长度不能超过unicode编码长度10000个字符;
|
|
25
25
|
- 文本审核语言支持:目前支持中文、英文、阿拉伯数字的检测;
|
|
26
26
|
- 默认接口请求频率限制:**1000次/秒**,超过该频率限制则接口会报错。
|
|
27
|
-
|
|
28
27
|
*/
|
|
29
28
|
TextModeration(req: TextModerationRequest, cb?: (error: string, rep: TextModerationResponse) => void): Promise<TextModerationResponse>;
|
|
30
29
|
}
|
|
@@ -28,10 +28,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
28
28
|
super("tms.tencentcloudapi.com", "2020-12-29", clientConfig);
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* 本接口(Text Moderation)用于提交文本内容进行智能审核任务。使用前请您使用腾讯云主账号登录控制台 [开通文本内容安全服务](https://console.cloud.tencent.com/cms
|
|
31
|
+
* 本接口(Text Moderation)用于提交文本内容进行智能审核任务。使用前请您使用腾讯云主账号登录控制台 [开通文本内容安全服务](https://console.cloud.tencent.com/cms) 并调整好对应的业务配置。
|
|
32
32
|
|
|
33
33
|
### 接口使用说明
|
|
34
|
-
- 前往“[内容安全控制台-文本内容安全](https://console.cloud.tencent.com/cms
|
|
34
|
+
- 前往“[内容安全控制台-文本内容安全](https://console.cloud.tencent.com/cms)”开启使用文本内容安全服务,首次开通服务的用户可免费领用试用套餐包,包含**3000条**文本识别额度,有效期为15天。
|
|
35
35
|
- 该接口为收费接口,计费方式敬请参见 [腾讯云文本内容安全定价](https://cloud.tencent.com/product/tms/pricing)。
|
|
36
36
|
|
|
37
37
|
### 接口功能说明:
|
|
@@ -45,7 +45,6 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
45
45
|
- 文本内容大小支持:文本原文长度不能超过unicode编码长度10000个字符;
|
|
46
46
|
- 文本审核语言支持:目前支持中文、英文、阿拉伯数字的检测;
|
|
47
47
|
- 默认接口请求频率限制:**1000次/秒**,超过该频率限制则接口会报错。
|
|
48
|
-
|
|
49
48
|
*/
|
|
50
49
|
async TextModeration(req, cb) {
|
|
51
50
|
return this.request("TextModeration", req, cb);
|
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 情感分析结果
|
|
3
|
+
*/
|
|
4
|
+
export interface SentimentAnalysis {
|
|
5
|
+
/**
|
|
6
|
+
* 情感标签
|
|
7
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8
|
+
*/
|
|
9
|
+
Label?: string;
|
|
10
|
+
/**
|
|
11
|
+
* 标签分数,取值范围0到100
|
|
12
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
13
|
+
*/
|
|
14
|
+
Score?: number;
|
|
15
|
+
/**
|
|
16
|
+
* 情感分析明细
|
|
17
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
18
|
+
*/
|
|
19
|
+
Detail?: SentimentDetail;
|
|
20
|
+
/**
|
|
21
|
+
* 响应码,成功为"OK",失败为"InternalError"
|
|
22
|
+
*/
|
|
23
|
+
Code?: string;
|
|
24
|
+
/**
|
|
25
|
+
* 异常信息
|
|
26
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
27
|
+
*/
|
|
28
|
+
Message?: string;
|
|
29
|
+
}
|
|
1
30
|
/**
|
|
2
31
|
* 标识命中的违规关键词位置信息
|
|
3
32
|
*/
|
|
@@ -245,6 +274,21 @@ export interface Device {
|
|
|
245
274
|
*/
|
|
246
275
|
IDFV?: string;
|
|
247
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* 情感分析明细
|
|
279
|
+
*/
|
|
280
|
+
export interface SentimentDetail {
|
|
281
|
+
/**
|
|
282
|
+
* 正向分数,取值范围0到100
|
|
283
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
284
|
+
*/
|
|
285
|
+
Positive?: number;
|
|
286
|
+
/**
|
|
287
|
+
* 负向分数,取值范围0到100
|
|
288
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
289
|
+
*/
|
|
290
|
+
Negative?: number;
|
|
291
|
+
}
|
|
248
292
|
/**
|
|
249
293
|
* TextModeration返回参数结构体
|
|
250
294
|
*/
|
|
@@ -252,54 +296,59 @@ export interface TextModerationResponse {
|
|
|
252
296
|
/**
|
|
253
297
|
* 该字段用于返回请求参数中的BizType参数
|
|
254
298
|
*/
|
|
255
|
-
BizType
|
|
299
|
+
BizType?: string;
|
|
256
300
|
/**
|
|
257
301
|
* 该字段用于返回检测结果(DetailResults)中所对应的**优先级最高的恶意标签**,表示模型推荐的审核结果,建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型
|
|
258
302
|
*/
|
|
259
|
-
Label
|
|
303
|
+
Label?: string;
|
|
260
304
|
/**
|
|
261
305
|
* 该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示系统推荐的后续操作;建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
|
|
262
306
|
*/
|
|
263
|
-
Suggestion
|
|
307
|
+
Suggestion?: string;
|
|
264
308
|
/**
|
|
265
309
|
* 该字段用于返回当前标签(Label)下被检测文本命中的关键词信息,用于标注文本违规的具体原因(如:*加我微信*)。该参数可能会有多个返回值,代表命中的多个关键词;如返回值为空且Score不为空,则代表识别结果所对应的恶意标签(Label)是来自于语义模型判断的返回值
|
|
266
310
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
267
311
|
*/
|
|
268
|
-
Keywords
|
|
312
|
+
Keywords?: Array<string>;
|
|
269
313
|
/**
|
|
270
314
|
* 该字段用于返回当前标签(Label)下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高** ),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容;*色情 0*,则表明该文本不属于色情内容
|
|
271
315
|
*/
|
|
272
|
-
Score
|
|
316
|
+
Score?: number;
|
|
273
317
|
/**
|
|
274
318
|
* 该字段用于返回基于文本风险库审核的详细结果,返回值信息可参阅对应数据结构(DetailResults)的详细描述
|
|
275
319
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
276
320
|
*/
|
|
277
|
-
DetailResults
|
|
321
|
+
DetailResults?: Array<DetailResults>;
|
|
278
322
|
/**
|
|
279
323
|
* 该字段用于返回文本检测中存在违规风险的账号检测结果,主要包括违规风险类别和风险等级信息,具体内容可参阅对应数据结构(RiskDetails)的详细描述
|
|
280
324
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
281
325
|
*/
|
|
282
|
-
RiskDetails
|
|
326
|
+
RiskDetails?: Array<RiskDetails>;
|
|
283
327
|
/**
|
|
284
328
|
* 该字段用于返回根据您的需求配置的额外附加信息(Extra),如未配置则默认返回值为空。<br>备注:不同客户或Biztype下返回信息不同,如需配置该字段请提交工单咨询或联系售后专员处理
|
|
285
329
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
286
330
|
*/
|
|
287
|
-
Extra
|
|
331
|
+
Extra?: string;
|
|
288
332
|
/**
|
|
289
333
|
* 该字段用于返回检测对象对应请求参数中的DataId,与输入的DataId字段中的内容对应
|
|
290
334
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
291
335
|
*/
|
|
292
|
-
DataId
|
|
336
|
+
DataId?: string;
|
|
293
337
|
/**
|
|
294
338
|
* 该字段用于返回当前标签(Label)下的二级标签。
|
|
295
339
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
296
340
|
*/
|
|
297
|
-
SubLabel
|
|
341
|
+
SubLabel?: string;
|
|
298
342
|
/**
|
|
299
343
|
* 该字段用于返回上下文关联文本
|
|
300
344
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
301
345
|
*/
|
|
302
|
-
ContextText
|
|
346
|
+
ContextText?: string;
|
|
347
|
+
/**
|
|
348
|
+
* 情感分析结果
|
|
349
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
350
|
+
*/
|
|
351
|
+
SentimentAnalysis?: SentimentAnalysis;
|
|
303
352
|
/**
|
|
304
353
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
305
354
|
*/
|