tencentcloud-sdk-asr 3.0.563 → 3.0.566
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190614/client.rb +24 -0
- data/lib/v20190614/models.rb +39 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68d6ddc33cb7ec6d279883d93165ab130c506285
|
4
|
+
data.tar.gz: fb29ffa05978c4ec0d494c3434c4b567c2baadd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54dac6d141b53fa37ca9c705c5c9729a7303becb407a3bce948d3270f5ec3843d548d4949f6d759df110028a9e5fff4d3c80e7957bd321db76d396cbf30d119e
|
7
|
+
data.tar.gz: d04fea88f3acc7bd7924e40ba636554a47230903c1a6c4e205400ab977621dfd8473e0b10609c0a34a98fb4ec7aa7ede12a89c217d17e1f5eeb0db41274d1aed
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.566
|
data/lib/v20190614/client.rb
CHANGED
@@ -391,6 +391,30 @@ module TencentCloud
|
|
391
391
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
392
392
|
end
|
393
393
|
|
394
|
+
# 通过自学习模型id获取自学习模型详细信息
|
395
|
+
|
396
|
+
# @param request: Request instance for GetModelInfo.
|
397
|
+
# @type request: :class:`Tencentcloud::asr::V20190614::GetModelInfoRequest`
|
398
|
+
# @rtype: :class:`Tencentcloud::asr::V20190614::GetModelInfoResponse`
|
399
|
+
def GetModelInfo(request)
|
400
|
+
body = send_request('GetModelInfo', request.serialize)
|
401
|
+
response = JSON.parse(body)
|
402
|
+
if response['Response'].key?('Error') == false
|
403
|
+
model = GetModelInfoResponse.new
|
404
|
+
model.deserialize(response['Response'])
|
405
|
+
model
|
406
|
+
else
|
407
|
+
code = response['Response']['Error']['Code']
|
408
|
+
message = response['Response']['Error']['Message']
|
409
|
+
reqid = response['Response']['RequestId']
|
410
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
411
|
+
end
|
412
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
413
|
+
raise e
|
414
|
+
rescue StandardError => e
|
415
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
416
|
+
end
|
417
|
+
|
394
418
|
# 用户通过该接口可以更新自学习模型,如模型名称、模型类型、模型语料。
|
395
419
|
|
396
420
|
# @param request: Request instance for ModifyCustomization.
|
data/lib/v20190614/models.rb
CHANGED
@@ -816,6 +816,45 @@ module TencentCloud
|
|
816
816
|
end
|
817
817
|
end
|
818
818
|
|
819
|
+
# GetModelInfo请求参数结构体
|
820
|
+
class GetModelInfoRequest < TencentCloud::Common::AbstractModel
|
821
|
+
# @param ModelId: 模型id
|
822
|
+
# @type ModelId: String
|
823
|
+
|
824
|
+
attr_accessor :ModelId
|
825
|
+
|
826
|
+
def initialize(modelid=nil)
|
827
|
+
@ModelId = modelid
|
828
|
+
end
|
829
|
+
|
830
|
+
def deserialize(params)
|
831
|
+
@ModelId = params['ModelId']
|
832
|
+
end
|
833
|
+
end
|
834
|
+
|
835
|
+
# GetModelInfo返回参数结构体
|
836
|
+
class GetModelInfoResponse < TencentCloud::Common::AbstractModel
|
837
|
+
# @param Data: 模型信息
|
838
|
+
# @type Data: :class:`Tencentcloud::Asr.v20190614.models.Model`
|
839
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
840
|
+
# @type RequestId: String
|
841
|
+
|
842
|
+
attr_accessor :Data, :RequestId
|
843
|
+
|
844
|
+
def initialize(data=nil, requestid=nil)
|
845
|
+
@Data = data
|
846
|
+
@RequestId = requestid
|
847
|
+
end
|
848
|
+
|
849
|
+
def deserialize(params)
|
850
|
+
unless params['Data'].nil?
|
851
|
+
@Data = Model.new
|
852
|
+
@Data.deserialize(params['Data'])
|
853
|
+
end
|
854
|
+
@RequestId = params['RequestId']
|
855
|
+
end
|
856
|
+
end
|
857
|
+
|
819
858
|
# 热词的词和权重
|
820
859
|
class HotWord < TencentCloud::Common::AbstractModel
|
821
860
|
# @param Word: 热词
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-asr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.566
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|