Class: TencentCloud::Asr::V20190614::UpdateAsrVocabRequest

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

Overview

UpdateAsrVocab请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(vocabid = nil, name = nil, wordweights = nil, wordweightstr = nil, description = nil) ⇒ UpdateAsrVocabRequest

Returns a new instance of UpdateAsrVocabRequest.



1945
1946
1947
1948
1949
1950
1951
# File 'lib/v20190614/models.rb', line 1945

def initialize(vocabid=nil, name=nil, wordweights=nil, wordweightstr=nil, description=nil)
  @VocabId = vocabid
  @Name = name
  @WordWeights = wordweights
  @WordWeightStr = wordweightstr
  @Description = description
end

Instance Attribute Details

#DescriptionObject

当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略

(注意:如果仅更新热词表名称或者描述字段,请求不用带本参数)

Parameters:



1943
1944
1945
# File 'lib/v20190614/models.rb', line 1943

def Description
  @Description
end

#NameObject

当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略

(注意:如果仅更新热词表名称或者描述字段,请求不用带本参数)

Parameters:



1943
1944
1945
# File 'lib/v20190614/models.rb', line 1943

def Name
  @Name
end

#VocabIdObject

当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略

(注意:如果仅更新热词表名称或者描述字段,请求不用带本参数)

Parameters:



1943
1944
1945
# File 'lib/v20190614/models.rb', line 1943

def VocabId
  @VocabId
end

#WordWeightsObject

当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略

(注意:如果仅更新热词表名称或者描述字段,请求不用带本参数)

Parameters:



1943
1944
1945
# File 'lib/v20190614/models.rb', line 1943

def WordWeights
  @WordWeights
end

#WordWeightStrObject

当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略

(注意:如果仅更新热词表名称或者描述字段,请求不用带本参数)

Parameters:



1943
1944
1945
# File 'lib/v20190614/models.rb', line 1943

def WordWeightStr
  @WordWeightStr
end

Instance Method Details

#deserialize(params) ⇒ Object



1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
# File 'lib/v20190614/models.rb', line 1953

def deserialize(params)
  @VocabId = params['VocabId']
  @Name = params['Name']
  unless params['WordWeights'].nil?
    @WordWeights = []
    params['WordWeights'].each do |i|
      hotword_tmp = HotWord.new
      hotword_tmp.deserialize(i)
      @WordWeights << hotword_tmp
    end
  end
  @WordWeightStr = params['WordWeightStr']
  @Description = params['Description']
end