Class: TencentCloud::Asr::V20190614::HotWord

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

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(word = nil, weight = nil) ⇒ HotWord

Returns a new instance of HotWord.



1211
1212
1213
1214
# File 'lib/v20190614/models.rb', line 1211

def initialize(word=nil, weight=nil)
  @Word = word
  @Weight = weight
end

Instance Attribute Details

#WeightObject

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

Parameters:

  • Word:

    热词

  • Weight:

    权重



1209
1210
1211
# File 'lib/v20190614/models.rb', line 1209

def Weight
  @Weight
end

#WordObject

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

Parameters:

  • Word:

    热词

  • Weight:

    权重



1209
1210
1211
# File 'lib/v20190614/models.rb', line 1209

def Word
  @Word
end

Instance Method Details

#deserialize(params) ⇒ Object



1216
1217
1218
1219
# File 'lib/v20190614/models.rb', line 1216

def deserialize(params)
  @Word = params['Word']
  @Weight = params['Weight']
end