Class: TencentCloud::Tms::V20201229::SentimentDetail

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

Overview

情感分析明细

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(positive = nil, negative = nil) ⇒ SentimentDetail

Returns a new instance of SentimentDetail.



268
269
270
271
# File 'lib/v20201229/models.rb', line 268

def initialize(positive=nil, negative=nil)
  @Positive = positive
  @Negative = negative
end

Instance Attribute Details

#NegativeObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Positive:

    正向分数,取值范围0到100

  • Negative:

    负向分数,取值范围0到100



266
267
268
# File 'lib/v20201229/models.rb', line 266

def Negative
  @Negative
end

#PositiveObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Positive:

    正向分数,取值范围0到100

  • Negative:

    负向分数,取值范围0到100



266
267
268
# File 'lib/v20201229/models.rb', line 266

def Positive
  @Positive
end

Instance Method Details

#deserialize(params) ⇒ Object



273
274
275
276
# File 'lib/v20201229/models.rb', line 273

def deserialize(params)
  @Positive = params['Positive']
  @Negative = params['Negative']
end