tencentcloud-sdk-ams 3.0.1009 → 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 +23 -11
- 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
|
|
@@ -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
|
|
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-03-
|
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
|