Class: TencentCloud::Ims::V20200713::LabelResult
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ims::V20200713::LabelResult
- Defined in:
- lib/v20200713/models.rb
Overview
分类模型命中结果
Instance Attribute Summary collapse
-
#Details ⇒ Object
建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过 以及令人反感、不安全或不适宜的内容类型。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Label ⇒ Object
建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过 以及令人反感、不安全或不适宜的内容类型。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Scene ⇒ Object
建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过 以及令人反感、不安全或不适宜的内容类型。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Score ⇒ Object
建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过 以及令人反感、不安全或不适宜的内容类型。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#SubLabel ⇒ Object
建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过 以及令人反感、不安全或不适宜的内容类型。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Suggestion ⇒ Object
建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过 以及令人反感、不安全或不适宜的内容类型。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(scene = nil, suggestion = nil, label = nil, sublabel = nil, score = nil, details = nil) ⇒ LabelResult
constructor
A new instance of LabelResult.
Constructor Details
#initialize(scene = nil, suggestion = nil, label = nil, sublabel = nil, score = nil, details = nil) ⇒ LabelResult
Returns a new instance of LabelResult.
277 278 279 280 281 282 283 284 |
# File 'lib/v20200713/models.rb', line 277 def initialize(scene=nil, suggestion=nil, label=nil, sublabel=nil, score=nil, details=nil) @Scene = scene @Suggestion = suggestion @Label = label @SubLabel = sublabel @Score = score @Details = details end |
Instance Attribute Details
#Details ⇒ Object
建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过以及令人反感、不安全或不适宜的内容类型。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
275 276 277 |
# File 'lib/v20200713/models.rb', line 275 def Details @Details end |
#Label ⇒ Object
建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过以及令人反感、不安全或不适宜的内容类型。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
275 276 277 |
# File 'lib/v20200713/models.rb', line 275 def Label @Label end |
#Scene ⇒ Object
建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过以及令人反感、不安全或不适宜的内容类型。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
275 276 277 |
# File 'lib/v20200713/models.rb', line 275 def Scene @Scene end |
#Score ⇒ Object
建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过以及令人反感、不安全或不适宜的内容类型。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
275 276 277 |
# File 'lib/v20200713/models.rb', line 275 def Score @Score end |
#SubLabel ⇒ Object
建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过以及令人反感、不安全或不适宜的内容类型。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
275 276 277 |
# File 'lib/v20200713/models.rb', line 275 def SubLabel @SubLabel end |
#Suggestion ⇒ Object
建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过以及令人反感、不安全或不适宜的内容类型。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
275 276 277 |
# File 'lib/v20200713/models.rb', line 275 def Suggestion @Suggestion end |
Instance Method Details
#deserialize(params) ⇒ Object
286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 |
# File 'lib/v20200713/models.rb', line 286 def deserialize(params) @Scene = params['Scene'] @Suggestion = params['Suggestion'] @Label = params['Label'] @SubLabel = params['SubLabel'] @Score = params['Score'] unless params['Details'].nil? @Details = [] params['Details'].each do |i| labeldetailitem_tmp = LabelDetailItem.new labeldetailitem_tmp.deserialize(i) @Details << labeldetailitem_tmp end end end |