Class: TencentCloud::Nlp::V20190408::SentenceCorrectionRequest

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

Overview

SentenceCorrection请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(textlist = nil) ⇒ SentenceCorrectionRequest

Returns a new instance of SentenceCorrectionRequest.



467
468
469
# File 'lib/v20190408/models.rb', line 467

def initialize(textlist=nil)
  @TextList = textlist
end

Instance Attribute Details

#TextListObject

Parameters:

  • TextList:

    待纠错的句子列表。可以以数组方式在一次请求中填写多个待纠错的句子。文本统一使用utf-8格式编码,每个中文句子的长度不超过150字符,每个英文句子的长度不超过100个单词,且数组长度需小于30,即句子总数需少于30句。



465
466
467
# File 'lib/v20190408/models.rb', line 465

def TextList
  @TextList
end

Instance Method Details

#deserialize(params) ⇒ Object



471
472
473
# File 'lib/v20190408/models.rb', line 471

def deserialize(params)
  @TextList = params['TextList']
end