Class: TencentCloud::Ims::V20201229::LabelDetailItem

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

Overview

用于返回分类模型命中子标签的详细结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, name = nil, score = nil) ⇒ LabelDetailItem

Returns a new instance of LabelDetailItem.



312
313
314
315
316
# File 'lib/v20201229/models.rb', line 312

def initialize(id=nil, name=nil, score=nil)
  @Id = id
  @Name = name
  @Score = score
end

Instance Attribute Details

#IdObject

Parameters:

  • Id:

    该字段用于返回识别对象的ID以方便识别和区分。

  • Name:

    该字段用于返回时命中的子标签名称。

  • Score:

    该字段用于返回对应子标签命中的分值,取值为0-100,如:*Porn-SexBehavior 99* 则代表相应识别内容命中色情-性行为标签的分值为99。



310
311
312
# File 'lib/v20201229/models.rb', line 310

def Id
  @Id
end

#NameObject

Parameters:

  • Id:

    该字段用于返回识别对象的ID以方便识别和区分。

  • Name:

    该字段用于返回时命中的子标签名称。

  • Score:

    该字段用于返回对应子标签命中的分值,取值为0-100,如:*Porn-SexBehavior 99* 则代表相应识别内容命中色情-性行为标签的分值为99。



310
311
312
# File 'lib/v20201229/models.rb', line 310

def Name
  @Name
end

#ScoreObject

Parameters:

  • Id:

    该字段用于返回识别对象的ID以方便识别和区分。

  • Name:

    该字段用于返回时命中的子标签名称。

  • Score:

    该字段用于返回对应子标签命中的分值,取值为0-100,如:*Porn-SexBehavior 99* 则代表相应识别内容命中色情-性行为标签的分值为99。



310
311
312
# File 'lib/v20201229/models.rb', line 310

def Score
  @Score
end

Instance Method Details

#deserialize(params) ⇒ Object



318
319
320
321
322
# File 'lib/v20201229/models.rb', line 318

def deserialize(params)
  @Id = params['Id']
  @Name = params['Name']
  @Score = params['Score']
end