Class: TencentCloud::Ecc::V20181213::SentenceCom
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ecc::V20181213::SentenceCom
- Defined in:
- lib/v20181213/models.rb
Overview
批改结果按句点评的详细信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(suggestions = nil, sentence = nil) ⇒ SentenceCom
constructor
A new instance of SentenceCom.
Constructor Details
#initialize(suggestions = nil, sentence = nil) ⇒ SentenceCom
Returns a new instance of SentenceCom.
531 532 533 534 |
# File 'lib/v20181213/models.rb', line 531 def initialize(suggestions=nil, sentence=nil) @Suggestions = suggestions @Sentence = sentence end |
Instance Attribute Details
#Sentence ⇒ Object
529 530 531 |
# File 'lib/v20181213/models.rb', line 529 def Sentence @Sentence end |
#Suggestions ⇒ Object
529 530 531 |
# File 'lib/v20181213/models.rb', line 529 def Suggestions @Suggestions end |
Instance Method Details
#deserialize(params) ⇒ Object
536 537 538 539 540 541 542 543 544 545 546 547 548 549 |
# File 'lib/v20181213/models.rb', line 536 def deserialize(params) unless params['Suggestions'].nil? @Suggestions = [] params['Suggestions'].each do |i| sentencesuggest_tmp = SentenceSuggest.new sentencesuggest_tmp.deserialize(i) @Suggestions << sentencesuggest_tmp end end unless params['Sentence'].nil? @Sentence = SentenceItem.new @Sentence.deserialize(params['Sentence']) end end |