Class: TencentCloud::Mps::V20190612::AsrHotwordsSetItem

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

Overview

单个热词信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, text = nil, weight = nil) ⇒ AsrHotwordsSetItem

Returns a new instance of AsrHotwordsSetItem.



4658
4659
4660
4661
4662
# File 'lib/v20190612/models.rb', line 4658

def initialize(id=nil, text=nil, weight=nil)
  @Id = id
  @Text = text
  @Weight = weight
end

Instance Attribute Details

#IdObject

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

Parameters:

  • Id:

    热词的序号

  • Text:

    热词文本

  • Weight:

    词语权重,取值范围 1-10,11,100



4656
4657
4658
# File 'lib/v20190612/models.rb', line 4656

def Id
  @Id
end

#TextObject

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

Parameters:

  • Id:

    热词的序号

  • Text:

    热词文本

  • Weight:

    词语权重,取值范围 1-10,11,100



4656
4657
4658
# File 'lib/v20190612/models.rb', line 4656

def Text
  @Text
end

#WeightObject

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

Parameters:

  • Id:

    热词的序号

  • Text:

    热词文本

  • Weight:

    词语权重,取值范围 1-10,11,100



4656
4657
4658
# File 'lib/v20190612/models.rb', line 4656

def Weight
  @Weight
end

Instance Method Details

#deserialize(params) ⇒ Object



4664
4665
4666
4667
4668
# File 'lib/v20190612/models.rb', line 4664

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