Class: TencentCloud::Cms::V20190321::DetailResult

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

Overview

文本返回的详细结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(keywords = nil, eviltype = nil, score = nil, evillabel = nil) ⇒ DetailResult

Returns a new instance of DetailResult.



512
513
514
515
516
517
# File 'lib/v20190321/models.rb', line 512

def initialize(keywords=nil, eviltype=nil, score=nil, evillabel=nil)
  @Keywords = keywords
  @EvilType = eviltype
  @Score = score
  @EvilLabel = evillabel
end

Instance Attribute Details

#EvilLabelObject

100:正常 20001:政治 20002:色情 20006:涉毒违法 20007:谩骂 20105:广告引流 24001:暴恐

Parameters:

  • Keywords:

    该标签下命中的关键词

  • EvilType:

    恶意类型

  • Score:

    该标签模型命中的分值

  • EvilLabel:

    恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词



510
511
512
# File 'lib/v20190321/models.rb', line 510

def EvilLabel
  @EvilLabel
end

#EvilTypeObject

100:正常 20001:政治 20002:色情 20006:涉毒违法 20007:谩骂 20105:广告引流 24001:暴恐

Parameters:

  • Keywords:

    该标签下命中的关键词

  • EvilType:

    恶意类型

  • Score:

    该标签模型命中的分值

  • EvilLabel:

    恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词



510
511
512
# File 'lib/v20190321/models.rb', line 510

def EvilType
  @EvilType
end

#KeywordsObject

100:正常 20001:政治 20002:色情 20006:涉毒违法 20007:谩骂 20105:广告引流 24001:暴恐

Parameters:

  • Keywords:

    该标签下命中的关键词

  • EvilType:

    恶意类型

  • Score:

    该标签模型命中的分值

  • EvilLabel:

    恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词



510
511
512
# File 'lib/v20190321/models.rb', line 510

def Keywords
  @Keywords
end

#ScoreObject

100:正常 20001:政治 20002:色情 20006:涉毒违法 20007:谩骂 20105:广告引流 24001:暴恐

Parameters:

  • Keywords:

    该标签下命中的关键词

  • EvilType:

    恶意类型

  • Score:

    该标签模型命中的分值

  • EvilLabel:

    恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词



510
511
512
# File 'lib/v20190321/models.rb', line 510

def Score
  @Score
end

Instance Method Details

#deserialize(params) ⇒ Object



519
520
521
522
523
524
# File 'lib/v20190321/models.rb', line 519

def deserialize(params)
  @Keywords = params['Keywords']
  @EvilType = params['EvilType']
  @Score = params['Score']
  @EvilLabel = params['EvilLabel']
end