Class: TencentCloud::Nlp::V20190408::SentenceCorrectionResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Nlp::V20190408::SentenceCorrectionResponse
- Defined in:
- lib/v20190408/models.rb
Overview
SentenceCorrection返回参数结构体
Instance Attribute Summary collapse
-
#CorrectionList ⇒ Object
(注意仅展示错误句子的纠错结果,若句子无错则不展示,若全部待纠错句子都被认为无错,则可能返回数组为空).
-
#RequestId ⇒ Object
(注意仅展示错误句子的纠错结果,若句子无错则不展示,若全部待纠错句子都被认为无错,则可能返回数组为空).
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(correctionlist = nil, requestid = nil) ⇒ SentenceCorrectionResponse
constructor
A new instance of SentenceCorrectionResponse.
Constructor Details
#initialize(correctionlist = nil, requestid = nil) ⇒ SentenceCorrectionResponse
Returns a new instance of SentenceCorrectionResponse.
486 487 488 489 |
# File 'lib/v20190408/models.rb', line 486 def initialize(correctionlist=nil, requestid=nil) @CorrectionList = correctionlist @RequestId = requestid end |
Instance Attribute Details
#CorrectionList ⇒ Object
(注意仅展示错误句子的纠错结果,若句子无错则不展示,若全部待纠错句子都被认为无错,则可能返回数组为空)
484 485 486 |
# File 'lib/v20190408/models.rb', line 484 def CorrectionList @CorrectionList end |
#RequestId ⇒ Object
(注意仅展示错误句子的纠错结果,若句子无错则不展示,若全部待纠错句子都被认为无错,则可能返回数组为空)
484 485 486 |
# File 'lib/v20190408/models.rb', line 484 def RequestId @RequestId end |
Instance Method Details
#deserialize(params) ⇒ Object
491 492 493 494 495 496 497 498 499 500 501 |
# File 'lib/v20190408/models.rb', line 491 def deserialize(params) unless params['CorrectionList'].nil? @CorrectionList = [] params['CorrectionList'].each do |i| correctionitem_tmp = CorrectionItem.new correctionitem_tmp.deserialize(i) @CorrectionList << correctionitem_tmp end end @RequestId = params['RequestId'] end |