tencentcloud-sdk-asr 3.0.563 → 3.0.565
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: 7017ca8915cf2515bceb482f6e2148d2c04df8e0
|
4
|
+
data.tar.gz: 85c019ebe6fd66877d02e09905d76d674e1c72c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78296ef3154c6fdbecbd70a40789cab172ce84396cbb2952f85c9eec577e6b2d7e56157511b5dc8758ebf0bf111130a6e75e490dcee3c1b8fad8a59b60d4ac66
|
7
|
+
data.tar.gz: 5a8a38b7290e52f30e909c9aa41611de03b40cbe249a0517eece1b730b00bd28a66a588f4c688c49a0636d6e70b2b0a0935621b29746d9f5ae6fd210e66865be
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.565
|
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.565
|
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-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|