tencentcloud-sdk-ams 3.0.1008 → 3.0.1010
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 +93 -15
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f6cf86c7b3cddfabbf76a8789b2ef11d070a028
|
4
|
+
data.tar.gz: 41b40e3496cbf9b71d6d97d03a9b9cceb2558a64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29cb2bd06bb43f22a8431c5e05c2473e81afbbe6f58aebbe09a56a9be2871d0466bc3c9bc7f3107afe4ae1870662b27d722c2b1c555f088cd681a74301107c29
|
7
|
+
data.tar.gz: 5342ddd43e7e0df404ecf833f50c0a5e453c73e539daf3ca6ed07ca4428864c0e7fcf4ab788972f47a814cd1dfd531239f4b6dab3abcb57cb746aa70b0717317
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1010
|
data/lib/v20201229/models.rb
CHANGED
@@ -60,10 +60,14 @@ module TencentCloud
|
|
60
60
|
# @type LabelResults: Array
|
61
61
|
# @param TravelResults: 出行结果
|
62
62
|
# @type TravelResults: Array
|
63
|
+
# @param SubTag: 三级标签
|
64
|
+
# @type SubTag: String
|
65
|
+
# @param SubTagCode: 三级标签码
|
66
|
+
# @type SubTagCode: String
|
63
67
|
|
64
|
-
attr_accessor :HitFlag, :Label, :Suggestion, :Score, :Text, :Url, :Duration, :Extra, :TextResults, :MoanResults, :LanguageResults, :SubLabel, :RecognitionResults, :SpeakerResults, :LabelResults, :TravelResults
|
68
|
+
attr_accessor :HitFlag, :Label, :Suggestion, :Score, :Text, :Url, :Duration, :Extra, :TextResults, :MoanResults, :LanguageResults, :SubLabel, :RecognitionResults, :SpeakerResults, :LabelResults, :TravelResults, :SubTag, :SubTagCode
|
65
69
|
|
66
|
-
def initialize(hitflag=nil, label=nil, suggestion=nil, score=nil, text=nil, url=nil, duration=nil, extra=nil, textresults=nil, moanresults=nil, languageresults=nil, sublabel=nil, recognitionresults=nil, speakerresults=nil, labelresults=nil, travelresults=nil)
|
70
|
+
def initialize(hitflag=nil, label=nil, suggestion=nil, score=nil, text=nil, url=nil, duration=nil, extra=nil, textresults=nil, moanresults=nil, languageresults=nil, sublabel=nil, recognitionresults=nil, speakerresults=nil, labelresults=nil, travelresults=nil, subtag=nil, subtagcode=nil)
|
67
71
|
@HitFlag = hitflag
|
68
72
|
@Label = label
|
69
73
|
@Suggestion = suggestion
|
@@ -80,6 +84,8 @@ module TencentCloud
|
|
80
84
|
@SpeakerResults = speakerresults
|
81
85
|
@LabelResults = labelresults
|
82
86
|
@TravelResults = travelresults
|
87
|
+
@SubTag = subtag
|
88
|
+
@SubTagCode = subtagcode
|
83
89
|
end
|
84
90
|
|
85
91
|
def deserialize(params)
|
@@ -148,6 +154,8 @@ module TencentCloud
|
|
148
154
|
@TravelResults << travelresults_tmp
|
149
155
|
end
|
150
156
|
end
|
157
|
+
@SubTag = params['SubTag']
|
158
|
+
@SubTagCode = params['SubTagCode']
|
151
159
|
end
|
152
160
|
end
|
153
161
|
|
@@ -209,8 +217,8 @@ module TencentCloud
|
|
209
217
|
|
210
218
|
attr_accessor :Label, :Score, :StartTime, :EndTime, :SubLabelCode, :SubLabel, :Suggestion
|
211
219
|
extend Gem::Deprecate
|
212
|
-
deprecate :SubLabelCode, :none, 2025,
|
213
|
-
deprecate :SubLabelCode=, :none, 2025,
|
220
|
+
deprecate :SubLabelCode, :none, 2025, 3
|
221
|
+
deprecate :SubLabelCode=, :none, 2025, 3
|
214
222
|
|
215
223
|
def initialize(label=nil, score=nil, starttime=nil, endtime=nil, sublabelcode=nil, sublabel=nil, suggestion=nil)
|
216
224
|
@Label = label
|
@@ -268,33 +276,28 @@ module TencentCloud
|
|
268
276
|
# 音频ASR文本审核结果
|
269
277
|
class AudioResultDetailTextResult < TencentCloud::Common::AbstractModel
|
270
278
|
# @param Label: 该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。
|
271
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
272
279
|
# @type Label: String
|
273
280
|
# @param Keywords: 该字段用于返回ASR识别出的文本内容命中的关键词信息,用于标注内容违规的具体原因(如:加我微信)。该参数可能会有多个返回值,代表命中的多个关键词;若返回值为空,Score不为空,则代表识别结果所对应的恶意标签(Label)来自于语义模型判断的返回值。
|
274
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
275
281
|
# @type Keywords: Array
|
276
282
|
# @param LibId: 该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的ID,以方便自定义库管理和配置。
|
277
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
278
283
|
# @type LibId: String
|
279
284
|
# @param LibName: 该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的名称,以方便自定义库管理和配置。
|
280
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
281
285
|
# @type LibName: String
|
282
286
|
# @param Score: 该字段用于返回当前标签下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高**),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容。
|
283
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
284
287
|
# @type Score: Integer
|
285
288
|
# @param Suggestion: 该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示具体的后续建议操作。<br>
|
286
289
|
# 返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
|
287
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
288
290
|
# @type Suggestion: String
|
289
291
|
# @param LibType: 该字段用于返回自定义关键词对应的词库类型,取值为**1**(黑白库)和**2**(自定义关键词库),若未配置自定义关键词库,则默认值为1(黑白库匹配)。
|
290
292
|
# @type LibType: Integer
|
291
293
|
# @param SubLabel: 该字段用于返回当前标签(Lable)下的二级标签。
|
292
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
293
294
|
# @type SubLabel: String
|
295
|
+
# @param HitInfos: 该字段用于命中的关键词信息
|
296
|
+
# @type HitInfos: Array
|
294
297
|
|
295
|
-
attr_accessor :Label, :Keywords, :LibId, :LibName, :Score, :Suggestion, :LibType, :SubLabel
|
298
|
+
attr_accessor :Label, :Keywords, :LibId, :LibName, :Score, :Suggestion, :LibType, :SubLabel, :HitInfos
|
296
299
|
|
297
|
-
def initialize(label=nil, keywords=nil, libid=nil, libname=nil, score=nil, suggestion=nil, libtype=nil, sublabel=nil)
|
300
|
+
def initialize(label=nil, keywords=nil, libid=nil, libname=nil, score=nil, suggestion=nil, libtype=nil, sublabel=nil, hitinfos=nil)
|
298
301
|
@Label = label
|
299
302
|
@Keywords = keywords
|
300
303
|
@LibId = libid
|
@@ -303,6 +306,7 @@ module TencentCloud
|
|
303
306
|
@Suggestion = suggestion
|
304
307
|
@LibType = libtype
|
305
308
|
@SubLabel = sublabel
|
309
|
+
@HitInfos = hitinfos
|
306
310
|
end
|
307
311
|
|
308
312
|
def deserialize(params)
|
@@ -314,6 +318,14 @@ module TencentCloud
|
|
314
318
|
@Suggestion = params['Suggestion']
|
315
319
|
@LibType = params['LibType']
|
316
320
|
@SubLabel = params['SubLabel']
|
321
|
+
unless params['HitInfos'].nil?
|
322
|
+
@HitInfos = []
|
323
|
+
params['HitInfos'].each do |i|
|
324
|
+
hitinfo_tmp = HitInfo.new
|
325
|
+
hitinfo_tmp.deserialize(i)
|
326
|
+
@HitInfos << hitinfo_tmp
|
327
|
+
end
|
328
|
+
end
|
317
329
|
end
|
318
330
|
end
|
319
331
|
|
@@ -863,6 +875,41 @@ module TencentCloud
|
|
863
875
|
end
|
864
876
|
end
|
865
877
|
|
878
|
+
# 关键词命中位置信息
|
879
|
+
class HitInfo < TencentCloud::Common::AbstractModel
|
880
|
+
# @param Type: 标识模型命中还是关键词命中
|
881
|
+
# @type Type: String
|
882
|
+
# @param Keyword: 命中关键词
|
883
|
+
# @type Keyword: String
|
884
|
+
# @param LibName: 自定义词库名称
|
885
|
+
# @type LibName: String
|
886
|
+
# @param Positions: 位置信息
|
887
|
+
# @type Positions: Array
|
888
|
+
|
889
|
+
attr_accessor :Type, :Keyword, :LibName, :Positions
|
890
|
+
|
891
|
+
def initialize(type=nil, keyword=nil, libname=nil, positions=nil)
|
892
|
+
@Type = type
|
893
|
+
@Keyword = keyword
|
894
|
+
@LibName = libname
|
895
|
+
@Positions = positions
|
896
|
+
end
|
897
|
+
|
898
|
+
def deserialize(params)
|
899
|
+
@Type = params['Type']
|
900
|
+
@Keyword = params['Keyword']
|
901
|
+
@LibName = params['LibName']
|
902
|
+
unless params['Positions'].nil?
|
903
|
+
@Positions = []
|
904
|
+
params['Positions'].each do |i|
|
905
|
+
position_tmp = Position.new
|
906
|
+
position_tmp.deserialize(i)
|
907
|
+
@Positions << position_tmp
|
908
|
+
end
|
909
|
+
end
|
910
|
+
end
|
911
|
+
end
|
912
|
+
|
866
913
|
# 输入信息详情
|
867
914
|
class InputInfo < TencentCloud::Common::AbstractModel
|
868
915
|
# @param Type: 该字段表示文件访问类型,取值为**URL**(资源链接)和**COS** (腾讯云对象存储)。
|
@@ -1013,6 +1060,26 @@ module TencentCloud
|
|
1013
1060
|
end
|
1014
1061
|
end
|
1015
1062
|
|
1063
|
+
# 标识命中的违规关键词位置信息
|
1064
|
+
class Position < TencentCloud::Common::AbstractModel
|
1065
|
+
# @param Start: 关键词起始位置
|
1066
|
+
# @type Start: Integer
|
1067
|
+
# @param End: 关键词结束位置
|
1068
|
+
# @type End: Integer
|
1069
|
+
|
1070
|
+
attr_accessor :Start, :End
|
1071
|
+
|
1072
|
+
def initialize(start=nil, _end=nil)
|
1073
|
+
@Start = start
|
1074
|
+
@End = _end
|
1075
|
+
end
|
1076
|
+
|
1077
|
+
def deserialize(params)
|
1078
|
+
@Start = params['Start']
|
1079
|
+
@End = params['End']
|
1080
|
+
end
|
1081
|
+
end
|
1082
|
+
|
1016
1083
|
# 识别类标签结果信息
|
1017
1084
|
class RecognitionResult < TencentCloud::Common::AbstractModel
|
1018
1085
|
# @param Label: 可能的取值有:Teenager 、Gender
|
@@ -1372,10 +1439,12 @@ module TencentCloud
|
|
1372
1439
|
# 注意:此字段可能返回null,表示取不到有效值。
|
1373
1440
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1374
1441
|
# @type SubLabel: String
|
1442
|
+
# @param HitInfos: 该字段用于返回违规文本命中信息
|
1443
|
+
# @type HitInfos: Array
|
1375
1444
|
|
1376
|
-
attr_accessor :Label, :Keywords, :LibId, :LibName, :Score, :Suggestion, :LibType, :SubLabel
|
1445
|
+
attr_accessor :Label, :Keywords, :LibId, :LibName, :Score, :Suggestion, :LibType, :SubLabel, :HitInfos
|
1377
1446
|
|
1378
|
-
def initialize(label=nil, keywords=nil, libid=nil, libname=nil, score=nil, suggestion=nil, libtype=nil, sublabel=nil)
|
1447
|
+
def initialize(label=nil, keywords=nil, libid=nil, libname=nil, score=nil, suggestion=nil, libtype=nil, sublabel=nil, hitinfos=nil)
|
1379
1448
|
@Label = label
|
1380
1449
|
@Keywords = keywords
|
1381
1450
|
@LibId = libid
|
@@ -1384,6 +1453,7 @@ module TencentCloud
|
|
1384
1453
|
@Suggestion = suggestion
|
1385
1454
|
@LibType = libtype
|
1386
1455
|
@SubLabel = sublabel
|
1456
|
+
@HitInfos = hitinfos
|
1387
1457
|
end
|
1388
1458
|
|
1389
1459
|
def deserialize(params)
|
@@ -1395,6 +1465,14 @@ module TencentCloud
|
|
1395
1465
|
@Suggestion = params['Suggestion']
|
1396
1466
|
@LibType = params['LibType']
|
1397
1467
|
@SubLabel = params['SubLabel']
|
1468
|
+
unless params['HitInfos'].nil?
|
1469
|
+
@HitInfos = []
|
1470
|
+
params['HitInfos'].each do |i|
|
1471
|
+
hitinfo_tmp = HitInfo.new
|
1472
|
+
hitinfo_tmp.deserialize(i)
|
1473
|
+
@HitInfos << hitinfo_tmp
|
1474
|
+
end
|
1475
|
+
end
|
1398
1476
|
end
|
1399
1477
|
end
|
1400
1478
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ams
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1010
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|