tencentcloud-sdk-tms 3.0.1062 → 3.0.1063
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20201229/models.rb +15 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26b24bc18a36b24f54ab61ced180272c66d91a21
|
4
|
+
data.tar.gz: 1c6b908772993a8dcec2fccbdea38db5b67e7283
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6439a564cb61068fcb2fd830341e216ed70f6e689ad3f072c81eaa1a5f4a13808f785c5a0bc9aa9c339293a97c3f3333a9ca06211e5d7f1b31b95da70daaaf4
|
7
|
+
data.tar.gz: f16906c622be62e1c56aad20dcb9e3197a61dca7207b6f4d1f079132408192047a6d7caa521d208413134aba09c49691627ca832e6f4ee7c931be3fb5af677d6
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1063
|
data/lib/v20201229/models.rb
CHANGED
@@ -307,7 +307,8 @@ module TencentCloud
|
|
307
307
|
class TextModerationRequest < TencentCloud::Common::AbstractModel
|
308
308
|
# @param Content: 该字段表示待检测对象的文本内容,文本需要按utf-8格式编码,长度不能超过10000个字符(按unicode编码计算),并进行 Base64加密
|
309
309
|
# @type Content: String
|
310
|
-
# @param BizType:
|
310
|
+
# @param BizType: 该字段表示使用的策略的具体编号,该字段需要先在[内容安全控制台](#https://console.cloud.tencent.com/cms/clouds/manage)中配置,控制台访问地址:。
|
311
|
+
# 备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。
|
311
312
|
# @type BizType: String
|
312
313
|
# @param DataId: 该字段表示您为待检测对象分配的数据ID,传入后可方便您对文件进行标识和管理。<br>取值:由英文字母(大小写均可)、数字及四个特殊符号(_,-,@,#)组成,**长度不超过64个字符**
|
313
314
|
# @type DataId: String
|
@@ -315,18 +316,21 @@ module TencentCloud
|
|
315
316
|
# @type User: :class:`Tencentcloud::Tms.v20201229.models.User`
|
316
317
|
# @param Device: 该字段表示待检测对象对应的设备相关信息,传入后可便于甄别相应违规风险设备
|
317
318
|
# @type Device: :class:`Tencentcloud::Tms.v20201229.models.Device`
|
318
|
-
# @param SourceLanguage: Content
|
319
|
+
# @param SourceLanguage: 表示Content的原始语种,枚举值("en","zh","")en表示英文,zh表示中文,空字符表示默认语种中文,非中文场景耗时会更高,具体由送审文本内容决定,非中文场景需要联系客服确认
|
319
320
|
# @type SourceLanguage: String
|
321
|
+
# @param Type: 审核的业务类型,枚举值有{"","TEXT","TEXT_AIGC"},缺省值""和"TEXT"标识传统文本审核,"TEXT_AIGC"标识文本AIGC审核
|
322
|
+
# @type Type: String
|
320
323
|
|
321
|
-
attr_accessor :Content, :BizType, :DataId, :User, :Device, :SourceLanguage
|
324
|
+
attr_accessor :Content, :BizType, :DataId, :User, :Device, :SourceLanguage, :Type
|
322
325
|
|
323
|
-
def initialize(content=nil, biztype=nil, dataid=nil, user=nil, device=nil, sourcelanguage=nil)
|
326
|
+
def initialize(content=nil, biztype=nil, dataid=nil, user=nil, device=nil, sourcelanguage=nil, type=nil)
|
324
327
|
@Content = content
|
325
328
|
@BizType = biztype
|
326
329
|
@DataId = dataid
|
327
330
|
@User = user
|
328
331
|
@Device = device
|
329
332
|
@SourceLanguage = sourcelanguage
|
333
|
+
@Type = type
|
330
334
|
end
|
331
335
|
|
332
336
|
def deserialize(params)
|
@@ -342,6 +346,7 @@ module TencentCloud
|
|
342
346
|
@Device.deserialize(params['Device'])
|
343
347
|
end
|
344
348
|
@SourceLanguage = params['SourceLanguage']
|
349
|
+
@Type = params['Type']
|
345
350
|
end
|
346
351
|
end
|
347
352
|
|
@@ -379,12 +384,14 @@ module TencentCloud
|
|
379
384
|
# @param SentimentAnalysis: 情感分析结果
|
380
385
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
381
386
|
# @type SentimentAnalysis: :class:`Tencentcloud::Tms.v20201229.models.SentimentAnalysis`
|
387
|
+
# @param HitType: 该字段用于标识本次审核决策归因,比如text_nlp_tianji标识是由nlp tianji模型给出的审核决策,text_keyword_public标识命中了业务的关键词库
|
388
|
+
# @type HitType: String
|
382
389
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
383
390
|
# @type RequestId: String
|
384
391
|
|
385
|
-
attr_accessor :BizType, :Label, :Suggestion, :Keywords, :Score, :DetailResults, :RiskDetails, :Extra, :DataId, :SubLabel, :ContextText, :SentimentAnalysis, :RequestId
|
392
|
+
attr_accessor :BizType, :Label, :Suggestion, :Keywords, :Score, :DetailResults, :RiskDetails, :Extra, :DataId, :SubLabel, :ContextText, :SentimentAnalysis, :HitType, :RequestId
|
386
393
|
|
387
|
-
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)
|
394
|
+
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, hittype=nil, requestid=nil)
|
388
395
|
@BizType = biztype
|
389
396
|
@Label = label
|
390
397
|
@Suggestion = suggestion
|
@@ -397,6 +404,7 @@ module TencentCloud
|
|
397
404
|
@SubLabel = sublabel
|
398
405
|
@ContextText = contexttext
|
399
406
|
@SentimentAnalysis = sentimentanalysis
|
407
|
+
@HitType = hittype
|
400
408
|
@RequestId = requestid
|
401
409
|
end
|
402
410
|
|
@@ -430,6 +438,7 @@ module TencentCloud
|
|
430
438
|
@SentimentAnalysis = SentimentAnalysis.new
|
431
439
|
@SentimentAnalysis.deserialize(params['SentimentAnalysis'])
|
432
440
|
end
|
441
|
+
@HitType = params['HitType']
|
433
442
|
@RequestId = params['RequestId']
|
434
443
|
end
|
435
444
|
end
|