Class: TencentCloud::Nlp::V20190408::ClassifyContentRequest

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

Overview

ClassifyContent请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title = nil, content = nil) ⇒ ClassifyContentRequest

Returns a new instance of ClassifyContentRequest.



140
141
142
143
# File 'lib/v20190408/models.rb', line 140

def initialize(title=nil, content=nil)
  @Title = title
  @Content = content
end

Instance Attribute Details

#ContentObject

Parameters:

  • Title:

    待分类的文章的标题(仅支持UTF-8格式,不超过100字符)。

  • Content:

    待分类文章的内容, 每个元素对应一个段落。(仅支持UTF-8格式,文章内容长度总和不超过2000字符)



138
139
140
# File 'lib/v20190408/models.rb', line 138

def Content
  @Content
end

#TitleObject

Parameters:

  • Title:

    待分类的文章的标题(仅支持UTF-8格式,不超过100字符)。

  • Content:

    待分类文章的内容, 每个元素对应一个段落。(仅支持UTF-8格式,文章内容长度总和不超过2000字符)



138
139
140
# File 'lib/v20190408/models.rb', line 138

def Title
  @Title
end

Instance Method Details

#deserialize(params) ⇒ Object



145
146
147
148
# File 'lib/v20190408/models.rb', line 145

def deserialize(params)
  @Title = params['Title']
  @Content = params['Content']
end