tencentcloud-sdk-tms 3.0.713 → 3.0.714

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c4ee5693cf949c04a30a8cf37deb95e8bbe1020
4
- data.tar.gz: 1668b0771aa208b450efad438c75d4fbc2fbecfd
3
+ metadata.gz: d2247f3b671c265e2d36b9ea64be38dce5e13c37
4
+ data.tar.gz: 6071e15274de186a68de2dfe2275f5af9d980b36
5
5
  SHA512:
6
- metadata.gz: ec837137dd9986c580af6e203c0d221c31b70850fad0f9de0c41726ad5c7107494c51777776e1a6ca08a823eb9d464d638e5bf10552d99c8abc2bc114f0b66e0
7
- data.tar.gz: b8d84acdabd539e5ce3312cade9d200ba891ccdc612f1ef10042379be5ce0f9435faf8b08996798b798d28c35aba4f494aefa6ae34ead952d3bf567ba19946d2
6
+ metadata.gz: b2b1ee0af4f9abc3f3aff38a6687bf921e8c0e06715390c87e22cefd137c5862ae1cc57221349a3a812a69dffd6f77a5c1a01376d5cce76f95588c47359bff1c
7
+ data.tar.gz: 0fcfdd81b4763efade18cba05b6891bb4bfbce18521e488714d968a30c910c1d22e761787763d92ea0fa3e07501e9ce0331b74102345292dbbe1118c57b711d8
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.713
1
+ 3.0.714
@@ -29,10 +29,10 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
- # 本接口(Text Moderation)用于提交文本内容进行智能审核任务。使用前请您使用腾讯云主账号登录控制台 [开通文本内容安全服务](https://console.cloud.tencent.com/cms/text/package) 并调整好对应的业务配置。
32
+ # 本接口(Text Moderation)用于提交文本内容进行智能审核任务。使用前请您使用腾讯云主账号登录控制台 [开通文本内容安全服务](https://console.cloud.tencent.com/cms) 并调整好对应的业务配置。
33
33
 
34
34
  # ### 接口使用说明
35
- # - 前往“[内容安全控制台-文本内容安全](https://console.cloud.tencent.com/cms/text/package)”开启使用文本内容安全服务,首次开通服务的用户可免费领用试用套餐包,包含**1万条**文本识别额度,有效期为1个月。
35
+ # - 前往“[内容安全控制台-文本内容安全](https://console.cloud.tencent.com/cms)”开启使用文本内容安全服务,首次开通服务的用户可免费领用试用套餐包,包含**3000条**文本识别额度,有效期为15天。
36
36
  # - 该接口为收费接口,计费方式敬请参见 [腾讯云文本内容安全定价](https://cloud.tencent.com/product/tms/pricing)。
37
37
 
38
38
  # ### 接口功能说明:
@@ -215,6 +215,67 @@ module TencentCloud
215
215
  end
216
216
  end
217
217
 
218
+ # 情感分析结果
219
+ class SentimentAnalysis < TencentCloud::Common::AbstractModel
220
+ # @param Label: 情感标签
221
+ # 注意:此字段可能返回 null,表示取不到有效值。
222
+ # @type Label: String
223
+ # @param Score: 标签分数,取值范围0到100
224
+ # 注意:此字段可能返回 null,表示取不到有效值。
225
+ # @type Score: Integer
226
+ # @param Detail: 情感分析明细
227
+ # 注意:此字段可能返回 null,表示取不到有效值。
228
+ # @type Detail: :class:`Tencentcloud::Tms.v20201229.models.SentimentDetail`
229
+ # @param Code: 响应码,成功为"OK",失败为"InternalError"
230
+ # @type Code: String
231
+ # @param Message: 异常信息
232
+ # 注意:此字段可能返回 null,表示取不到有效值。
233
+ # @type Message: String
234
+
235
+ attr_accessor :Label, :Score, :Detail, :Code, :Message
236
+
237
+ def initialize(label=nil, score=nil, detail=nil, code=nil, message=nil)
238
+ @Label = label
239
+ @Score = score
240
+ @Detail = detail
241
+ @Code = code
242
+ @Message = message
243
+ end
244
+
245
+ def deserialize(params)
246
+ @Label = params['Label']
247
+ @Score = params['Score']
248
+ unless params['Detail'].nil?
249
+ @Detail = SentimentDetail.new
250
+ @Detail.deserialize(params['Detail'])
251
+ end
252
+ @Code = params['Code']
253
+ @Message = params['Message']
254
+ end
255
+ end
256
+
257
+ # 情感分析明细
258
+ class SentimentDetail < TencentCloud::Common::AbstractModel
259
+ # @param Positive: 正向分数,取值范围0到100
260
+ # 注意:此字段可能返回 null,表示取不到有效值。
261
+ # @type Positive: Integer
262
+ # @param Negative: 负向分数,取值范围0到100
263
+ # 注意:此字段可能返回 null,表示取不到有效值。
264
+ # @type Negative: Integer
265
+
266
+ attr_accessor :Positive, :Negative
267
+
268
+ def initialize(positive=nil, negative=nil)
269
+ @Positive = positive
270
+ @Negative = negative
271
+ end
272
+
273
+ def deserialize(params)
274
+ @Positive = params['Positive']
275
+ @Negative = params['Negative']
276
+ end
277
+ end
278
+
218
279
  # 该字段用于返回审核结果明细字段的标签及分数
219
280
  class Tag < TencentCloud::Common::AbstractModel
220
281
  # @param Keyword: 该字段用于返回命中的关键词
@@ -311,12 +372,15 @@ module TencentCloud
311
372
  # @param ContextText: 该字段用于返回上下文关联文本
312
373
  # 注意:此字段可能返回 null,表示取不到有效值。
313
374
  # @type ContextText: String
375
+ # @param SentimentAnalysis: 情感分析结果
376
+ # 注意:此字段可能返回 null,表示取不到有效值。
377
+ # @type SentimentAnalysis: :class:`Tencentcloud::Tms.v20201229.models.SentimentAnalysis`
314
378
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
315
379
  # @type RequestId: String
316
380
 
317
- attr_accessor :BizType, :Label, :Suggestion, :Keywords, :Score, :DetailResults, :RiskDetails, :Extra, :DataId, :SubLabel, :ContextText, :RequestId
381
+ attr_accessor :BizType, :Label, :Suggestion, :Keywords, :Score, :DetailResults, :RiskDetails, :Extra, :DataId, :SubLabel, :ContextText, :SentimentAnalysis, :RequestId
318
382
 
319
- def initialize(biztype=nil, label=nil, suggestion=nil, keywords=nil, score=nil, detailresults=nil, riskdetails=nil, extra=nil, dataid=nil, sublabel=nil, contexttext=nil, requestid=nil)
383
+ def initialize(biztype=nil, label=nil, suggestion=nil, keywords=nil, score=nil, detailresults=nil, riskdetails=nil, extra=nil, dataid=nil, sublabel=nil, contexttext=nil, sentimentanalysis=nil, requestid=nil)
320
384
  @BizType = biztype
321
385
  @Label = label
322
386
  @Suggestion = suggestion
@@ -328,6 +392,7 @@ module TencentCloud
328
392
  @DataId = dataid
329
393
  @SubLabel = sublabel
330
394
  @ContextText = contexttext
395
+ @SentimentAnalysis = sentimentanalysis
331
396
  @RequestId = requestid
332
397
  end
333
398
 
@@ -357,6 +422,10 @@ module TencentCloud
357
422
  @DataId = params['DataId']
358
423
  @SubLabel = params['SubLabel']
359
424
  @ContextText = params['ContextText']
425
+ unless params['SentimentAnalysis'].nil?
426
+ @SentimentAnalysis = SentimentAnalysis.new
427
+ @SentimentAnalysis.deserialize(params['SentimentAnalysis'])
428
+ end
360
429
  @RequestId = params['RequestId']
361
430
  end
362
431
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tms
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.713
4
+ version: 3.0.714
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud