Class: TencentCloud::Tms::V20201229::SentimentDetail
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tms::V20201229::SentimentDetail
- Defined in:
- lib/v20201229/models.rb
Overview
情感分析明细
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(positive = nil, negative = nil) ⇒ SentimentDetail
constructor
A new instance of SentimentDetail.
Constructor Details
#initialize(positive = nil, negative = nil) ⇒ SentimentDetail
Returns a new instance of SentimentDetail.
422 423 424 425 |
# File 'lib/v20201229/models.rb', line 422 def initialize(positive=nil, negative=nil) @Positive = positive @Negative = negative end |
Instance Attribute Details
#Negative ⇒ Object
420 421 422 |
# File 'lib/v20201229/models.rb', line 420 def Negative @Negative end |
#Positive ⇒ Object
420 421 422 |
# File 'lib/v20201229/models.rb', line 420 def Positive @Positive end |
Instance Method Details
#deserialize(params) ⇒ Object
427 428 429 430 |
# File 'lib/v20201229/models.rb', line 427 def deserialize(params) @Positive = params['Positive'] @Negative = params['Negative'] end |