Class: TencentCloud::Asr::V20190614::UpdateAsrVocabRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Asr::V20190614::UpdateAsrVocabRequest
- Defined in:
- lib/v20190614/models.rb
Overview
UpdateAsrVocab请求参数结构体
Instance Attribute Summary collapse
-
#Description ⇒ Object
当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略 (注意:如果仅更新热词表名称或者描述字段,请求不用带本参数).
-
#Name ⇒ Object
当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略 (注意:如果仅更新热词表名称或者描述字段,请求不用带本参数).
-
#VocabId ⇒ Object
当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略 (注意:如果仅更新热词表名称或者描述字段,请求不用带本参数).
-
#WordWeights ⇒ Object
当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略 (注意:如果仅更新热词表名称或者描述字段,请求不用带本参数).
-
#WordWeightStr ⇒ Object
当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略 (注意:如果仅更新热词表名称或者描述字段,请求不用带本参数).
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(vocabid = nil, name = nil, wordweights = nil, wordweightstr = nil, description = nil) ⇒ UpdateAsrVocabRequest
constructor
A new instance of UpdateAsrVocabRequest.
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
#Description ⇒ Object
当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略
(注意:如果仅更新热词表名称或者描述字段,请求不用带本参数)
1943 1944 1945 |
# File 'lib/v20190614/models.rb', line 1943 def Description @Description end |
#Name ⇒ Object
当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略
(注意:如果仅更新热词表名称或者描述字段,请求不用带本参数)
1943 1944 1945 |
# File 'lib/v20190614/models.rb', line 1943 def Name @Name end |
#VocabId ⇒ Object
当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略
(注意:如果仅更新热词表名称或者描述字段,请求不用带本参数)
1943 1944 1945 |
# File 'lib/v20190614/models.rb', line 1943 def VocabId @VocabId end |
#WordWeights ⇒ Object
当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略
(注意:如果仅更新热词表名称或者描述字段,请求不用带本参数)
1943 1944 1945 |
# File 'lib/v20190614/models.rb', line 1943 def WordWeights @WordWeights end |
#WordWeightStr ⇒ Object
当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略
(注意:如果仅更新热词表名称或者描述字段,请求不用带本参数)
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 |