tencentcloud-sdk-python 3.0.1419__py2.py3-none-any.whl → 3.0.1421__py2.py3-none-any.whl
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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/ai3d/v20250513/models.py +2 -2
- tencentcloud/autoscaling/v20180419/models.py +15 -0
- tencentcloud/cdb/v20170320/cdb_client.py +1 -1
- tencentcloud/cdb/v20170320/models.py +8 -8
- tencentcloud/cdn/v20180606/models.py +4 -4
- tencentcloud/cdwdoris/v20211228/errorcodes.py +6 -0
- tencentcloud/cdwdoris/v20211228/models.py +244 -4
- tencentcloud/cfg/v20210820/models.py +40 -0
- tencentcloud/cvm/v20170312/models.py +2 -2
- tencentcloud/emr/v20190103/models.py +355 -4
- tencentcloud/ess/v20201111/models.py +8 -2
- tencentcloud/essbasic/v20210526/models.py +2 -2
- tencentcloud/gs/v20191118/models.py +71 -0
- tencentcloud/igtm/v20231024/igtm_client.py +69 -0
- tencentcloud/igtm/v20231024/models.py +1202 -198
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +4 -2
- tencentcloud/live/v20180801/models.py +2 -2
- tencentcloud/lke/v20231130/models.py +395 -2
- tencentcloud/mrs/v20200910/models.py +15 -0
- tencentcloud/nlp/v20190408/errorcodes.py +0 -21
- tencentcloud/nlp/v20190408/models.py +99 -1004
- tencentcloud/nlp/v20190408/nlp_client.py +0 -138
- tencentcloud/ocr/v20181119/models.py +4 -18
- tencentcloud/ocr/v20181119/ocr_client.py +3 -1
- tencentcloud/omics/v20221128/models.py +60 -0
- tencentcloud/ses/v20201002/errorcodes.py +3 -0
- tencentcloud/ses/v20201002/models.py +171 -0
- tencentcloud/ssl/v20191205/errorcodes.py +6 -0
- tencentcloud/tcb/v20180608/models.py +64 -10
- tencentcloud/tdmq/v20200217/models.py +30 -0
- tencentcloud/teo/v20220901/models.py +664 -2
- tencentcloud/teo/v20220901/teo_client.py +115 -0
- tencentcloud/tione/v20211111/models.py +23 -0
- tencentcloud/tke/v20180525/models.py +46 -46
- tencentcloud/tsf/v20180326/errorcodes.py +6 -0
- tencentcloud/tsf/v20180326/models.py +16 -0
- tencentcloud/vod/v20180717/models.py +8 -4
- tencentcloud/vrs/v20200824/vrs_client.py +1 -1
- {tencentcloud_sdk_python-3.0.1419.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1419.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/RECORD +44 -173
- tencentcloud/cis/__init__.py +0 -0
- tencentcloud/cis/v20180408/__init__.py +0 -0
- tencentcloud/cis/v20180408/cis_client.py +0 -187
- tencentcloud/cis/v20180408/errorcodes.py +0 -21
- tencentcloud/cis/v20180408/models.py +0 -1688
- tencentcloud/dataintegration/__init__.py +0 -0
- tencentcloud/dataintegration/v20220613/__init__.py +0 -0
- tencentcloud/dataintegration/v20220613/dataintegration_client.py +0 -49
- tencentcloud/dataintegration/v20220613/errorcodes.py +0 -15
- tencentcloud/dataintegration/v20220613/models.py +0 -168
- tencentcloud/dtf/__init__.py +0 -0
- tencentcloud/dtf/v20200506/__init__.py +0 -0
- tencentcloud/dtf/v20200506/dtf_client.py +0 -49
- tencentcloud/dtf/v20200506/errorcodes.py +0 -21
- tencentcloud/dtf/v20200506/models.py +0 -538
- tencentcloud/gpm/__init__.py +0 -0
- tencentcloud/gpm/v20200820/__init__.py +0 -0
- tencentcloud/gpm/v20200820/errorcodes.py +0 -168
- tencentcloud/gpm/v20200820/gpm_client.py +0 -476
- tencentcloud/gpm/v20200820/models.py +0 -4255
- tencentcloud/gse/__init__.py +0 -0
- tencentcloud/gse/v20191112/__init__.py +0 -0
- tencentcloud/gse/v20191112/errorcodes.py +0 -90
- tencentcloud/gse/v20191112/gse_client.py +0 -1993
- tencentcloud/gse/v20191112/models.py +0 -15093
- tencentcloud/iecp/__init__.py +0 -0
- tencentcloud/iecp/v20210914/__init__.py +0 -0
- tencentcloud/iecp/v20210914/errorcodes.py +0 -75
- tencentcloud/iecp/v20210914/iecp_client.py +0 -1912
- tencentcloud/iecp/v20210914/models.py +0 -17466
- tencentcloud/iir/__init__.py +0 -0
- tencentcloud/iir/v20200417/__init__.py +0 -0
- tencentcloud/iir/v20200417/errorcodes.py +0 -48
- tencentcloud/iir/v20200417/iir_client.py +0 -53
- tencentcloud/iir/v20200417/models.py +0 -451
- tencentcloud/iottid/__init__.py +0 -0
- tencentcloud/iottid/v20190411/__init__.py +0 -0
- tencentcloud/iottid/v20190411/errorcodes.py +0 -54
- tencentcloud/iottid/v20190411/iottid_client.py +0 -233
- tencentcloud/iottid/v20190411/models.py +0 -1053
- tencentcloud/mgobe/__init__.py +0 -0
- tencentcloud/mgobe/v20190929/__init__.py +0 -0
- tencentcloud/mgobe/v20190929/errorcodes.py +0 -945
- tencentcloud/mgobe/v20190929/mgobe_client.py +0 -49
- tencentcloud/mgobe/v20190929/models.py +0 -97
- tencentcloud/mgobe/v20201014/__init__.py +0 -0
- tencentcloud/mgobe/v20201014/errorcodes.py +0 -948
- tencentcloud/mgobe/v20201014/mgobe_client.py +0 -201
- tencentcloud/mgobe/v20201014/models.py +0 -1361
- tencentcloud/mvj/__init__.py +0 -0
- tencentcloud/mvj/v20190926/__init__.py +0 -0
- tencentcloud/mvj/v20190926/errorcodes.py +0 -30
- tencentcloud/mvj/v20190926/models.py +0 -263
- tencentcloud/mvj/v20190926/mvj_client.py +0 -51
- tencentcloud/pds/__init__.py +0 -0
- tencentcloud/pds/v20210701/__init__.py +0 -0
- tencentcloud/pds/v20210701/errorcodes.py +0 -48
- tencentcloud/pds/v20210701/models.py +0 -346
- tencentcloud/pds/v20210701/pds_client.py +0 -72
- tencentcloud/smpn/__init__.py +0 -0
- tencentcloud/smpn/v20190822/__init__.py +0 -0
- tencentcloud/smpn/v20190822/errorcodes.py +0 -27
- tencentcloud/smpn/v20190822/models.py +0 -389
- tencentcloud/smpn/v20190822/smpn_client.py +0 -76
- tencentcloud/solar/__init__.py +0 -0
- tencentcloud/solar/v20181011/__init__.py +0 -0
- tencentcloud/solar/v20181011/errorcodes.py +0 -42
- tencentcloud/solar/v20181011/models.py +0 -3848
- tencentcloud/solar/v20181011/solar_client.py +0 -417
- tencentcloud/tan/__init__.py +0 -0
- tencentcloud/tan/v20220420/__init__.py +0 -0
- tencentcloud/tan/v20220420/errorcodes.py +0 -81
- tencentcloud/tan/v20220420/models.py +0 -112
- tencentcloud/tan/v20220420/tan_client.py +0 -51
- tencentcloud/tav/__init__.py +0 -0
- tencentcloud/tav/v20190118/__init__.py +0 -0
- tencentcloud/tav/v20190118/errorcodes.py +0 -15
- tencentcloud/tav/v20190118/models.py +0 -550
- tencentcloud/tav/v20190118/tav_client.py +0 -118
- tencentcloud/tbm/__init__.py +0 -0
- tencentcloud/tbm/v20180129/__init__.py +0 -0
- tencentcloud/tbm/v20180129/errorcodes.py +0 -39
- tencentcloud/tbm/v20180129/models.py +0 -2354
- tencentcloud/tbm/v20180129/tbm_client.py +0 -233
- tencentcloud/tcex/__init__.py +0 -0
- tencentcloud/tcex/v20200727/__init__.py +0 -0
- tencentcloud/tcex/v20200727/errorcodes.py +0 -51
- tencentcloud/tcex/v20200727/models.py +0 -374
- tencentcloud/tcex/v20200727/tcex_client.py +0 -76
- tencentcloud/tci/__init__.py +0 -0
- tencentcloud/tci/v20190318/__init__.py +0 -0
- tencentcloud/tci/v20190318/errorcodes.py +0 -237
- tencentcloud/tci/v20190318/models.py +0 -11569
- tencentcloud/tci/v20190318/tci_client.py +0 -1017
- tencentcloud/tic/__init__.py +0 -0
- tencentcloud/tic/v20201117/__init__.py +0 -0
- tencentcloud/tic/v20201117/errorcodes.py +0 -48
- tencentcloud/tic/v20201117/models.py +0 -1952
- tencentcloud/tic/v20201117/tic_client.py +0 -342
- tencentcloud/ticm/__init__.py +0 -0
- tencentcloud/ticm/v20181127/__init__.py +0 -0
- tencentcloud/ticm/v20181127/errorcodes.py +0 -36
- tencentcloud/ticm/v20181127/models.py +0 -3385
- tencentcloud/ticm/v20181127/ticm_client.py +0 -95
- tencentcloud/tics/__init__.py +0 -0
- tencentcloud/tics/v20181115/__init__.py +0 -0
- tencentcloud/tics/v20181115/errorcodes.py +0 -30
- tencentcloud/tics/v20181115/models.py +0 -1324
- tencentcloud/tics/v20181115/tics_client.py +0 -118
- tencentcloud/tiems/__init__.py +0 -0
- tencentcloud/tiems/v20190416/__init__.py +0 -0
- tencentcloud/tiems/v20190416/errorcodes.py +0 -36
- tencentcloud/tiems/v20190416/models.py +0 -6644
- tencentcloud/tiems/v20190416/tiems_client.py +0 -651
- tencentcloud/trdp/__init__.py +0 -0
- tencentcloud/trdp/v20220726/__init__.py +0 -0
- tencentcloud/trdp/v20220726/errorcodes.py +0 -30
- tencentcloud/trdp/v20220726/models.py +0 -1609
- tencentcloud/trdp/v20220726/trdp_client.py +0 -49
- tencentcloud/ump/__init__.py +0 -0
- tencentcloud/ump/v20200918/__init__.py +0 -0
- tencentcloud/ump/v20200918/errorcodes.py +0 -57
- tencentcloud/ump/v20200918/models.py +0 -4089
- tencentcloud/ump/v20200918/ump_client.py +0 -454
- tencentcloud/youmall/__init__.py +0 -0
- tencentcloud/youmall/v20180228/__init__.py +0 -0
- tencentcloud/youmall/v20180228/errorcodes.py +0 -93
- tencentcloud/youmall/v20180228/models.py +0 -8181
- tencentcloud/youmall/v20180228/youmall_client.py +0 -740
- {tencentcloud_sdk_python-3.0.1419.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1419.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1419.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/top_level.txt +0 -0
@@ -574,130 +574,6 @@ class ComposeCoupletResponse(AbstractModel):
|
|
574
574
|
self._RequestId = params.get("RequestId")
|
575
575
|
|
576
576
|
|
577
|
-
class ComposePoetryRequest(AbstractModel):
|
578
|
-
"""ComposePoetry请求参数结构体
|
579
|
-
|
580
|
-
"""
|
581
|
-
|
582
|
-
def __init__(self):
|
583
|
-
r"""
|
584
|
-
:param _Text: 生成诗词的关键词。
|
585
|
-
:type Text: str
|
586
|
-
:param _PoetryType: 生成诗词的类型。0:藏头或藏身;1:藏头;2:藏身。默认为0。
|
587
|
-
:type PoetryType: int
|
588
|
-
:param _Genre: 诗的体裁。0:五言律诗或七言律诗;5:五言律诗;7:七言律诗。默认为0。
|
589
|
-
:type Genre: int
|
590
|
-
"""
|
591
|
-
self._Text = None
|
592
|
-
self._PoetryType = None
|
593
|
-
self._Genre = None
|
594
|
-
|
595
|
-
@property
|
596
|
-
def Text(self):
|
597
|
-
"""生成诗词的关键词。
|
598
|
-
:rtype: str
|
599
|
-
"""
|
600
|
-
return self._Text
|
601
|
-
|
602
|
-
@Text.setter
|
603
|
-
def Text(self, Text):
|
604
|
-
self._Text = Text
|
605
|
-
|
606
|
-
@property
|
607
|
-
def PoetryType(self):
|
608
|
-
"""生成诗词的类型。0:藏头或藏身;1:藏头;2:藏身。默认为0。
|
609
|
-
:rtype: int
|
610
|
-
"""
|
611
|
-
return self._PoetryType
|
612
|
-
|
613
|
-
@PoetryType.setter
|
614
|
-
def PoetryType(self, PoetryType):
|
615
|
-
self._PoetryType = PoetryType
|
616
|
-
|
617
|
-
@property
|
618
|
-
def Genre(self):
|
619
|
-
"""诗的体裁。0:五言律诗或七言律诗;5:五言律诗;7:七言律诗。默认为0。
|
620
|
-
:rtype: int
|
621
|
-
"""
|
622
|
-
return self._Genre
|
623
|
-
|
624
|
-
@Genre.setter
|
625
|
-
def Genre(self, Genre):
|
626
|
-
self._Genre = Genre
|
627
|
-
|
628
|
-
|
629
|
-
def _deserialize(self, params):
|
630
|
-
self._Text = params.get("Text")
|
631
|
-
self._PoetryType = params.get("PoetryType")
|
632
|
-
self._Genre = params.get("Genre")
|
633
|
-
memeber_set = set(params.keys())
|
634
|
-
for name, value in vars(self).items():
|
635
|
-
property_name = name[1:]
|
636
|
-
if property_name in memeber_set:
|
637
|
-
memeber_set.remove(property_name)
|
638
|
-
if len(memeber_set) > 0:
|
639
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
class ComposePoetryResponse(AbstractModel):
|
644
|
-
"""ComposePoetry返回参数结构体
|
645
|
-
|
646
|
-
"""
|
647
|
-
|
648
|
-
def __init__(self):
|
649
|
-
r"""
|
650
|
-
:param _Title: 诗题,即输入的生成诗词的关键词。
|
651
|
-
:type Title: str
|
652
|
-
:param _Content: 诗的内容。
|
653
|
-
:type Content: list of str
|
654
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
655
|
-
:type RequestId: str
|
656
|
-
"""
|
657
|
-
self._Title = None
|
658
|
-
self._Content = None
|
659
|
-
self._RequestId = None
|
660
|
-
|
661
|
-
@property
|
662
|
-
def Title(self):
|
663
|
-
"""诗题,即输入的生成诗词的关键词。
|
664
|
-
:rtype: str
|
665
|
-
"""
|
666
|
-
return self._Title
|
667
|
-
|
668
|
-
@Title.setter
|
669
|
-
def Title(self, Title):
|
670
|
-
self._Title = Title
|
671
|
-
|
672
|
-
@property
|
673
|
-
def Content(self):
|
674
|
-
"""诗的内容。
|
675
|
-
:rtype: list of str
|
676
|
-
"""
|
677
|
-
return self._Content
|
678
|
-
|
679
|
-
@Content.setter
|
680
|
-
def Content(self, Content):
|
681
|
-
self._Content = Content
|
682
|
-
|
683
|
-
@property
|
684
|
-
def RequestId(self):
|
685
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
686
|
-
:rtype: str
|
687
|
-
"""
|
688
|
-
return self._RequestId
|
689
|
-
|
690
|
-
@RequestId.setter
|
691
|
-
def RequestId(self, RequestId):
|
692
|
-
self._RequestId = RequestId
|
693
|
-
|
694
|
-
|
695
|
-
def _deserialize(self, params):
|
696
|
-
self._Title = params.get("Title")
|
697
|
-
self._Content = params.get("Content")
|
698
|
-
self._RequestId = params.get("RequestId")
|
699
|
-
|
700
|
-
|
701
577
|
class CompoundParticiple(AbstractModel):
|
702
578
|
"""复合粒度分词和词性标注的结果。
|
703
579
|
|
@@ -941,73 +817,6 @@ class CorrectionItem(AbstractModel):
|
|
941
817
|
|
942
818
|
|
943
819
|
|
944
|
-
class Embellish(AbstractModel):
|
945
|
-
"""文本润色结果
|
946
|
-
|
947
|
-
"""
|
948
|
-
|
949
|
-
def __init__(self):
|
950
|
-
r"""
|
951
|
-
:param _Text: 润色后的文本。
|
952
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
953
|
-
:type Text: str
|
954
|
-
:param _EmbellishType: 润色类型。类型如下:
|
955
|
-
expansion:扩写
|
956
|
-
rewriting:改写
|
957
|
-
translation_m2a:从现代文改写为古文
|
958
|
-
translation_a2m:从古文改写为现代文
|
959
|
-
|
960
|
-
|
961
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
962
|
-
:type EmbellishType: str
|
963
|
-
"""
|
964
|
-
self._Text = None
|
965
|
-
self._EmbellishType = None
|
966
|
-
|
967
|
-
@property
|
968
|
-
def Text(self):
|
969
|
-
"""润色后的文本。
|
970
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
971
|
-
:rtype: str
|
972
|
-
"""
|
973
|
-
return self._Text
|
974
|
-
|
975
|
-
@Text.setter
|
976
|
-
def Text(self, Text):
|
977
|
-
self._Text = Text
|
978
|
-
|
979
|
-
@property
|
980
|
-
def EmbellishType(self):
|
981
|
-
"""润色类型。类型如下:
|
982
|
-
expansion:扩写
|
983
|
-
rewriting:改写
|
984
|
-
translation_m2a:从现代文改写为古文
|
985
|
-
translation_a2m:从古文改写为现代文
|
986
|
-
|
987
|
-
|
988
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
989
|
-
:rtype: str
|
990
|
-
"""
|
991
|
-
return self._EmbellishType
|
992
|
-
|
993
|
-
@EmbellishType.setter
|
994
|
-
def EmbellishType(self, EmbellishType):
|
995
|
-
self._EmbellishType = EmbellishType
|
996
|
-
|
997
|
-
|
998
|
-
def _deserialize(self, params):
|
999
|
-
self._Text = params.get("Text")
|
1000
|
-
self._EmbellishType = params.get("EmbellishType")
|
1001
|
-
memeber_set = set(params.keys())
|
1002
|
-
for name, value in vars(self).items():
|
1003
|
-
property_name = name[1:]
|
1004
|
-
if property_name in memeber_set:
|
1005
|
-
memeber_set.remove(property_name)
|
1006
|
-
if len(memeber_set) > 0:
|
1007
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
820
|
class Entity(AbstractModel):
|
1012
821
|
"""实体识别结果。
|
1013
822
|
|
@@ -1188,51 +997,32 @@ class EvaluateSentenceSimilarityResponse(AbstractModel):
|
|
1188
997
|
self._RequestId = params.get("RequestId")
|
1189
998
|
|
1190
999
|
|
1191
|
-
class
|
1192
|
-
"""
|
1000
|
+
class ParseWordsRequest(AbstractModel):
|
1001
|
+
"""ParseWords请求参数结构体
|
1193
1002
|
|
1194
1003
|
"""
|
1195
1004
|
|
1196
1005
|
def __init__(self):
|
1197
1006
|
r"""
|
1198
|
-
:param
|
1199
|
-
|
1200
|
-
:type SourceWord: str
|
1201
|
-
:param _TargetWord: 计算相似度的目标词。(仅支持UTF-8格式,不超过10字符)
|
1202
|
-
|
1203
|
-
:type TargetWord: str
|
1204
|
-
"""
|
1205
|
-
self._SourceWord = None
|
1206
|
-
self._TargetWord = None
|
1207
|
-
|
1208
|
-
@property
|
1209
|
-
def SourceWord(self):
|
1210
|
-
"""计算相似度的源词。(仅支持UTF-8格式,不超过10字符)
|
1211
|
-
|
1212
|
-
:rtype: str
|
1007
|
+
:param _Text: 待分析的文本(支持中英文文本,不超过500字符)
|
1008
|
+
:type Text: str
|
1213
1009
|
"""
|
1214
|
-
|
1215
|
-
|
1216
|
-
@SourceWord.setter
|
1217
|
-
def SourceWord(self, SourceWord):
|
1218
|
-
self._SourceWord = SourceWord
|
1010
|
+
self._Text = None
|
1219
1011
|
|
1220
1012
|
@property
|
1221
|
-
def
|
1222
|
-
"""
|
1223
|
-
|
1013
|
+
def Text(self):
|
1014
|
+
"""待分析的文本(支持中英文文本,不超过500字符)
|
1224
1015
|
:rtype: str
|
1225
1016
|
"""
|
1226
|
-
return self.
|
1017
|
+
return self._Text
|
1227
1018
|
|
1228
|
-
@
|
1229
|
-
def
|
1230
|
-
self.
|
1019
|
+
@Text.setter
|
1020
|
+
def Text(self, Text):
|
1021
|
+
self._Text = Text
|
1231
1022
|
|
1232
1023
|
|
1233
1024
|
def _deserialize(self, params):
|
1234
|
-
self.
|
1235
|
-
self._TargetWord = params.get("TargetWord")
|
1025
|
+
self._Text = params.get("Text")
|
1236
1026
|
memeber_set = set(params.keys())
|
1237
1027
|
for name, value in vars(self).items():
|
1238
1028
|
property_name = name[1:]
|
@@ -1243,31 +1033,75 @@ class EvaluateWordSimilarityRequest(AbstractModel):
|
|
1243
1033
|
|
1244
1034
|
|
1245
1035
|
|
1246
|
-
class
|
1247
|
-
"""
|
1036
|
+
class ParseWordsResponse(AbstractModel):
|
1037
|
+
"""ParseWords返回参数结构体
|
1248
1038
|
|
1249
1039
|
"""
|
1250
1040
|
|
1251
1041
|
def __init__(self):
|
1252
1042
|
r"""
|
1253
|
-
:param
|
1254
|
-
:type
|
1043
|
+
:param _NormalText: 输入文本正则化的结果。(包括对英文文本中的开头和实体进行大写等)
|
1044
|
+
:type NormalText: str
|
1045
|
+
:param _BasicParticiples: 基础粒度分词和词性标注的结果。(请参见附录[词性表](https://cloud.tencent.com/document/product/271/36460))
|
1046
|
+
:type BasicParticiples: list of BasicParticiple
|
1047
|
+
:param _CompoundParticiples: 复合粒度分词和词性标注的结果。(请参见附录[词性表](https://cloud.tencent.com/document/product/271/36460))
|
1048
|
+
:type CompoundParticiples: list of CompoundParticiple
|
1049
|
+
:param _Entities: 实体识别结果。(请参见附录[实体类型数据](https://cloud.tencent.com/document/product/271/90592))
|
1050
|
+
|
1051
|
+
:type Entities: list of Entity
|
1255
1052
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1256
1053
|
:type RequestId: str
|
1257
1054
|
"""
|
1258
|
-
self.
|
1055
|
+
self._NormalText = None
|
1056
|
+
self._BasicParticiples = None
|
1057
|
+
self._CompoundParticiples = None
|
1058
|
+
self._Entities = None
|
1259
1059
|
self._RequestId = None
|
1260
1060
|
|
1261
1061
|
@property
|
1262
|
-
def
|
1263
|
-
"""
|
1264
|
-
:rtype:
|
1062
|
+
def NormalText(self):
|
1063
|
+
"""输入文本正则化的结果。(包括对英文文本中的开头和实体进行大写等)
|
1064
|
+
:rtype: str
|
1065
|
+
"""
|
1066
|
+
return self._NormalText
|
1067
|
+
|
1068
|
+
@NormalText.setter
|
1069
|
+
def NormalText(self, NormalText):
|
1070
|
+
self._NormalText = NormalText
|
1071
|
+
|
1072
|
+
@property
|
1073
|
+
def BasicParticiples(self):
|
1074
|
+
"""基础粒度分词和词性标注的结果。(请参见附录[词性表](https://cloud.tencent.com/document/product/271/36460))
|
1075
|
+
:rtype: list of BasicParticiple
|
1076
|
+
"""
|
1077
|
+
return self._BasicParticiples
|
1078
|
+
|
1079
|
+
@BasicParticiples.setter
|
1080
|
+
def BasicParticiples(self, BasicParticiples):
|
1081
|
+
self._BasicParticiples = BasicParticiples
|
1082
|
+
|
1083
|
+
@property
|
1084
|
+
def CompoundParticiples(self):
|
1085
|
+
"""复合粒度分词和词性标注的结果。(请参见附录[词性表](https://cloud.tencent.com/document/product/271/36460))
|
1086
|
+
:rtype: list of CompoundParticiple
|
1087
|
+
"""
|
1088
|
+
return self._CompoundParticiples
|
1089
|
+
|
1090
|
+
@CompoundParticiples.setter
|
1091
|
+
def CompoundParticiples(self, CompoundParticiples):
|
1092
|
+
self._CompoundParticiples = CompoundParticiples
|
1093
|
+
|
1094
|
+
@property
|
1095
|
+
def Entities(self):
|
1096
|
+
"""实体识别结果。(请参见附录[实体类型数据](https://cloud.tencent.com/document/product/271/90592))
|
1097
|
+
|
1098
|
+
:rtype: list of Entity
|
1265
1099
|
"""
|
1266
|
-
return self.
|
1100
|
+
return self._Entities
|
1267
1101
|
|
1268
|
-
@
|
1269
|
-
def
|
1270
|
-
self.
|
1102
|
+
@Entities.setter
|
1103
|
+
def Entities(self, Entities):
|
1104
|
+
self._Entities = Entities
|
1271
1105
|
|
1272
1106
|
@property
|
1273
1107
|
def RequestId(self):
|
@@ -1282,425 +1116,50 @@ class EvaluateWordSimilarityResponse(AbstractModel):
|
|
1282
1116
|
|
1283
1117
|
|
1284
1118
|
def _deserialize(self, params):
|
1285
|
-
self.
|
1119
|
+
self._NormalText = params.get("NormalText")
|
1120
|
+
if params.get("BasicParticiples") is not None:
|
1121
|
+
self._BasicParticiples = []
|
1122
|
+
for item in params.get("BasicParticiples"):
|
1123
|
+
obj = BasicParticiple()
|
1124
|
+
obj._deserialize(item)
|
1125
|
+
self._BasicParticiples.append(obj)
|
1126
|
+
if params.get("CompoundParticiples") is not None:
|
1127
|
+
self._CompoundParticiples = []
|
1128
|
+
for item in params.get("CompoundParticiples"):
|
1129
|
+
obj = CompoundParticiple()
|
1130
|
+
obj._deserialize(item)
|
1131
|
+
self._CompoundParticiples.append(obj)
|
1132
|
+
if params.get("Entities") is not None:
|
1133
|
+
self._Entities = []
|
1134
|
+
for item in params.get("Entities"):
|
1135
|
+
obj = Entity()
|
1136
|
+
obj._deserialize(item)
|
1137
|
+
self._Entities.append(obj)
|
1286
1138
|
self._RequestId = params.get("RequestId")
|
1287
1139
|
|
1288
1140
|
|
1289
|
-
class
|
1290
|
-
"""
|
1141
|
+
class SentenceCorrectionRequest(AbstractModel):
|
1142
|
+
"""SentenceCorrection请求参数结构体
|
1291
1143
|
|
1292
1144
|
"""
|
1293
1145
|
|
1294
1146
|
def __init__(self):
|
1295
1147
|
r"""
|
1296
|
-
:param
|
1297
|
-
:type
|
1298
|
-
:param _Number: 返回生成句子的个数。数量需>=1且<=5。
|
1299
|
-
(注意实际结果可能小于指定个数)
|
1300
|
-
:type Number: int
|
1301
|
-
:param _Domain: 指定生成句子的领域,支持领域如下:
|
1302
|
-
general:通用领域,支持中英文
|
1303
|
-
academic:学术领域,仅支持英文
|
1304
|
-
默认为general(通用领域)。
|
1305
|
-
:type Domain: str
|
1306
|
-
"""
|
1307
|
-
self._WordList = None
|
1308
|
-
self._Number = None
|
1309
|
-
self._Domain = None
|
1310
|
-
|
1311
|
-
@property
|
1312
|
-
def WordList(self):
|
1313
|
-
"""生成句子的关键词,关键词个数需不超过4个,中文关键词长度应不超过10字符,英文关键词长度不超过3个单词。关键词中不可包含标点符号。
|
1314
|
-
:rtype: list of str
|
1148
|
+
:param _TextList: 待纠错的句子列表。可以以数组方式在一次请求中填写多个待纠错的句子。文本统一使用utf-8格式编码,每个中文句子的长度不超过150字符,每个英文句子的长度不超过100个单词,且数组长度需小于30,即句子总数需少于30句。
|
1149
|
+
:type TextList: list of str
|
1315
1150
|
"""
|
1316
|
-
|
1317
|
-
|
1318
|
-
@WordList.setter
|
1319
|
-
def WordList(self, WordList):
|
1320
|
-
self._WordList = WordList
|
1151
|
+
self._TextList = None
|
1321
1152
|
|
1322
1153
|
@property
|
1323
|
-
def
|
1324
|
-
"""
|
1325
|
-
|
1326
|
-
:rtype: int
|
1154
|
+
def TextList(self):
|
1155
|
+
"""待纠错的句子列表。可以以数组方式在一次请求中填写多个待纠错的句子。文本统一使用utf-8格式编码,每个中文句子的长度不超过150字符,每个英文句子的长度不超过100个单词,且数组长度需小于30,即句子总数需少于30句。
|
1156
|
+
:rtype: list of str
|
1327
1157
|
"""
|
1328
|
-
return self.
|
1158
|
+
return self._TextList
|
1329
1159
|
|
1330
|
-
@
|
1331
|
-
def
|
1332
|
-
self.
|
1333
|
-
|
1334
|
-
@property
|
1335
|
-
def Domain(self):
|
1336
|
-
"""指定生成句子的领域,支持领域如下:
|
1337
|
-
general:通用领域,支持中英文
|
1338
|
-
academic:学术领域,仅支持英文
|
1339
|
-
默认为general(通用领域)。
|
1340
|
-
:rtype: str
|
1341
|
-
"""
|
1342
|
-
return self._Domain
|
1343
|
-
|
1344
|
-
@Domain.setter
|
1345
|
-
def Domain(self, Domain):
|
1346
|
-
self._Domain = Domain
|
1347
|
-
|
1348
|
-
|
1349
|
-
def _deserialize(self, params):
|
1350
|
-
self._WordList = params.get("WordList")
|
1351
|
-
self._Number = params.get("Number")
|
1352
|
-
self._Domain = params.get("Domain")
|
1353
|
-
memeber_set = set(params.keys())
|
1354
|
-
for name, value in vars(self).items():
|
1355
|
-
property_name = name[1:]
|
1356
|
-
if property_name in memeber_set:
|
1357
|
-
memeber_set.remove(property_name)
|
1358
|
-
if len(memeber_set) > 0:
|
1359
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
1363
|
-
class GenerateKeywordSentenceResponse(AbstractModel):
|
1364
|
-
"""GenerateKeywordSentence返回参数结构体
|
1365
|
-
|
1366
|
-
"""
|
1367
|
-
|
1368
|
-
def __init__(self):
|
1369
|
-
r"""
|
1370
|
-
:param _KeywordSentenceList: 生成的句子列表。
|
1371
|
-
:type KeywordSentenceList: list of KeywordSentence
|
1372
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1373
|
-
:type RequestId: str
|
1374
|
-
"""
|
1375
|
-
self._KeywordSentenceList = None
|
1376
|
-
self._RequestId = None
|
1377
|
-
|
1378
|
-
@property
|
1379
|
-
def KeywordSentenceList(self):
|
1380
|
-
"""生成的句子列表。
|
1381
|
-
:rtype: list of KeywordSentence
|
1382
|
-
"""
|
1383
|
-
return self._KeywordSentenceList
|
1384
|
-
|
1385
|
-
@KeywordSentenceList.setter
|
1386
|
-
def KeywordSentenceList(self, KeywordSentenceList):
|
1387
|
-
self._KeywordSentenceList = KeywordSentenceList
|
1388
|
-
|
1389
|
-
@property
|
1390
|
-
def RequestId(self):
|
1391
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1392
|
-
:rtype: str
|
1393
|
-
"""
|
1394
|
-
return self._RequestId
|
1395
|
-
|
1396
|
-
@RequestId.setter
|
1397
|
-
def RequestId(self, RequestId):
|
1398
|
-
self._RequestId = RequestId
|
1399
|
-
|
1400
|
-
|
1401
|
-
def _deserialize(self, params):
|
1402
|
-
if params.get("KeywordSentenceList") is not None:
|
1403
|
-
self._KeywordSentenceList = []
|
1404
|
-
for item in params.get("KeywordSentenceList"):
|
1405
|
-
obj = KeywordSentence()
|
1406
|
-
obj._deserialize(item)
|
1407
|
-
self._KeywordSentenceList.append(obj)
|
1408
|
-
self._RequestId = params.get("RequestId")
|
1409
|
-
|
1410
|
-
|
1411
|
-
class KeywordSentence(AbstractModel):
|
1412
|
-
"""通过关键词生成的句子信息
|
1413
|
-
|
1414
|
-
"""
|
1415
|
-
|
1416
|
-
def __init__(self):
|
1417
|
-
r"""
|
1418
|
-
:param _TargetText: 通过关键词生成的句子。
|
1419
|
-
:type TargetText: str
|
1420
|
-
"""
|
1421
|
-
self._TargetText = None
|
1422
|
-
|
1423
|
-
@property
|
1424
|
-
def TargetText(self):
|
1425
|
-
"""通过关键词生成的句子。
|
1426
|
-
:rtype: str
|
1427
|
-
"""
|
1428
|
-
return self._TargetText
|
1429
|
-
|
1430
|
-
@TargetText.setter
|
1431
|
-
def TargetText(self, TargetText):
|
1432
|
-
self._TargetText = TargetText
|
1433
|
-
|
1434
|
-
|
1435
|
-
def _deserialize(self, params):
|
1436
|
-
self._TargetText = params.get("TargetText")
|
1437
|
-
memeber_set = set(params.keys())
|
1438
|
-
for name, value in vars(self).items():
|
1439
|
-
property_name = name[1:]
|
1440
|
-
if property_name in memeber_set:
|
1441
|
-
memeber_set.remove(property_name)
|
1442
|
-
if len(memeber_set) > 0:
|
1443
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
class ParseWordsRequest(AbstractModel):
|
1448
|
-
"""ParseWords请求参数结构体
|
1449
|
-
|
1450
|
-
"""
|
1451
|
-
|
1452
|
-
def __init__(self):
|
1453
|
-
r"""
|
1454
|
-
:param _Text: 待分析的文本(支持中英文文本,不超过500字符)
|
1455
|
-
:type Text: str
|
1456
|
-
"""
|
1457
|
-
self._Text = None
|
1458
|
-
|
1459
|
-
@property
|
1460
|
-
def Text(self):
|
1461
|
-
"""待分析的文本(支持中英文文本,不超过500字符)
|
1462
|
-
:rtype: str
|
1463
|
-
"""
|
1464
|
-
return self._Text
|
1465
|
-
|
1466
|
-
@Text.setter
|
1467
|
-
def Text(self, Text):
|
1468
|
-
self._Text = Text
|
1469
|
-
|
1470
|
-
|
1471
|
-
def _deserialize(self, params):
|
1472
|
-
self._Text = params.get("Text")
|
1473
|
-
memeber_set = set(params.keys())
|
1474
|
-
for name, value in vars(self).items():
|
1475
|
-
property_name = name[1:]
|
1476
|
-
if property_name in memeber_set:
|
1477
|
-
memeber_set.remove(property_name)
|
1478
|
-
if len(memeber_set) > 0:
|
1479
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
class ParseWordsResponse(AbstractModel):
|
1484
|
-
"""ParseWords返回参数结构体
|
1485
|
-
|
1486
|
-
"""
|
1487
|
-
|
1488
|
-
def __init__(self):
|
1489
|
-
r"""
|
1490
|
-
:param _NormalText: 输入文本正则化的结果。(包括对英文文本中的开头和实体进行大写等)
|
1491
|
-
:type NormalText: str
|
1492
|
-
:param _BasicParticiples: 基础粒度分词和词性标注的结果。(请参见附录[词性表](https://cloud.tencent.com/document/product/271/36460))
|
1493
|
-
:type BasicParticiples: list of BasicParticiple
|
1494
|
-
:param _CompoundParticiples: 复合粒度分词和词性标注的结果。(请参见附录[词性表](https://cloud.tencent.com/document/product/271/36460))
|
1495
|
-
:type CompoundParticiples: list of CompoundParticiple
|
1496
|
-
:param _Entities: 实体识别结果。(请参见附录[实体类型数据](https://cloud.tencent.com/document/product/271/90592))
|
1497
|
-
|
1498
|
-
:type Entities: list of Entity
|
1499
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1500
|
-
:type RequestId: str
|
1501
|
-
"""
|
1502
|
-
self._NormalText = None
|
1503
|
-
self._BasicParticiples = None
|
1504
|
-
self._CompoundParticiples = None
|
1505
|
-
self._Entities = None
|
1506
|
-
self._RequestId = None
|
1507
|
-
|
1508
|
-
@property
|
1509
|
-
def NormalText(self):
|
1510
|
-
"""输入文本正则化的结果。(包括对英文文本中的开头和实体进行大写等)
|
1511
|
-
:rtype: str
|
1512
|
-
"""
|
1513
|
-
return self._NormalText
|
1514
|
-
|
1515
|
-
@NormalText.setter
|
1516
|
-
def NormalText(self, NormalText):
|
1517
|
-
self._NormalText = NormalText
|
1518
|
-
|
1519
|
-
@property
|
1520
|
-
def BasicParticiples(self):
|
1521
|
-
"""基础粒度分词和词性标注的结果。(请参见附录[词性表](https://cloud.tencent.com/document/product/271/36460))
|
1522
|
-
:rtype: list of BasicParticiple
|
1523
|
-
"""
|
1524
|
-
return self._BasicParticiples
|
1525
|
-
|
1526
|
-
@BasicParticiples.setter
|
1527
|
-
def BasicParticiples(self, BasicParticiples):
|
1528
|
-
self._BasicParticiples = BasicParticiples
|
1529
|
-
|
1530
|
-
@property
|
1531
|
-
def CompoundParticiples(self):
|
1532
|
-
"""复合粒度分词和词性标注的结果。(请参见附录[词性表](https://cloud.tencent.com/document/product/271/36460))
|
1533
|
-
:rtype: list of CompoundParticiple
|
1534
|
-
"""
|
1535
|
-
return self._CompoundParticiples
|
1536
|
-
|
1537
|
-
@CompoundParticiples.setter
|
1538
|
-
def CompoundParticiples(self, CompoundParticiples):
|
1539
|
-
self._CompoundParticiples = CompoundParticiples
|
1540
|
-
|
1541
|
-
@property
|
1542
|
-
def Entities(self):
|
1543
|
-
"""实体识别结果。(请参见附录[实体类型数据](https://cloud.tencent.com/document/product/271/90592))
|
1544
|
-
|
1545
|
-
:rtype: list of Entity
|
1546
|
-
"""
|
1547
|
-
return self._Entities
|
1548
|
-
|
1549
|
-
@Entities.setter
|
1550
|
-
def Entities(self, Entities):
|
1551
|
-
self._Entities = Entities
|
1552
|
-
|
1553
|
-
@property
|
1554
|
-
def RequestId(self):
|
1555
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1556
|
-
:rtype: str
|
1557
|
-
"""
|
1558
|
-
return self._RequestId
|
1559
|
-
|
1560
|
-
@RequestId.setter
|
1561
|
-
def RequestId(self, RequestId):
|
1562
|
-
self._RequestId = RequestId
|
1563
|
-
|
1564
|
-
|
1565
|
-
def _deserialize(self, params):
|
1566
|
-
self._NormalText = params.get("NormalText")
|
1567
|
-
if params.get("BasicParticiples") is not None:
|
1568
|
-
self._BasicParticiples = []
|
1569
|
-
for item in params.get("BasicParticiples"):
|
1570
|
-
obj = BasicParticiple()
|
1571
|
-
obj._deserialize(item)
|
1572
|
-
self._BasicParticiples.append(obj)
|
1573
|
-
if params.get("CompoundParticiples") is not None:
|
1574
|
-
self._CompoundParticiples = []
|
1575
|
-
for item in params.get("CompoundParticiples"):
|
1576
|
-
obj = CompoundParticiple()
|
1577
|
-
obj._deserialize(item)
|
1578
|
-
self._CompoundParticiples.append(obj)
|
1579
|
-
if params.get("Entities") is not None:
|
1580
|
-
self._Entities = []
|
1581
|
-
for item in params.get("Entities"):
|
1582
|
-
obj = Entity()
|
1583
|
-
obj._deserialize(item)
|
1584
|
-
self._Entities.append(obj)
|
1585
|
-
self._RequestId = params.get("RequestId")
|
1586
|
-
|
1587
|
-
|
1588
|
-
class RetrieveSimilarWordsRequest(AbstractModel):
|
1589
|
-
"""RetrieveSimilarWords请求参数结构体
|
1590
|
-
|
1591
|
-
"""
|
1592
|
-
|
1593
|
-
def __init__(self):
|
1594
|
-
r"""
|
1595
|
-
:param _Text: 输入的词语。(仅支持UTF-8格式,不超过10字符)
|
1596
|
-
:type Text: str
|
1597
|
-
:param _Number: 召回的相似词个数,取值范围为1-20。
|
1598
|
-
:type Number: int
|
1599
|
-
"""
|
1600
|
-
self._Text = None
|
1601
|
-
self._Number = None
|
1602
|
-
|
1603
|
-
@property
|
1604
|
-
def Text(self):
|
1605
|
-
"""输入的词语。(仅支持UTF-8格式,不超过10字符)
|
1606
|
-
:rtype: str
|
1607
|
-
"""
|
1608
|
-
return self._Text
|
1609
|
-
|
1610
|
-
@Text.setter
|
1611
|
-
def Text(self, Text):
|
1612
|
-
self._Text = Text
|
1613
|
-
|
1614
|
-
@property
|
1615
|
-
def Number(self):
|
1616
|
-
"""召回的相似词个数,取值范围为1-20。
|
1617
|
-
:rtype: int
|
1618
|
-
"""
|
1619
|
-
return self._Number
|
1620
|
-
|
1621
|
-
@Number.setter
|
1622
|
-
def Number(self, Number):
|
1623
|
-
self._Number = Number
|
1624
|
-
|
1625
|
-
|
1626
|
-
def _deserialize(self, params):
|
1627
|
-
self._Text = params.get("Text")
|
1628
|
-
self._Number = params.get("Number")
|
1629
|
-
memeber_set = set(params.keys())
|
1630
|
-
for name, value in vars(self).items():
|
1631
|
-
property_name = name[1:]
|
1632
|
-
if property_name in memeber_set:
|
1633
|
-
memeber_set.remove(property_name)
|
1634
|
-
if len(memeber_set) > 0:
|
1635
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
1639
|
-
class RetrieveSimilarWordsResponse(AbstractModel):
|
1640
|
-
"""RetrieveSimilarWords返回参数结构体
|
1641
|
-
|
1642
|
-
"""
|
1643
|
-
|
1644
|
-
def __init__(self):
|
1645
|
-
r"""
|
1646
|
-
:param _WordList: 召回的相似词数组。
|
1647
|
-
:type WordList: list of str
|
1648
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1649
|
-
:type RequestId: str
|
1650
|
-
"""
|
1651
|
-
self._WordList = None
|
1652
|
-
self._RequestId = None
|
1653
|
-
|
1654
|
-
@property
|
1655
|
-
def WordList(self):
|
1656
|
-
"""召回的相似词数组。
|
1657
|
-
:rtype: list of str
|
1658
|
-
"""
|
1659
|
-
return self._WordList
|
1660
|
-
|
1661
|
-
@WordList.setter
|
1662
|
-
def WordList(self, WordList):
|
1663
|
-
self._WordList = WordList
|
1664
|
-
|
1665
|
-
@property
|
1666
|
-
def RequestId(self):
|
1667
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1668
|
-
:rtype: str
|
1669
|
-
"""
|
1670
|
-
return self._RequestId
|
1671
|
-
|
1672
|
-
@RequestId.setter
|
1673
|
-
def RequestId(self, RequestId):
|
1674
|
-
self._RequestId = RequestId
|
1675
|
-
|
1676
|
-
|
1677
|
-
def _deserialize(self, params):
|
1678
|
-
self._WordList = params.get("WordList")
|
1679
|
-
self._RequestId = params.get("RequestId")
|
1680
|
-
|
1681
|
-
|
1682
|
-
class SentenceCorrectionRequest(AbstractModel):
|
1683
|
-
"""SentenceCorrection请求参数结构体
|
1684
|
-
|
1685
|
-
"""
|
1686
|
-
|
1687
|
-
def __init__(self):
|
1688
|
-
r"""
|
1689
|
-
:param _TextList: 待纠错的句子列表。可以以数组方式在一次请求中填写多个待纠错的句子。文本统一使用utf-8格式编码,每个中文句子的长度不超过150字符,每个英文句子的长度不超过100个单词,且数组长度需小于30,即句子总数需少于30句。
|
1690
|
-
:type TextList: list of str
|
1691
|
-
"""
|
1692
|
-
self._TextList = None
|
1693
|
-
|
1694
|
-
@property
|
1695
|
-
def TextList(self):
|
1696
|
-
"""待纠错的句子列表。可以以数组方式在一次请求中填写多个待纠错的句子。文本统一使用utf-8格式编码,每个中文句子的长度不超过150字符,每个英文句子的长度不超过100个单词,且数组长度需小于30,即句子总数需少于30句。
|
1697
|
-
:rtype: list of str
|
1698
|
-
"""
|
1699
|
-
return self._TextList
|
1700
|
-
|
1701
|
-
@TextList.setter
|
1702
|
-
def TextList(self, TextList):
|
1703
|
-
self._TextList = TextList
|
1160
|
+
@TextList.setter
|
1161
|
+
def TextList(self, TextList):
|
1162
|
+
self._TextList = TextList
|
1704
1163
|
|
1705
1164
|
|
1706
1165
|
def _deserialize(self, params):
|
@@ -1815,368 +1274,4 @@ class SentencePair(AbstractModel):
|
|
1815
1274
|
memeber_set.remove(property_name)
|
1816
1275
|
if len(memeber_set) > 0:
|
1817
1276
|
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1818
|
-
|
1819
|
-
|
1820
|
-
|
1821
|
-
class TextEmbellishRequest(AbstractModel):
|
1822
|
-
"""TextEmbellish请求参数结构体
|
1823
|
-
|
1824
|
-
"""
|
1825
|
-
|
1826
|
-
def __init__(self):
|
1827
|
-
r"""
|
1828
|
-
:param _Text: 待润色的文本。中文文本长度需<=50字符;英文文本长度需<=30个单词。
|
1829
|
-
:type Text: str
|
1830
|
-
:param _SourceLang: 待润色文本的语言类型,支持语言如下:
|
1831
|
-
zh:中文
|
1832
|
-
en:英文
|
1833
|
-
:type SourceLang: str
|
1834
|
-
:param _Number: 返回润色结果的个数。数量需>=1且<=5。
|
1835
|
-
(注意实际结果可能小于指定个数)
|
1836
|
-
:type Number: int
|
1837
|
-
:param _Style: 控制润色类型,类型如下:
|
1838
|
-
both:同时返回改写和扩写
|
1839
|
-
expansion:扩写
|
1840
|
-
rewriting:改写
|
1841
|
-
m2a:从现代文改写为古文
|
1842
|
-
a2m:从古文改写为现代文
|
1843
|
-
默认为both。
|
1844
|
-
:type Style: str
|
1845
|
-
"""
|
1846
|
-
self._Text = None
|
1847
|
-
self._SourceLang = None
|
1848
|
-
self._Number = None
|
1849
|
-
self._Style = None
|
1850
|
-
|
1851
|
-
@property
|
1852
|
-
def Text(self):
|
1853
|
-
"""待润色的文本。中文文本长度需<=50字符;英文文本长度需<=30个单词。
|
1854
|
-
:rtype: str
|
1855
|
-
"""
|
1856
|
-
return self._Text
|
1857
|
-
|
1858
|
-
@Text.setter
|
1859
|
-
def Text(self, Text):
|
1860
|
-
self._Text = Text
|
1861
|
-
|
1862
|
-
@property
|
1863
|
-
def SourceLang(self):
|
1864
|
-
"""待润色文本的语言类型,支持语言如下:
|
1865
|
-
zh:中文
|
1866
|
-
en:英文
|
1867
|
-
:rtype: str
|
1868
|
-
"""
|
1869
|
-
return self._SourceLang
|
1870
|
-
|
1871
|
-
@SourceLang.setter
|
1872
|
-
def SourceLang(self, SourceLang):
|
1873
|
-
self._SourceLang = SourceLang
|
1874
|
-
|
1875
|
-
@property
|
1876
|
-
def Number(self):
|
1877
|
-
"""返回润色结果的个数。数量需>=1且<=5。
|
1878
|
-
(注意实际结果可能小于指定个数)
|
1879
|
-
:rtype: int
|
1880
|
-
"""
|
1881
|
-
return self._Number
|
1882
|
-
|
1883
|
-
@Number.setter
|
1884
|
-
def Number(self, Number):
|
1885
|
-
self._Number = Number
|
1886
|
-
|
1887
|
-
@property
|
1888
|
-
def Style(self):
|
1889
|
-
"""控制润色类型,类型如下:
|
1890
|
-
both:同时返回改写和扩写
|
1891
|
-
expansion:扩写
|
1892
|
-
rewriting:改写
|
1893
|
-
m2a:从现代文改写为古文
|
1894
|
-
a2m:从古文改写为现代文
|
1895
|
-
默认为both。
|
1896
|
-
:rtype: str
|
1897
|
-
"""
|
1898
|
-
return self._Style
|
1899
|
-
|
1900
|
-
@Style.setter
|
1901
|
-
def Style(self, Style):
|
1902
|
-
self._Style = Style
|
1903
|
-
|
1904
|
-
|
1905
|
-
def _deserialize(self, params):
|
1906
|
-
self._Text = params.get("Text")
|
1907
|
-
self._SourceLang = params.get("SourceLang")
|
1908
|
-
self._Number = params.get("Number")
|
1909
|
-
self._Style = params.get("Style")
|
1910
|
-
memeber_set = set(params.keys())
|
1911
|
-
for name, value in vars(self).items():
|
1912
|
-
property_name = name[1:]
|
1913
|
-
if property_name in memeber_set:
|
1914
|
-
memeber_set.remove(property_name)
|
1915
|
-
if len(memeber_set) > 0:
|
1916
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1917
|
-
|
1918
|
-
|
1919
|
-
|
1920
|
-
class TextEmbellishResponse(AbstractModel):
|
1921
|
-
"""TextEmbellish返回参数结构体
|
1922
|
-
|
1923
|
-
"""
|
1924
|
-
|
1925
|
-
def __init__(self):
|
1926
|
-
r"""
|
1927
|
-
:param _EmbellishList: 润色结果列表。
|
1928
|
-
:type EmbellishList: list of Embellish
|
1929
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1930
|
-
:type RequestId: str
|
1931
|
-
"""
|
1932
|
-
self._EmbellishList = None
|
1933
|
-
self._RequestId = None
|
1934
|
-
|
1935
|
-
@property
|
1936
|
-
def EmbellishList(self):
|
1937
|
-
"""润色结果列表。
|
1938
|
-
:rtype: list of Embellish
|
1939
|
-
"""
|
1940
|
-
return self._EmbellishList
|
1941
|
-
|
1942
|
-
@EmbellishList.setter
|
1943
|
-
def EmbellishList(self, EmbellishList):
|
1944
|
-
self._EmbellishList = EmbellishList
|
1945
|
-
|
1946
|
-
@property
|
1947
|
-
def RequestId(self):
|
1948
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1949
|
-
:rtype: str
|
1950
|
-
"""
|
1951
|
-
return self._RequestId
|
1952
|
-
|
1953
|
-
@RequestId.setter
|
1954
|
-
def RequestId(self, RequestId):
|
1955
|
-
self._RequestId = RequestId
|
1956
|
-
|
1957
|
-
|
1958
|
-
def _deserialize(self, params):
|
1959
|
-
if params.get("EmbellishList") is not None:
|
1960
|
-
self._EmbellishList = []
|
1961
|
-
for item in params.get("EmbellishList"):
|
1962
|
-
obj = Embellish()
|
1963
|
-
obj._deserialize(item)
|
1964
|
-
self._EmbellishList.append(obj)
|
1965
|
-
self._RequestId = params.get("RequestId")
|
1966
|
-
|
1967
|
-
|
1968
|
-
class TextWritingRequest(AbstractModel):
|
1969
|
-
"""TextWriting请求参数结构体
|
1970
|
-
|
1971
|
-
"""
|
1972
|
-
|
1973
|
-
def __init__(self):
|
1974
|
-
r"""
|
1975
|
-
:param _Text: 待续写的句子,文本统一使用utf-8格式编码,长度不超过200字符。
|
1976
|
-
:type Text: str
|
1977
|
-
:param _SourceLang: 待续写文本的语言类型,支持语言如下:
|
1978
|
-
zh:中文
|
1979
|
-
en:英文
|
1980
|
-
:type SourceLang: str
|
1981
|
-
:param _Number: 返回续写结果的个数。数量需>=1且<=5。
|
1982
|
-
(注意实际结果可能小于指定个数)
|
1983
|
-
:type Number: int
|
1984
|
-
:param _Domain: 指定续写领域,支持领域如下:
|
1985
|
-
general:通用领域,支持中英文补全
|
1986
|
-
academic:学术领域,仅支持英文补全
|
1987
|
-
默认为general(通用领域)。
|
1988
|
-
:type Domain: str
|
1989
|
-
:param _Style: 指定续写风格,支持风格如下:
|
1990
|
-
science_fiction:科幻
|
1991
|
-
military_history:军事
|
1992
|
-
xuanhuan_wuxia:武侠
|
1993
|
-
urban_officialdom:职场
|
1994
|
-
默认为xuanhuan_wuxia(武侠)。
|
1995
|
-
:type Style: str
|
1996
|
-
"""
|
1997
|
-
self._Text = None
|
1998
|
-
self._SourceLang = None
|
1999
|
-
self._Number = None
|
2000
|
-
self._Domain = None
|
2001
|
-
self._Style = None
|
2002
|
-
|
2003
|
-
@property
|
2004
|
-
def Text(self):
|
2005
|
-
"""待续写的句子,文本统一使用utf-8格式编码,长度不超过200字符。
|
2006
|
-
:rtype: str
|
2007
|
-
"""
|
2008
|
-
return self._Text
|
2009
|
-
|
2010
|
-
@Text.setter
|
2011
|
-
def Text(self, Text):
|
2012
|
-
self._Text = Text
|
2013
|
-
|
2014
|
-
@property
|
2015
|
-
def SourceLang(self):
|
2016
|
-
"""待续写文本的语言类型,支持语言如下:
|
2017
|
-
zh:中文
|
2018
|
-
en:英文
|
2019
|
-
:rtype: str
|
2020
|
-
"""
|
2021
|
-
return self._SourceLang
|
2022
|
-
|
2023
|
-
@SourceLang.setter
|
2024
|
-
def SourceLang(self, SourceLang):
|
2025
|
-
self._SourceLang = SourceLang
|
2026
|
-
|
2027
|
-
@property
|
2028
|
-
def Number(self):
|
2029
|
-
"""返回续写结果的个数。数量需>=1且<=5。
|
2030
|
-
(注意实际结果可能小于指定个数)
|
2031
|
-
:rtype: int
|
2032
|
-
"""
|
2033
|
-
return self._Number
|
2034
|
-
|
2035
|
-
@Number.setter
|
2036
|
-
def Number(self, Number):
|
2037
|
-
self._Number = Number
|
2038
|
-
|
2039
|
-
@property
|
2040
|
-
def Domain(self):
|
2041
|
-
"""指定续写领域,支持领域如下:
|
2042
|
-
general:通用领域,支持中英文补全
|
2043
|
-
academic:学术领域,仅支持英文补全
|
2044
|
-
默认为general(通用领域)。
|
2045
|
-
:rtype: str
|
2046
|
-
"""
|
2047
|
-
return self._Domain
|
2048
|
-
|
2049
|
-
@Domain.setter
|
2050
|
-
def Domain(self, Domain):
|
2051
|
-
self._Domain = Domain
|
2052
|
-
|
2053
|
-
@property
|
2054
|
-
def Style(self):
|
2055
|
-
"""指定续写风格,支持风格如下:
|
2056
|
-
science_fiction:科幻
|
2057
|
-
military_history:军事
|
2058
|
-
xuanhuan_wuxia:武侠
|
2059
|
-
urban_officialdom:职场
|
2060
|
-
默认为xuanhuan_wuxia(武侠)。
|
2061
|
-
:rtype: str
|
2062
|
-
"""
|
2063
|
-
return self._Style
|
2064
|
-
|
2065
|
-
@Style.setter
|
2066
|
-
def Style(self, Style):
|
2067
|
-
self._Style = Style
|
2068
|
-
|
2069
|
-
|
2070
|
-
def _deserialize(self, params):
|
2071
|
-
self._Text = params.get("Text")
|
2072
|
-
self._SourceLang = params.get("SourceLang")
|
2073
|
-
self._Number = params.get("Number")
|
2074
|
-
self._Domain = params.get("Domain")
|
2075
|
-
self._Style = params.get("Style")
|
2076
|
-
memeber_set = set(params.keys())
|
2077
|
-
for name, value in vars(self).items():
|
2078
|
-
property_name = name[1:]
|
2079
|
-
if property_name in memeber_set:
|
2080
|
-
memeber_set.remove(property_name)
|
2081
|
-
if len(memeber_set) > 0:
|
2082
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2083
|
-
|
2084
|
-
|
2085
|
-
|
2086
|
-
class TextWritingResponse(AbstractModel):
|
2087
|
-
"""TextWriting返回参数结构体
|
2088
|
-
|
2089
|
-
"""
|
2090
|
-
|
2091
|
-
def __init__(self):
|
2092
|
-
r"""
|
2093
|
-
:param _WritingList: 续写结果列表。
|
2094
|
-
:type WritingList: list of Writing
|
2095
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2096
|
-
:type RequestId: str
|
2097
|
-
"""
|
2098
|
-
self._WritingList = None
|
2099
|
-
self._RequestId = None
|
2100
|
-
|
2101
|
-
@property
|
2102
|
-
def WritingList(self):
|
2103
|
-
"""续写结果列表。
|
2104
|
-
:rtype: list of Writing
|
2105
|
-
"""
|
2106
|
-
return self._WritingList
|
2107
|
-
|
2108
|
-
@WritingList.setter
|
2109
|
-
def WritingList(self, WritingList):
|
2110
|
-
self._WritingList = WritingList
|
2111
|
-
|
2112
|
-
@property
|
2113
|
-
def RequestId(self):
|
2114
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2115
|
-
:rtype: str
|
2116
|
-
"""
|
2117
|
-
return self._RequestId
|
2118
|
-
|
2119
|
-
@RequestId.setter
|
2120
|
-
def RequestId(self, RequestId):
|
2121
|
-
self._RequestId = RequestId
|
2122
|
-
|
2123
|
-
|
2124
|
-
def _deserialize(self, params):
|
2125
|
-
if params.get("WritingList") is not None:
|
2126
|
-
self._WritingList = []
|
2127
|
-
for item in params.get("WritingList"):
|
2128
|
-
obj = Writing()
|
2129
|
-
obj._deserialize(item)
|
2130
|
-
self._WritingList.append(obj)
|
2131
|
-
self._RequestId = params.get("RequestId")
|
2132
|
-
|
2133
|
-
|
2134
|
-
class Writing(AbstractModel):
|
2135
|
-
"""文本续写结果
|
2136
|
-
|
2137
|
-
"""
|
2138
|
-
|
2139
|
-
def __init__(self):
|
2140
|
-
r"""
|
2141
|
-
:param _TargetText: 续写的文本。
|
2142
|
-
:type TargetText: str
|
2143
|
-
:param _PrefixText: 续写的前缀。
|
2144
|
-
:type PrefixText: str
|
2145
|
-
"""
|
2146
|
-
self._TargetText = None
|
2147
|
-
self._PrefixText = None
|
2148
|
-
|
2149
|
-
@property
|
2150
|
-
def TargetText(self):
|
2151
|
-
"""续写的文本。
|
2152
|
-
:rtype: str
|
2153
|
-
"""
|
2154
|
-
return self._TargetText
|
2155
|
-
|
2156
|
-
@TargetText.setter
|
2157
|
-
def TargetText(self, TargetText):
|
2158
|
-
self._TargetText = TargetText
|
2159
|
-
|
2160
|
-
@property
|
2161
|
-
def PrefixText(self):
|
2162
|
-
"""续写的前缀。
|
2163
|
-
:rtype: str
|
2164
|
-
"""
|
2165
|
-
return self._PrefixText
|
2166
|
-
|
2167
|
-
@PrefixText.setter
|
2168
|
-
def PrefixText(self, PrefixText):
|
2169
|
-
self._PrefixText = PrefixText
|
2170
|
-
|
2171
|
-
|
2172
|
-
def _deserialize(self, params):
|
2173
|
-
self._TargetText = params.get("TargetText")
|
2174
|
-
self._PrefixText = params.get("PrefixText")
|
2175
|
-
memeber_set = set(params.keys())
|
2176
|
-
for name, value in vars(self).items():
|
2177
|
-
property_name = name[1:]
|
2178
|
-
if property_name in memeber_set:
|
2179
|
-
memeber_set.remove(property_name)
|
2180
|
-
if len(memeber_set) > 0:
|
2181
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2182
1277
|
|