Class: TencentCloud::Tms::V20201229::Tag

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

Overview

该字段用于返回审核结果明细字段的标签及分数

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(keyword = nil, sublabel = nil, score = nil) ⇒ Tag

Returns a new instance of Tag.



444
445
446
447
448
# File 'lib/v20201229/models.rb', line 444

def initialize(keyword=nil, sublabel=nil, score=nil)
  @Keyword = keyword
  @SubLabel = sublabel
  @Score = score
end

Instance Attribute Details

#KeywordObject

Parameters:

  • Keyword:

    该字段用于返回命中的关键词

  • SubLabel:

    该字段用于返回子标签

  • Score:

    该字段用于返回子标签对应的分数



442
443
444
# File 'lib/v20201229/models.rb', line 442

def Keyword
  @Keyword
end

#ScoreObject

Parameters:

  • Keyword:

    该字段用于返回命中的关键词

  • SubLabel:

    该字段用于返回子标签

  • Score:

    该字段用于返回子标签对应的分数



442
443
444
# File 'lib/v20201229/models.rb', line 442

def Score
  @Score
end

#SubLabelObject

Parameters:

  • Keyword:

    该字段用于返回命中的关键词

  • SubLabel:

    该字段用于返回子标签

  • Score:

    该字段用于返回子标签对应的分数



442
443
444
# File 'lib/v20201229/models.rb', line 442

def SubLabel
  @SubLabel
end

Instance Method Details

#deserialize(params) ⇒ Object



450
451
452
453
454
# File 'lib/v20201229/models.rb', line 450

def deserialize(params)
  @Keyword = params['Keyword']
  @SubLabel = params['SubLabel']
  @Score = params['Score']
end