Class: TencentCloud::Ecc::V20181213::SentenceCom

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

Overview

批改结果按句点评的详细信息

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#SentenceObject

Parameters:

  • Suggestions:

    句子错误纠正信息

  • Sentence:

    句子信息



529
530
531
# File 'lib/v20181213/models.rb', line 529

def Sentence
  @Sentence
end

#SuggestionsObject

Parameters:

  • Suggestions:

    句子错误纠正信息

  • Sentence:

    句子信息



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