Class: TencentCloud::Ivld::V20210903::MultiLevelTag

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20210903/models.rb

Overview

包含多级(最多三级)标签结果,以及这些标签在识别结果中的出现位置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tagset = nil, appearinfo = nil) ⇒ MultiLevelTag

Returns a new instance of MultiLevelTag.



2213
2214
2215
2216
# File 'lib/v20210903/models.rb', line 2213

def initialize(tagset=nil, appearinfo=nil)
  @TagSet = tagset
  @AppearInfo = appearinfo
end

Instance Attribute Details

#AppearInfoObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TagSet:

    树状标签信息

  • AppearInfo:

    标签在识别结果中的定位信息



2211
2212
2213
# File 'lib/v20210903/models.rb', line 2211

def AppearInfo
  @AppearInfo
end

#TagSetObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TagSet:

    树状标签信息

  • AppearInfo:

    标签在识别结果中的定位信息



2211
2212
2213
# File 'lib/v20210903/models.rb', line 2211

def TagSet
  @TagSet
end

Instance Method Details

#deserialize(params) ⇒ Object



2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
# File 'lib/v20210903/models.rb', line 2218

def deserialize(params)
  unless params['TagSet'].nil?
    @TagSet = []
    params['TagSet'].each do |i|
      l1tag_tmp = L1Tag.new
      l1tag_tmp.deserialize(i)
      @TagSet << l1tag_tmp
    end
  end
  unless params['AppearInfo'].nil?
    @AppearInfo = AppearInfo.new
    @AppearInfo.deserialize(params['AppearInfo'])
  end
end