Class: TencentCloud::Nlp::V20190408::AnalyzeSentimentResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Nlp::V20190408::AnalyzeSentimentResponse
- Defined in:
- lib/v20190408/models.rb
Overview
AnalyzeSentiment返回参数结构体
Instance Attribute Summary collapse
-
#Negative ⇒ Object
positive:正面情感 negative:负面情感 neutral:中性、无情感.
-
#Neutral ⇒ Object
positive:正面情感 negative:负面情感 neutral:中性、无情感.
-
#Positive ⇒ Object
positive:正面情感 negative:负面情感 neutral:中性、无情感.
-
#RequestId ⇒ Object
positive:正面情感 negative:负面情感 neutral:中性、无情感.
-
#Sentiment ⇒ Object
positive:正面情感 negative:负面情感 neutral:中性、无情感.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(positive = nil, neutral = nil, negative = nil, sentiment = nil, requestid = nil) ⇒ AnalyzeSentimentResponse
constructor
A new instance of AnalyzeSentimentResponse.
Constructor Details
#initialize(positive = nil, neutral = nil, negative = nil, sentiment = nil, requestid = nil) ⇒ AnalyzeSentimentResponse
Returns a new instance of AnalyzeSentimentResponse.
54 55 56 57 58 59 60 |
# File 'lib/v20190408/models.rb', line 54 def initialize(positive=nil, neutral=nil, negative=nil, sentiment=nil, requestid=nil) @Positive = positive @Neutral = neutral @Negative = negative @Sentiment = sentiment @RequestId = requestid end |
Instance Attribute Details
#Negative ⇒ Object
positive:正面情感negative:负面情感neutral:中性、无情感
52 53 54 |
# File 'lib/v20190408/models.rb', line 52 def Negative @Negative end |
#Neutral ⇒ Object
positive:正面情感negative:负面情感neutral:中性、无情感
52 53 54 |
# File 'lib/v20190408/models.rb', line 52 def Neutral @Neutral end |
#Positive ⇒ Object
positive:正面情感negative:负面情感neutral:中性、无情感
52 53 54 |
# File 'lib/v20190408/models.rb', line 52 def Positive @Positive end |
#RequestId ⇒ Object
positive:正面情感negative:负面情感neutral:中性、无情感
52 53 54 |
# File 'lib/v20190408/models.rb', line 52 def RequestId @RequestId end |
#Sentiment ⇒ Object
positive:正面情感negative:负面情感neutral:中性、无情感
52 53 54 |
# File 'lib/v20190408/models.rb', line 52 def Sentiment @Sentiment end |
Instance Method Details
#deserialize(params) ⇒ Object
62 63 64 65 66 67 68 |
# File 'lib/v20190408/models.rb', line 62 def deserialize(params) @Positive = params['Positive'] @Neutral = params['Neutral'] @Negative = params['Negative'] @Sentiment = params['Sentiment'] @RequestId = params['RequestId'] end |