tencentcloud-sdk-tms 3.0.450 → 3.0.451
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20201229/models.rb +41 -2
- 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: d43d3c5ec83b280673e5c2baa1a3fb5ec535c9b4
|
4
|
+
data.tar.gz: 998f7d3aade29ff776679fe674f682a1eaac03c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 034b1f59418e690ea55974e8f361710bb56258b8031c6053f44f306618bee68467cc394218433178ca54c0c26f0b95e07c8739805da92903b21c80c64576da16
|
7
|
+
data.tar.gz: b7ac4af2412f7c15098ae0a9d5b883ee37a1ab2dea019e8ac4a62b721623427c79bf15db3f621da30db7cc8fc0374eef7baedb6f8165aa8020409a564275f043
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.451
|
data/lib/v20201229/models.rb
CHANGED
@@ -42,10 +42,13 @@ module TencentCloud
|
|
42
42
|
# @param SubLabel: 该字段用于返回当前标签(Label)下的二级标签。
|
43
43
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
44
44
|
# @type SubLabel: String
|
45
|
+
# @param Tags: 该字段用于返回当前一级标签(Label)下的关键词、子标签及分数。
|
46
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
47
|
+
# @type Tags: Array
|
45
48
|
|
46
|
-
attr_accessor :Label, :Suggestion, :Keywords, :Score, :LibType, :LibId, :LibName, :SubLabel
|
49
|
+
attr_accessor :Label, :Suggestion, :Keywords, :Score, :LibType, :LibId, :LibName, :SubLabel, :Tags
|
47
50
|
|
48
|
-
def initialize(label=nil, suggestion=nil, keywords=nil, score=nil, libtype=nil, libid=nil, libname=nil, sublabel=nil)
|
51
|
+
def initialize(label=nil, suggestion=nil, keywords=nil, score=nil, libtype=nil, libid=nil, libname=nil, sublabel=nil, tags=nil)
|
49
52
|
@Label = label
|
50
53
|
@Suggestion = suggestion
|
51
54
|
@Keywords = keywords
|
@@ -54,6 +57,7 @@ module TencentCloud
|
|
54
57
|
@LibId = libid
|
55
58
|
@LibName = libname
|
56
59
|
@SubLabel = sublabel
|
60
|
+
@Tags = tags
|
57
61
|
end
|
58
62
|
|
59
63
|
def deserialize(params)
|
@@ -65,6 +69,14 @@ module TencentCloud
|
|
65
69
|
@LibId = params['LibId']
|
66
70
|
@LibName = params['LibName']
|
67
71
|
@SubLabel = params['SubLabel']
|
72
|
+
unless params['Tags'].nil?
|
73
|
+
@Tags = []
|
74
|
+
params['Tags'].each do |i|
|
75
|
+
tag_tmp = Tag.new
|
76
|
+
tag_tmp.deserialize(i)
|
77
|
+
@Tags << tag_tmp
|
78
|
+
end
|
79
|
+
end
|
68
80
|
end
|
69
81
|
end
|
70
82
|
|
@@ -130,6 +142,33 @@ module TencentCloud
|
|
130
142
|
end
|
131
143
|
end
|
132
144
|
|
145
|
+
# 该字段用于返回审核结果明细字段的标签及分数
|
146
|
+
class Tag < TencentCloud::Common::AbstractModel
|
147
|
+
# @param Keyword: 该字段用于返回命中的关键词
|
148
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
149
|
+
# @type Keyword: String
|
150
|
+
# @param SubLabel: 该字段用于返回子标签
|
151
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
152
|
+
# @type SubLabel: String
|
153
|
+
# @param Score: 该字段用于返回子标签对应的分数
|
154
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
155
|
+
# @type Score: Integer
|
156
|
+
|
157
|
+
attr_accessor :Keyword, :SubLabel, :Score
|
158
|
+
|
159
|
+
def initialize(keyword=nil, sublabel=nil, score=nil)
|
160
|
+
@Keyword = keyword
|
161
|
+
@SubLabel = sublabel
|
162
|
+
@Score = score
|
163
|
+
end
|
164
|
+
|
165
|
+
def deserialize(params)
|
166
|
+
@Keyword = params['Keyword']
|
167
|
+
@SubLabel = params['SubLabel']
|
168
|
+
@Score = params['Score']
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
133
172
|
# TextModeration请求参数结构体
|
134
173
|
class TextModerationRequest < TencentCloud::Common::AbstractModel
|
135
174
|
# @param Content: 该字段表示待检测对象的文本内容,文本需要按utf-8格式编码,长度不能超过10000个字符(按unicode编码计算),并进行 Base64加密
|