Class: TencentCloud::Tms::V20201229::DetailResults
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tms::V20201229::DetailResults
- Defined in:
- lib/v20201229/models.rb
Overview
文本审核返回的详细结果
Instance Attribute Summary collapse
-
#HitInfos ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Keywords ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Label ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#LibId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#LibName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#LibType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Score ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#SubLabel ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Suggestion ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Tags ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(label = nil, suggestion = nil, keywords = nil, score = nil, libtype = nil, libid = nil, libname = nil, sublabel = nil, tags = nil, hitinfos = nil) ⇒ DetailResults
constructor
A new instance of DetailResults.
Constructor Details
#initialize(label = nil, suggestion = nil, keywords = nil, score = nil, libtype = nil, libid = nil, libname = nil, sublabel = nil, tags = nil, hitinfos = nil) ⇒ DetailResults
Returns a new instance of DetailResults.
102 103 104 105 106 107 108 109 110 111 112 113 |
# File 'lib/v20201229/models.rb', line 102 def initialize(label=nil, suggestion=nil, keywords=nil, score=nil, libtype=nil, libid=nil, libname=nil, sublabel=nil, =nil, hitinfos=nil) @Label = label @Suggestion = suggestion @Keywords = keywords @Score = score @LibType = libtype @LibId = libid @LibName = libname @SubLabel = sublabel @Tags = @HitInfos = hitinfos end |
Instance Attribute Details
#HitInfos ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
100 101 102 |
# File 'lib/v20201229/models.rb', line 100 def HitInfos @HitInfos end |
#Keywords ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
100 101 102 |
# File 'lib/v20201229/models.rb', line 100 def Keywords @Keywords end |
#Label ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
100 101 102 |
# File 'lib/v20201229/models.rb', line 100 def Label @Label end |
#LibId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
100 101 102 |
# File 'lib/v20201229/models.rb', line 100 def LibId @LibId end |
#LibName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
100 101 102 |
# File 'lib/v20201229/models.rb', line 100 def LibName @LibName end |
#LibType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
100 101 102 |
# File 'lib/v20201229/models.rb', line 100 def LibType @LibType end |
#Score ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
100 101 102 |
# File 'lib/v20201229/models.rb', line 100 def Score @Score end |
#SubLabel ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
100 101 102 |
# File 'lib/v20201229/models.rb', line 100 def SubLabel @SubLabel end |
#Suggestion ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
100 101 102 |
# File 'lib/v20201229/models.rb', line 100 def Suggestion @Suggestion end |
#Tags ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
100 101 102 |
# File 'lib/v20201229/models.rb', line 100 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/v20201229/models.rb', line 115 def deserialize(params) @Label = params['Label'] @Suggestion = params['Suggestion'] @Keywords = params['Keywords'] @Score = params['Score'] @LibType = params['LibType'] @LibId = params['LibId'] @LibName = params['LibName'] @SubLabel = params['SubLabel'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end unless params['HitInfos'].nil? @HitInfos = [] params['HitInfos'].each do |i| hitinfo_tmp = HitInfo.new hitinfo_tmp.deserialize(i) @HitInfos << hitinfo_tmp end end end |