Class: TencentCloud::Ecc::V20181213::ScoreCategory
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ecc::V20181213::ScoreCategory
- Defined in:
- lib/v20181213/models.rb
Overview
四个维度的得分
Instance Attribute Summary collapse
- #Content ⇒ Object
- #Percentage ⇒ Object
- #Score ⇒ Object
- #Sentences ⇒ Object
- #Structure ⇒ Object
- #Words ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(words = nil, sentences = nil, structure = nil, content = nil, score = nil, percentage = nil) ⇒ ScoreCategory
constructor
A new instance of ScoreCategory.
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
#Content ⇒ Object
489 490 491 |
# File 'lib/v20181213/models.rb', line 489 def Content @Content end |
#Percentage ⇒ Object
489 490 491 |
# File 'lib/v20181213/models.rb', line 489 def Percentage @Percentage end |
#Score ⇒ Object
489 490 491 |
# File 'lib/v20181213/models.rb', line 489 def Score @Score end |
#Sentences ⇒ Object
489 490 491 |
# File 'lib/v20181213/models.rb', line 489 def Sentences @Sentences end |
#Structure ⇒ Object
489 490 491 |
# File 'lib/v20181213/models.rb', line 489 def Structure @Structure end |
#Words ⇒ Object
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 |