tencentcloud-sdk-nlp 3.0.1094 → 3.0.1098

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77663fc58730f00e7c863b5b896809a963857b77
4
- data.tar.gz: d75ce912bcac0a94cb9fed68d73cd952a81f2da4
3
+ metadata.gz: 3ff48997819e0ee43db4a937140b611800a0f4b2
4
+ data.tar.gz: 770cc92b66dd9eaab6044d3ab55d8516caacf50e
5
5
  SHA512:
6
- metadata.gz: 39dca307713b5152f86911ee174feb063cdd7dbf5dfeb1f776bf0d62d10e903256fd619c9e18fd27072c01ec9ba7c6a20dcd5664bfab04a63b5aa420b0095d6f
7
- data.tar.gz: b5202e0a80a6e807f396fc442ae19bb74f52c5f21eaecd5b0102243ecff8075e6bd98974d11afa5c7da51f7bcd957ff393997719aa7774e56a0f0b6ac14e8410
6
+ metadata.gz: 722cacdd0d50c07a15022d59047cb15d670d24c6c15fe52e43603f4565095e93ced70fc9d247606882db5a703d187a636cf574dcd6eaf1ce1d7e1c326bc9a8f4
7
+ data.tar.gz: adfbb19271d4861cb7d3c98f1c18e3a9be05ec94b680f1e35ef3139913853ea0b38b0fb9862df2dd3cecac46dfaa83f90e22a57c9a1722b046400b30b5dd2d8d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1094
1
+ 3.0.1098
@@ -101,30 +101,6 @@ module TencentCloud
101
101
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
102
  end
103
103
 
104
- # 诗词生成接口利用现代的自然语言处理和深度学习技术,模仿了古代著名诗人的风格,为用户产生独特的诗词。用户只需输入的命题关键词,接口就能自动生成一首七言律诗或五言律诗。
105
-
106
- # @param request: Request instance for ComposePoetry.
107
- # @type request: :class:`Tencentcloud::nlp::V20190408::ComposePoetryRequest`
108
- # @rtype: :class:`Tencentcloud::nlp::V20190408::ComposePoetryResponse`
109
- def ComposePoetry(request)
110
- body = send_request('ComposePoetry', request.serialize)
111
- response = JSON.parse(body)
112
- if response['Response'].key?('Error') == false
113
- model = ComposePoetryResponse.new
114
- model.deserialize(response['Response'])
115
- model
116
- else
117
- code = response['Response']['Error']['Code']
118
- message = response['Response']['Error']['Message']
119
- reqid = response['Response']['RequestId']
120
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
- end
122
- rescue TencentCloud::Common::TencentCloudSDKException => e
123
- raise e
124
- rescue StandardError => e
125
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
- end
127
-
128
104
  # 通过计算句子间的语义相似性,帮助您快速找到文本中重复或相似的句子,用于文本聚类、相似问题检索等应用场景。
129
105
 
130
106
  # @param request: Request instance for EvaluateSentenceSimilarity.
@@ -149,54 +125,6 @@ module TencentCloud
149
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
126
  end
151
127
 
152
- # 评估两个词语在语义空间的相似程度,为您的场景应用提供有力支持,如关键词过滤、热门话题挖掘等。(目前仅支持中文)
153
-
154
- # @param request: Request instance for EvaluateWordSimilarity.
155
- # @type request: :class:`Tencentcloud::nlp::V20190408::EvaluateWordSimilarityRequest`
156
- # @rtype: :class:`Tencentcloud::nlp::V20190408::EvaluateWordSimilarityResponse`
157
- def EvaluateWordSimilarity(request)
158
- body = send_request('EvaluateWordSimilarity', request.serialize)
159
- response = JSON.parse(body)
160
- if response['Response'].key?('Error') == false
161
- model = EvaluateWordSimilarityResponse.new
162
- model.deserialize(response['Response'])
163
- model
164
- else
165
- code = response['Response']['Error']['Code']
166
- message = response['Response']['Error']['Message']
167
- reqid = response['Response']['RequestId']
168
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
- end
170
- rescue TencentCloud::Common::TencentCloudSDKException => e
171
- raise e
172
- rescue StandardError => e
173
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
- end
175
-
176
- # 根据提供的关键词,生成简洁明了的关键句子,便于用户快速获取核心观点。
177
-
178
- # @param request: Request instance for GenerateKeywordSentence.
179
- # @type request: :class:`Tencentcloud::nlp::V20190408::GenerateKeywordSentenceRequest`
180
- # @rtype: :class:`Tencentcloud::nlp::V20190408::GenerateKeywordSentenceResponse`
181
- def GenerateKeywordSentence(request)
182
- body = send_request('GenerateKeywordSentence', request.serialize)
183
- response = JSON.parse(body)
184
- if response['Response'].key?('Error') == false
185
- model = GenerateKeywordSentenceResponse.new
186
- model.deserialize(response['Response'])
187
- model
188
- else
189
- code = response['Response']['Error']['Code']
190
- message = response['Response']['Error']['Message']
191
- reqid = response['Response']['RequestId']
192
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
- end
194
- rescue TencentCloud::Common::TencentCloudSDKException => e
195
- raise e
196
- rescue StandardError => e
197
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
- end
199
-
200
128
  # 通过精准地对文本进行分词、词性标注、命名实体识别等功能,助您更好地理解文本内容,挖掘出潜在的价值信息。
201
129
 
202
130
  # @param request: Request instance for ParseWords.
@@ -221,30 +149,6 @@ module TencentCloud
221
149
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
150
  end
223
151
 
224
- # 基于大数据和深度学习技术,可以快速地找到与给定词语高度相似的其他词语,有助于提高搜索和推荐的准确性。(目前仅支持中文)
225
-
226
- # @param request: Request instance for RetrieveSimilarWords.
227
- # @type request: :class:`Tencentcloud::nlp::V20190408::RetrieveSimilarWordsRequest`
228
- # @rtype: :class:`Tencentcloud::nlp::V20190408::RetrieveSimilarWordsResponse`
229
- def RetrieveSimilarWords(request)
230
- body = send_request('RetrieveSimilarWords', request.serialize)
231
- response = JSON.parse(body)
232
- if response['Response'].key?('Error') == false
233
- model = RetrieveSimilarWordsResponse.new
234
- model.deserialize(response['Response'])
235
- model
236
- else
237
- code = response['Response']['Error']['Code']
238
- message = response['Response']['Error']['Message']
239
- reqid = response['Response']['RequestId']
240
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
241
- end
242
- rescue TencentCloud::Common::TencentCloudSDKException => e
243
- raise e
244
- rescue StandardError => e
245
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
- end
247
-
248
152
  # 智能识别并纠正句子中的语法、拼写、用词等错误,确保文本的准确性和可读性。
249
153
 
250
154
  # @param request: Request instance for SentenceCorrection.
@@ -269,54 +173,6 @@ module TencentCloud
269
173
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
174
  end
271
175
 
272
- # 运用先进的自然语言处理技术,对原始文本进行优化润色,提升文本的通顺性、表达力和语言质量。
273
-
274
- # @param request: Request instance for TextEmbellish.
275
- # @type request: :class:`Tencentcloud::nlp::V20190408::TextEmbellishRequest`
276
- # @rtype: :class:`Tencentcloud::nlp::V20190408::TextEmbellishResponse`
277
- def TextEmbellish(request)
278
- body = send_request('TextEmbellish', request.serialize)
279
- response = JSON.parse(body)
280
- if response['Response'].key?('Error') == false
281
- model = TextEmbellishResponse.new
282
- model.deserialize(response['Response'])
283
- model
284
- else
285
- code = response['Response']['Error']['Code']
286
- message = response['Response']['Error']['Message']
287
- reqid = response['Response']['RequestId']
288
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
289
- end
290
- rescue TencentCloud::Common::TencentCloudSDKException => e
291
- raise e
292
- rescue StandardError => e
293
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
- end
295
-
296
- # 通过自动补全文本片段,帮助用户快速生成高质量、连贯的完整文本,提高创作效率。
297
-
298
- # @param request: Request instance for TextWriting.
299
- # @type request: :class:`Tencentcloud::nlp::V20190408::TextWritingRequest`
300
- # @rtype: :class:`Tencentcloud::nlp::V20190408::TextWritingResponse`
301
- def TextWriting(request)
302
- body = send_request('TextWriting', request.serialize)
303
- response = JSON.parse(body)
304
- if response['Response'].key?('Error') == false
305
- model = TextWritingResponse.new
306
- model.deserialize(response['Response'])
307
- model
308
- else
309
- code = response['Response']['Error']['Code']
310
- message = response['Response']['Error']['Message']
311
- reqid = response['Response']['RequestId']
312
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
313
- end
314
- rescue TencentCloud::Common::TencentCloudSDKException => e
315
- raise e
316
- rescue StandardError => e
317
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
- end
319
-
320
176
 
321
177
  end
322
178
  end
@@ -234,54 +234,6 @@ module TencentCloud
234
234
  end
235
235
  end
236
236
 
237
- # ComposePoetry请求参数结构体
238
- class ComposePoetryRequest < TencentCloud::Common::AbstractModel
239
- # @param Text: 生成诗词的关键词。
240
- # @type Text: String
241
- # @param PoetryType: 生成诗词的类型。0:藏头或藏身;1:藏头;2:藏身。默认为0。
242
- # @type PoetryType: Integer
243
- # @param Genre: 诗的体裁。0:五言律诗或七言律诗;5:五言律诗;7:七言律诗。默认为0。
244
- # @type Genre: Integer
245
-
246
- attr_accessor :Text, :PoetryType, :Genre
247
-
248
- def initialize(text=nil, poetrytype=nil, genre=nil)
249
- @Text = text
250
- @PoetryType = poetrytype
251
- @Genre = genre
252
- end
253
-
254
- def deserialize(params)
255
- @Text = params['Text']
256
- @PoetryType = params['PoetryType']
257
- @Genre = params['Genre']
258
- end
259
- end
260
-
261
- # ComposePoetry返回参数结构体
262
- class ComposePoetryResponse < TencentCloud::Common::AbstractModel
263
- # @param Title: 诗题,即输入的生成诗词的关键词。
264
- # @type Title: String
265
- # @param Content: 诗的内容。
266
- # @type Content: Array
267
- # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
268
- # @type RequestId: String
269
-
270
- attr_accessor :Title, :Content, :RequestId
271
-
272
- def initialize(title=nil, content=nil, requestid=nil)
273
- @Title = title
274
- @Content = content
275
- @RequestId = requestid
276
- end
277
-
278
- def deserialize(params)
279
- @Title = params['Title']
280
- @Content = params['Content']
281
- @RequestId = params['RequestId']
282
- end
283
- end
284
-
285
237
  # 复合粒度分词和词性标注的结果。
286
238
  class CompoundParticiple < TencentCloud::Common::AbstractModel
287
239
  # @param Word: 基础词。
@@ -361,34 +313,6 @@ module TencentCloud
361
313
  end
362
314
  end
363
315
 
364
- # 文本润色结果
365
- class Embellish < TencentCloud::Common::AbstractModel
366
- # @param Text: 润色后的文本。
367
- # 注意:此字段可能返回 null,表示取不到有效值。
368
- # @type Text: String
369
- # @param EmbellishType: 润色类型。类型如下:
370
- # expansion:扩写
371
- # rewriting:改写
372
- # translation_m2a:从现代文改写为古文
373
- # translation_a2m:从古文改写为现代文
374
-
375
-
376
- # 注意:此字段可能返回 null,表示取不到有效值。
377
- # @type EmbellishType: String
378
-
379
- attr_accessor :Text, :EmbellishType
380
-
381
- def initialize(text=nil, embellishtype=nil)
382
- @Text = text
383
- @EmbellishType = embellishtype
384
- end
385
-
386
- def deserialize(params)
387
- @Text = params['Text']
388
- @EmbellishType = params['EmbellishType']
389
- end
390
- end
391
-
392
316
  # 实体识别结果。
393
317
  class Entity < TencentCloud::Common::AbstractModel
394
318
  # @param Word: 基础词。
@@ -464,117 +388,6 @@ module TencentCloud
464
388
  end
465
389
  end
466
390
 
467
- # EvaluateWordSimilarity请求参数结构体
468
- class EvaluateWordSimilarityRequest < TencentCloud::Common::AbstractModel
469
- # @param SourceWord: 计算相似度的源词。(仅支持UTF-8格式,不超过10字符)
470
- # @type SourceWord: String
471
- # @param TargetWord: 计算相似度的目标词。(仅支持UTF-8格式,不超过10字符)
472
- # @type TargetWord: String
473
-
474
- attr_accessor :SourceWord, :TargetWord
475
-
476
- def initialize(sourceword=nil, targetword=nil)
477
- @SourceWord = sourceword
478
- @TargetWord = targetword
479
- end
480
-
481
- def deserialize(params)
482
- @SourceWord = params['SourceWord']
483
- @TargetWord = params['TargetWord']
484
- end
485
- end
486
-
487
- # EvaluateWordSimilarity返回参数结构体
488
- class EvaluateWordSimilarityResponse < TencentCloud::Common::AbstractModel
489
- # @param Similarity: 词相似度分值。
490
- # @type Similarity: Float
491
- # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
492
- # @type RequestId: String
493
-
494
- attr_accessor :Similarity, :RequestId
495
-
496
- def initialize(similarity=nil, requestid=nil)
497
- @Similarity = similarity
498
- @RequestId = requestid
499
- end
500
-
501
- def deserialize(params)
502
- @Similarity = params['Similarity']
503
- @RequestId = params['RequestId']
504
- end
505
- end
506
-
507
- # GenerateKeywordSentence请求参数结构体
508
- class GenerateKeywordSentenceRequest < TencentCloud::Common::AbstractModel
509
- # @param WordList: 生成句子的关键词,关键词个数需不超过4个,中文关键词长度应不超过10字符,英文关键词长度不超过3个单词。关键词中不可包含标点符号。
510
- # @type WordList: Array
511
- # @param Number: 返回生成句子的个数。数量需>=1且<=5。
512
- # (注意实际结果可能小于指定个数)
513
- # @type Number: Integer
514
- # @param Domain: 指定生成句子的领域,支持领域如下:
515
- # general:通用领域,支持中英文
516
- # academic:学术领域,仅支持英文
517
- # 默认为general(通用领域)。
518
- # @type Domain: String
519
-
520
- attr_accessor :WordList, :Number, :Domain
521
-
522
- def initialize(wordlist=nil, number=nil, domain=nil)
523
- @WordList = wordlist
524
- @Number = number
525
- @Domain = domain
526
- end
527
-
528
- def deserialize(params)
529
- @WordList = params['WordList']
530
- @Number = params['Number']
531
- @Domain = params['Domain']
532
- end
533
- end
534
-
535
- # GenerateKeywordSentence返回参数结构体
536
- class GenerateKeywordSentenceResponse < TencentCloud::Common::AbstractModel
537
- # @param KeywordSentenceList: 生成的句子列表。
538
- # @type KeywordSentenceList: Array
539
- # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
540
- # @type RequestId: String
541
-
542
- attr_accessor :KeywordSentenceList, :RequestId
543
-
544
- def initialize(keywordsentencelist=nil, requestid=nil)
545
- @KeywordSentenceList = keywordsentencelist
546
- @RequestId = requestid
547
- end
548
-
549
- def deserialize(params)
550
- unless params['KeywordSentenceList'].nil?
551
- @KeywordSentenceList = []
552
- params['KeywordSentenceList'].each do |i|
553
- keywordsentence_tmp = KeywordSentence.new
554
- keywordsentence_tmp.deserialize(i)
555
- @KeywordSentenceList << keywordsentence_tmp
556
- end
557
- end
558
- @RequestId = params['RequestId']
559
- end
560
- end
561
-
562
- # 通过关键词生成的句子信息
563
- class KeywordSentence < TencentCloud::Common::AbstractModel
564
- # @param TargetText: 通过关键词生成的句子。
565
- # @type TargetText: String
566
-
567
- attr_accessor :TargetText
568
-
569
- def initialize(targettext=nil)
570
- @TargetText = targettext
571
- end
572
-
573
- def deserialize(params)
574
- @TargetText = params['TargetText']
575
- end
576
- end
577
-
578
391
  # ParseWords请求参数结构体
579
392
  class ParseWordsRequest < TencentCloud::Common::AbstractModel
580
393
  # @param Text: 待分析的文本(支持中英文文本,不超过500字符)
@@ -644,46 +457,6 @@ module TencentCloud
644
457
  end
645
458
  end
646
459
 
647
- # RetrieveSimilarWords请求参数结构体
648
- class RetrieveSimilarWordsRequest < TencentCloud::Common::AbstractModel
649
- # @param Text: 输入的词语。(仅支持UTF-8格式,不超过10字符)
650
- # @type Text: String
651
- # @param Number: 召回的相似词个数,取值范围为1-20。
652
- # @type Number: Integer
653
-
654
- attr_accessor :Text, :Number
655
-
656
- def initialize(text=nil, number=nil)
657
- @Text = text
658
- @Number = number
659
- end
660
-
661
- def deserialize(params)
662
- @Text = params['Text']
663
- @Number = params['Number']
664
- end
665
- end
666
-
667
- # RetrieveSimilarWords返回参数结构体
668
- class RetrieveSimilarWordsResponse < TencentCloud::Common::AbstractModel
669
- # @param WordList: 召回的相似词数组。
670
- # @type WordList: Array
671
- # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
672
- # @type RequestId: String
673
-
674
- attr_accessor :WordList, :RequestId
675
-
676
- def initialize(wordlist=nil, requestid=nil)
677
- @WordList = wordlist
678
- @RequestId = requestid
679
- end
680
-
681
- def deserialize(params)
682
- @WordList = params['WordList']
683
- @RequestId = params['RequestId']
684
- end
685
- end
686
-
687
460
  # SentenceCorrection请求参数结构体
688
461
  class SentenceCorrectionRequest < TencentCloud::Common::AbstractModel
689
462
  # @param TextList: 待纠错的句子列表。可以以数组方式在一次请求中填写多个待纠错的句子。文本统一使用utf-8格式编码,每个中文句子的长度不超过150字符,每个英文句子的长度不超过100个单词,且数组长度需小于30,即句子总数需少于30句。
@@ -748,160 +521,6 @@ module TencentCloud
748
521
  end
749
522
  end
750
523
 
751
- # TextEmbellish请求参数结构体
752
- class TextEmbellishRequest < TencentCloud::Common::AbstractModel
753
- # @param Text: 待润色的文本。中文文本长度需<=50字符;英文文本长度需<=30个单词。
754
- # @type Text: String
755
- # @param SourceLang: 待润色文本的语言类型,支持语言如下:
756
- # zh:中文
757
- # en:英文
758
- # @type SourceLang: String
759
- # @param Number: 返回润色结果的个数。数量需>=1且<=5。
760
- # (注意实际结果可能小于指定个数)
761
- # @type Number: Integer
762
- # @param Style: 控制润色类型,类型如下:
763
- # both:同时返回改写和扩写
764
- # expansion:扩写
765
- # rewriting:改写
766
- # m2a:从现代文改写为古文
767
- # a2m:从古文改写为现代文
768
- # 默认为both。
769
- # @type Style: String
770
-
771
- attr_accessor :Text, :SourceLang, :Number, :Style
772
-
773
- def initialize(text=nil, sourcelang=nil, number=nil, style=nil)
774
- @Text = text
775
- @SourceLang = sourcelang
776
- @Number = number
777
- @Style = style
778
- end
779
-
780
- def deserialize(params)
781
- @Text = params['Text']
782
- @SourceLang = params['SourceLang']
783
- @Number = params['Number']
784
- @Style = params['Style']
785
- end
786
- end
787
-
788
- # TextEmbellish返回参数结构体
789
- class TextEmbellishResponse < TencentCloud::Common::AbstractModel
790
- # @param EmbellishList: 润色结果列表。
791
- # @type EmbellishList: Array
792
- # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
793
- # @type RequestId: String
794
-
795
- attr_accessor :EmbellishList, :RequestId
796
-
797
- def initialize(embellishlist=nil, requestid=nil)
798
- @EmbellishList = embellishlist
799
- @RequestId = requestid
800
- end
801
-
802
- def deserialize(params)
803
- unless params['EmbellishList'].nil?
804
- @EmbellishList = []
805
- params['EmbellishList'].each do |i|
806
- embellish_tmp = Embellish.new
807
- embellish_tmp.deserialize(i)
808
- @EmbellishList << embellish_tmp
809
- end
810
- end
811
- @RequestId = params['RequestId']
812
- end
813
- end
814
-
815
- # TextWriting请求参数结构体
816
- class TextWritingRequest < TencentCloud::Common::AbstractModel
817
- # @param Text: 待续写的句子,文本统一使用utf-8格式编码,长度不超过200字符。
818
- # @type Text: String
819
- # @param SourceLang: 待续写文本的语言类型,支持语言如下:
820
- # zh:中文
821
- # en:英文
822
- # @type SourceLang: String
823
- # @param Number: 返回续写结果的个数。数量需>=1且<=5。
824
- # (注意实际结果可能小于指定个数)
825
- # @type Number: Integer
826
- # @param Domain: 指定续写领域,支持领域如下:
827
- # general:通用领域,支持中英文补全
828
- # academic:学术领域,仅支持英文补全
829
- # 默认为general(通用领域)。
830
- # @type Domain: String
831
- # @param Style: 指定续写风格,支持风格如下:
832
- # science_fiction:科幻
833
- # military_history:军事
834
- # xuanhuan_wuxia:武侠
835
- # urban_officialdom:职场
836
- # 默认为xuanhuan_wuxia(武侠)。
837
- # @type Style: String
838
-
839
- attr_accessor :Text, :SourceLang, :Number, :Domain, :Style
840
-
841
- def initialize(text=nil, sourcelang=nil, number=nil, domain=nil, style=nil)
842
- @Text = text
843
- @SourceLang = sourcelang
844
- @Number = number
845
- @Domain = domain
846
- @Style = style
847
- end
848
-
849
- def deserialize(params)
850
- @Text = params['Text']
851
- @SourceLang = params['SourceLang']
852
- @Number = params['Number']
853
- @Domain = params['Domain']
854
- @Style = params['Style']
855
- end
856
- end
857
-
858
- # TextWriting返回参数结构体
859
- class TextWritingResponse < TencentCloud::Common::AbstractModel
860
- # @param WritingList: 续写结果列表。
861
- # @type WritingList: Array
862
- # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
863
- # @type RequestId: String
864
-
865
- attr_accessor :WritingList, :RequestId
866
-
867
- def initialize(writinglist=nil, requestid=nil)
868
- @WritingList = writinglist
869
- @RequestId = requestid
870
- end
871
-
872
- def deserialize(params)
873
- unless params['WritingList'].nil?
874
- @WritingList = []
875
- params['WritingList'].each do |i|
876
- writing_tmp = Writing.new
877
- writing_tmp.deserialize(i)
878
- @WritingList << writing_tmp
879
- end
880
- end
881
- @RequestId = params['RequestId']
882
- end
883
- end
884
-
885
- # 文本续写结果
886
- class Writing < TencentCloud::Common::AbstractModel
887
- # @param TargetText: 续写的文本。
888
- # @type TargetText: String
889
- # @param PrefixText: 续写的前缀。
890
- # @type PrefixText: String
891
-
892
- attr_accessor :TargetText, :PrefixText
893
-
894
- def initialize(targettext=nil, prefixtext=nil)
895
- @TargetText = targettext
896
- @PrefixText = prefixtext
897
- end
898
-
899
- def deserialize(params)
900
- @TargetText = params['TargetText']
901
- @PrefixText = params['PrefixText']
902
- end
903
- end
904
-
905
524
  end
906
525
  end
907
526
  end
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: 3.0.1094
4
+ version: 3.0.1098
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-05 00:00:00.000000000 Z
11
+ date: 2025-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common