Class: TencentCloud::Nlp::V20190408::AnalyzeSentimentRequest

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

Overview

AnalyzeSentiment请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text = nil) ⇒ AnalyzeSentimentRequest

Returns a new instance of AnalyzeSentimentRequest.



27
28
29
# File 'lib/v20190408/models.rb', line 27

def initialize(text=nil)
  @Text = text
end

Instance Attribute Details

#TextObject

Parameters:

  • Text:

    待分析的文本(仅支持UTF-8格式,不超过200字)。



25
26
27
# File 'lib/v20190408/models.rb', line 25

def Text
  @Text
end

Instance Method Details

#deserialize(params) ⇒ Object



31
32
33
# File 'lib/v20190408/models.rb', line 31

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