tencentcloud-sdk-nlp 1.0.287 → 1.0.290

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 529652c4b1034619e322de8b42551894291b3068
4
- data.tar.gz: 775bbd66f06c2972f9ad6532d6f4adf5c6847bec
3
+ metadata.gz: 7cdb6ff88e5c256707d206fa61f22d1dd5074fed
4
+ data.tar.gz: 25c7bd7cc461b8358f869e66042504f4683d9fff
5
5
  SHA512:
6
- metadata.gz: d3b9d13e965adcaa7a91cbe1187d39d79c629bd3f0977a927d7c19824580dae9396e259da10d2d739b345850efc2a639725526b55c3cb13fcc680e59a4564b59
7
- data.tar.gz: 50c7382edabb402f6da38d1a9b7d72afbd68f5d5546a3d1a0200c1bb862abeeda2d7f592a27a376d37b541c5afa9a203b06df0599b6c786fde1367e0c013b3e6
6
+ metadata.gz: bad06d6fa3c0d65bd733b25d3a6a351a73dc9e3e46a5f3492045080167433ce0f01dd6a503d6b3ce5508c813c1c291fc2490a79a3067e59ddafae7241f7915fd
7
+ data.tar.gz: 2c8ac15df50352d42023a41efb1a123174994c092ac08f615f5a9be7331b4a3b6e3833ed52711a457849c605fd5e26f2ec9cc1681177954f05dbb9cad6c424eb
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.287
1
+ 1.0.290
@@ -246,78 +246,6 @@ module TencentCloud
246
246
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
247
247
  end
248
248
 
249
- # 此接口正在维护升级,后续上线另行通知。
250
-
251
- # @param request: Request instance for DescribeEntity.
252
- # @type request: :class:`Tencentcloud::nlp::V20190408::DescribeEntityRequest`
253
- # @rtype: :class:`Tencentcloud::nlp::V20190408::DescribeEntityResponse`
254
- def DescribeEntity(request)
255
- body = send_request('DescribeEntity', request.serialize)
256
- response = JSON.parse(body)
257
- if response['Response'].key?('Error') == false
258
- model = DescribeEntityResponse.new
259
- model.deserialize(response['Response'])
260
- model
261
- else
262
- code = response['Response']['Error']['Code']
263
- message = response['Response']['Error']['Message']
264
- reqid = response['Response']['RequestId']
265
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
266
- end
267
- rescue TencentCloud::Common::TencentCloudSDKException => e
268
- raise e
269
- rescue StandardError => e
270
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
271
- end
272
-
273
- # 此接口正在维护升级,后续上线另行通知。
274
-
275
- # @param request: Request instance for DescribeRelation.
276
- # @type request: :class:`Tencentcloud::nlp::V20190408::DescribeRelationRequest`
277
- # @rtype: :class:`Tencentcloud::nlp::V20190408::DescribeRelationResponse`
278
- def DescribeRelation(request)
279
- body = send_request('DescribeRelation', request.serialize)
280
- response = JSON.parse(body)
281
- if response['Response'].key?('Error') == false
282
- model = DescribeRelationResponse.new
283
- model.deserialize(response['Response'])
284
- model
285
- else
286
- code = response['Response']['Error']['Code']
287
- message = response['Response']['Error']['Message']
288
- reqid = response['Response']['RequestId']
289
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
290
- end
291
- rescue TencentCloud::Common::TencentCloudSDKException => e
292
- raise e
293
- rescue StandardError => e
294
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
295
- end
296
-
297
- # 此接口正在维护升级,后续上线另行通知。
298
-
299
- # @param request: Request instance for DescribeTriple.
300
- # @type request: :class:`Tencentcloud::nlp::V20190408::DescribeTripleRequest`
301
- # @rtype: :class:`Tencentcloud::nlp::V20190408::DescribeTripleResponse`
302
- def DescribeTriple(request)
303
- body = send_request('DescribeTriple', request.serialize)
304
- response = JSON.parse(body)
305
- if response['Response'].key?('Error') == false
306
- model = DescribeTripleResponse.new
307
- model.deserialize(response['Response'])
308
- model
309
- else
310
- code = response['Response']['Error']['Code']
311
- message = response['Response']['Error']['Message']
312
- reqid = response['Response']['RequestId']
313
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
314
- end
315
- rescue TencentCloud::Common::TencentCloudSDKException => e
316
- raise e
317
- rescue StandardError => e
318
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
319
- end
320
-
321
249
  # 依据自定义词库的ID,查询对应的词条信息。
322
250
 
323
251
  # @param request: Request instance for DescribeWordItems.
@@ -507,132 +507,6 @@ module TencentCloud
507
507
  end
508
508
  end
509
509
 
510
- # DescribeEntity请求参数结构体
511
- class DescribeEntityRequest < TencentCloud::Common::AbstractModel
512
- # @param EntityName: 实体名称
513
- # @type EntityName: String
514
-
515
- attr_accessor :EntityName
516
-
517
- def initialize(entityname=nil)
518
- @EntityName = entityname
519
- end
520
-
521
- def deserialize(params)
522
- @EntityName = params['EntityName']
523
- end
524
- end
525
-
526
- # DescribeEntity返回参数结构体
527
- class DescribeEntityResponse < TencentCloud::Common::AbstractModel
528
- # @param Content: 返回查询实体相关信息
529
- # @type Content: String
530
- # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
531
- # @type RequestId: String
532
-
533
- attr_accessor :Content, :RequestId
534
-
535
- def initialize(content=nil, requestid=nil)
536
- @Content = content
537
- @RequestId = requestid
538
- end
539
-
540
- def deserialize(params)
541
- @Content = params['Content']
542
- @RequestId = params['RequestId']
543
- end
544
- end
545
-
546
- # DescribeRelation请求参数结构体
547
- class DescribeRelationRequest < TencentCloud::Common::AbstractModel
548
- # @param LeftEntityName: 输入第一个实体
549
- # @type LeftEntityName: String
550
- # @param RightEntityName: 输入第二个实体
551
- # @type RightEntityName: String
552
-
553
- attr_accessor :LeftEntityName, :RightEntityName
554
-
555
- def initialize(leftentityname=nil, rightentityname=nil)
556
- @LeftEntityName = leftentityname
557
- @RightEntityName = rightentityname
558
- end
559
-
560
- def deserialize(params)
561
- @LeftEntityName = params['LeftEntityName']
562
- @RightEntityName = params['RightEntityName']
563
- end
564
- end
565
-
566
- # DescribeRelation返回参数结构体
567
- class DescribeRelationResponse < TencentCloud::Common::AbstractModel
568
- # @param Content: 返回查询实体间的关系
569
- # @type Content: Array
570
- # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
571
- # @type RequestId: String
572
-
573
- attr_accessor :Content, :RequestId
574
-
575
- def initialize(content=nil, requestid=nil)
576
- @Content = content
577
- @RequestId = requestid
578
- end
579
-
580
- def deserialize(params)
581
- unless params['Content'].nil?
582
- @Content = []
583
- params['Content'].each do |i|
584
- entityrelationcontent_tmp = EntityRelationContent.new
585
- entityrelationcontent_tmp.deserialize(i)
586
- @Content << entityrelationcontent_tmp
587
- end
588
- end
589
- @RequestId = params['RequestId']
590
- end
591
- end
592
-
593
- # DescribeTriple请求参数结构体
594
- class DescribeTripleRequest < TencentCloud::Common::AbstractModel
595
- # @param TripleCondition: 三元组查询条件
596
- # @type TripleCondition: String
597
-
598
- attr_accessor :TripleCondition
599
-
600
- def initialize(triplecondition=nil)
601
- @TripleCondition = triplecondition
602
- end
603
-
604
- def deserialize(params)
605
- @TripleCondition = params['TripleCondition']
606
- end
607
- end
608
-
609
- # DescribeTriple返回参数结构体
610
- class DescribeTripleResponse < TencentCloud::Common::AbstractModel
611
- # @param Content: 返回三元组信息
612
- # @type Content: Array
613
- # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
614
- # @type RequestId: String
615
-
616
- attr_accessor :Content, :RequestId
617
-
618
- def initialize(content=nil, requestid=nil)
619
- @Content = content
620
- @RequestId = requestid
621
- end
622
-
623
- def deserialize(params)
624
- unless params['Content'].nil?
625
- @Content = []
626
- params['Content'].each do |i|
627
- triplecontent_tmp = TripleContent.new
628
- triplecontent_tmp.deserialize(i)
629
- @Content << triplecontent_tmp
630
- end
631
- end
632
- @RequestId = params['RequestId']
633
- end
634
- end
635
-
636
510
  # DescribeWordItems请求参数结构体
637
511
  class DescribeWordItemsRequest < TencentCloud::Common::AbstractModel
638
512
  # @param DictId: 自定义词库ID。
@@ -760,98 +634,6 @@ module TencentCloud
760
634
  end
761
635
  end
762
636
 
763
- # 返回的实体关系查询结果详细内容
764
- class EntityRelationContent < TencentCloud::Common::AbstractModel
765
- # @param Object: 实体关系查询返回关系的object
766
- # 注意:此字段可能返回 null,表示取不到有效值。
767
- # @type Object: Array
768
- # @param Relation: 实体关系查询返回的关系名称
769
- # 注意:此字段可能返回 null,表示取不到有效值。
770
- # @type Relation: String
771
- # @param Subject: 实体关系查询返回关系的subject
772
- # 注意:此字段可能返回 null,表示取不到有效值。
773
- # @type Subject: Array
774
-
775
- attr_accessor :Object, :Relation, :Subject
776
-
777
- def initialize(object=nil, relation=nil, subject=nil)
778
- @Object = object
779
- @Relation = relation
780
- @Subject = subject
781
- end
782
-
783
- def deserialize(params)
784
- unless params['Object'].nil?
785
- @Object = []
786
- params['Object'].each do |i|
787
- entityrelationobject_tmp = EntityRelationObject.new
788
- entityrelationobject_tmp.deserialize(i)
789
- @Object << entityrelationobject_tmp
790
- end
791
- end
792
- @Relation = params['Relation']
793
- unless params['Subject'].nil?
794
- @Subject = []
795
- params['Subject'].each do |i|
796
- entityrelationsubject_tmp = EntityRelationSubject.new
797
- entityrelationsubject_tmp.deserialize(i)
798
- @Subject << entityrelationsubject_tmp
799
- end
800
- end
801
- end
802
- end
803
-
804
- # 实体关系查询返回的Object类型
805
- class EntityRelationObject < TencentCloud::Common::AbstractModel
806
- # @param Popular: object对应popular值
807
- # 注意:此字段可能返回 null,表示取不到有效值。
808
- # @type Popular: Array
809
- # @param Id: object对应id
810
- # 注意:此字段可能返回 null,表示取不到有效值。
811
- # @type Id: Array
812
- # @param Name: object对应name
813
- # 注意:此字段可能返回 null,表示取不到有效值。
814
- # @type Name: Array
815
-
816
- attr_accessor :Popular, :Id, :Name
817
-
818
- def initialize(popular=nil, id=nil, name=nil)
819
- @Popular = popular
820
- @Id = id
821
- @Name = name
822
- end
823
-
824
- def deserialize(params)
825
- @Popular = params['Popular']
826
- @Id = params['Id']
827
- @Name = params['Name']
828
- end
829
- end
830
-
831
- # 实体关系查询返回Subject
832
- class EntityRelationSubject < TencentCloud::Common::AbstractModel
833
- # @param Popular: Subject对应popular
834
- # @type Popular: Array
835
- # @param Id: Subject对应id
836
- # @type Id: Array
837
- # @param Name: Subject对应name
838
- # @type Name: Array
839
-
840
- attr_accessor :Popular, :Id, :Name
841
-
842
- def initialize(popular=nil, id=nil, name=nil)
843
- @Popular = popular
844
- @Id = id
845
- @Name = name
846
- end
847
-
848
- def deserialize(params)
849
- @Popular = params['Popular']
850
- @Id = params['Id']
851
- @Name = params['Name']
852
- end
853
- end
854
-
855
637
  # 关键词提取结果
856
638
  class Keyword < TencentCloud::Common::AbstractModel
857
639
  # @param Score: 权重
@@ -1535,38 +1317,6 @@ module TencentCloud
1535
1317
  end
1536
1318
  end
1537
1319
 
1538
- # 三元组查询返回的元记录
1539
- class TripleContent < TencentCloud::Common::AbstractModel
1540
- # @param Popular: 实体流行度
1541
- # 注意:此字段可能返回 null,表示取不到有效值。
1542
- # @type Popular: Integer
1543
- # @param Name: 实体名称
1544
- # 注意:此字段可能返回 null,表示取不到有效值。
1545
- # @type Name: String
1546
- # @param Order: 实体order
1547
- # 注意:此字段可能返回 null,表示取不到有效值。
1548
- # @type Order: Integer
1549
- # @param Id: 实体id
1550
- # 注意:此字段可能返回 null,表示取不到有效值。
1551
- # @type Id: String
1552
-
1553
- attr_accessor :Popular, :Name, :Order, :Id
1554
-
1555
- def initialize(popular=nil, name=nil, order=nil, id=nil)
1556
- @Popular = popular
1557
- @Name = name
1558
- @Order = order
1559
- @Id = id
1560
- end
1561
-
1562
- def deserialize(params)
1563
- @Popular = params['Popular']
1564
- @Name = params['Name']
1565
- @Order = params['Order']
1566
- @Id = params['Id']
1567
- end
1568
- end
1569
-
1570
1320
  # UpdateDict请求参数结构体
1571
1321
  class UpdateDictRequest < TencentCloud::Common::AbstractModel
1572
1322
  # @param DictId: 自定义词库ID。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-nlp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.287
4
+ version: 1.0.290
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-29 00:00:00.000000000 Z
11
+ date: 2022-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common