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.
99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/v20201229/models.rb', line 99 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,表示取不到有效值。
97 98 99 |
# File 'lib/v20201229/models.rb', line 97 def HitInfos @HitInfos end |
#Keywords ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
97 98 99 |
# File 'lib/v20201229/models.rb', line 97 def Keywords @Keywords end |
#Label ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
97 98 99 |
# File 'lib/v20201229/models.rb', line 97 def Label @Label end |
#LibId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
97 98 99 |
# File 'lib/v20201229/models.rb', line 97 def LibId @LibId end |
#LibName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
97 98 99 |
# File 'lib/v20201229/models.rb', line 97 def LibName @LibName end |
#LibType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
97 98 99 |
# File 'lib/v20201229/models.rb', line 97 def LibType @LibType end |
#Score ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
97 98 99 |
# File 'lib/v20201229/models.rb', line 97 def Score @Score end |
#SubLabel ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
97 98 99 |
# File 'lib/v20201229/models.rb', line 97 def SubLabel @SubLabel end |
#Suggestion ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
97 98 99 |
# File 'lib/v20201229/models.rb', line 97 def Suggestion @Suggestion end |
#Tags ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
97 98 99 |
# File 'lib/v20201229/models.rb', line 97 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 |
# File 'lib/v20201229/models.rb', line 112 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 |