Class: TencentCloud::Ecc::V20181213::ScoreCategory

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

Overview

四个维度的得分

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(words = nil, sentences = nil, structure = nil, content = nil, score = nil, percentage = nil) ⇒ ScoreCategory

Returns a new instance of ScoreCategory.



491
492
493
494
495
496
497
498
# File 'lib/v20181213/models.rb', line 491

def initialize(words=nil, sentences=nil, structure=nil, content=nil, score=nil, percentage=nil)
  @Words = words
  @Sentences = sentences
  @Structure = structure
  @Content = content
  @Score = score
  @Percentage = percentage
end

Instance Attribute Details

#ContentObject

Parameters:

  • Words:

    词汇维度

  • Sentences:

    句子维度

  • Structure:

    篇章结构维度

  • Content:

    内容维度

  • Score:

    维度得分

  • Percentage:

    维度分数占比



489
490
491
# File 'lib/v20181213/models.rb', line 489

def Content
  @Content
end

#PercentageObject

Parameters:

  • Words:

    词汇维度

  • Sentences:

    句子维度

  • Structure:

    篇章结构维度

  • Content:

    内容维度

  • Score:

    维度得分

  • Percentage:

    维度分数占比



489
490
491
# File 'lib/v20181213/models.rb', line 489

def Percentage
  @Percentage
end

#ScoreObject

Parameters:

  • Words:

    词汇维度

  • Sentences:

    句子维度

  • Structure:

    篇章结构维度

  • Content:

    内容维度

  • Score:

    维度得分

  • Percentage:

    维度分数占比



489
490
491
# File 'lib/v20181213/models.rb', line 489

def Score
  @Score
end

#SentencesObject

Parameters:

  • Words:

    词汇维度

  • Sentences:

    句子维度

  • Structure:

    篇章结构维度

  • Content:

    内容维度

  • Score:

    维度得分

  • Percentage:

    维度分数占比



489
490
491
# File 'lib/v20181213/models.rb', line 489

def Sentences
  @Sentences
end

#StructureObject

Parameters:

  • Words:

    词汇维度

  • Sentences:

    句子维度

  • Structure:

    篇章结构维度

  • Content:

    内容维度

  • Score:

    维度得分

  • Percentage:

    维度分数占比



489
490
491
# File 'lib/v20181213/models.rb', line 489

def Structure
  @Structure
end

#WordsObject

Parameters:

  • Words:

    词汇维度

  • Sentences:

    句子维度

  • Structure:

    篇章结构维度

  • Content:

    内容维度

  • Score:

    维度得分

  • Percentage:

    维度分数占比



489
490
491
# File 'lib/v20181213/models.rb', line 489

def Words
  @Words
end

Instance Method Details

#deserialize(params) ⇒ Object



500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
# File 'lib/v20181213/models.rb', line 500

def deserialize(params)
  unless params['Words'].nil?
    @Words = Aspect.new
    @Words.deserialize(params['Words'])
  end
  unless params['Sentences'].nil?
    @Sentences = Aspect.new
    @Sentences.deserialize(params['Sentences'])
  end
  unless params['Structure'].nil?
    @Structure = Aspect.new
    @Structure.deserialize(params['Structure'])
  end
  unless params['Content'].nil?
    @Content = Aspect.new
    @Content.deserialize(params['Content'])
  end
  @Score = params['Score']
  @Percentage = params['Percentage']
end