azure-ai-textanalytics 5.3.0b2__py3-none-any.whl → 6.0.0b1__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.

Potentially problematic release.


This version of azure-ai-textanalytics might be problematic. Click here for more details.

Files changed (128) hide show
  1. azure/ai/textanalytics/__init__.py +26 -193
  2. azure/ai/textanalytics/_client.py +111 -0
  3. azure/ai/textanalytics/_configuration.py +73 -0
  4. azure/ai/textanalytics/{_generated/v2022_05_01/operations → _operations}/__init__.py +13 -8
  5. azure/ai/textanalytics/_operations/_operations.py +716 -0
  6. azure/ai/textanalytics/{_generated/v2022_05_01/models → _operations}/_patch.py +8 -6
  7. azure/ai/textanalytics/_patch.py +350 -0
  8. azure/ai/textanalytics/{_generated/aio → _utils}/__init__.py +1 -5
  9. azure/ai/textanalytics/_utils/model_base.py +1237 -0
  10. azure/ai/textanalytics/{_generated/_serialization.py → _utils/serialization.py} +640 -616
  11. azure/ai/textanalytics/{_generated/v2022_05_01/aio/_vendor.py → _utils/utils.py} +10 -12
  12. azure/ai/textanalytics/_version.py +8 -7
  13. azure/ai/textanalytics/aio/__init__.py +25 -14
  14. azure/ai/textanalytics/aio/_client.py +115 -0
  15. azure/ai/textanalytics/aio/_configuration.py +75 -0
  16. azure/ai/textanalytics/{_generated/v2022_10_01_preview/aio/operations → aio/_operations}/__init__.py +13 -8
  17. azure/ai/textanalytics/aio/_operations/_operations.py +623 -0
  18. azure/ai/textanalytics/{_generated/v2022_05_01 → aio/_operations}/_patch.py +8 -6
  19. azure/ai/textanalytics/aio/_patch.py +344 -0
  20. azure/ai/textanalytics/models/__init__.py +402 -0
  21. azure/ai/textanalytics/models/_enums.py +1979 -0
  22. azure/ai/textanalytics/models/_models.py +6641 -0
  23. azure/ai/textanalytics/{_generated/v2022_05_01/aio → models}/_patch.py +8 -6
  24. azure/ai/textanalytics/py.typed +1 -0
  25. {azure_ai_textanalytics-5.3.0b2.dist-info → azure_ai_textanalytics-6.0.0b1.dist-info}/METADATA +668 -403
  26. azure_ai_textanalytics-6.0.0b1.dist-info/RECORD +29 -0
  27. {azure_ai_textanalytics-5.3.0b2.dist-info → azure_ai_textanalytics-6.0.0b1.dist-info}/WHEEL +1 -1
  28. azure/ai/textanalytics/_base_client.py +0 -113
  29. azure/ai/textanalytics/_check.py +0 -22
  30. azure/ai/textanalytics/_dict_mixin.py +0 -57
  31. azure/ai/textanalytics/_generated/__init__.py +0 -16
  32. azure/ai/textanalytics/_generated/_configuration.py +0 -70
  33. azure/ai/textanalytics/_generated/_operations_mixin.py +0 -795
  34. azure/ai/textanalytics/_generated/_text_analytics_client.py +0 -126
  35. azure/ai/textanalytics/_generated/_version.py +0 -8
  36. azure/ai/textanalytics/_generated/aio/_configuration.py +0 -66
  37. azure/ai/textanalytics/_generated/aio/_operations_mixin.py +0 -776
  38. azure/ai/textanalytics/_generated/aio/_text_analytics_client.py +0 -124
  39. azure/ai/textanalytics/_generated/models.py +0 -8
  40. azure/ai/textanalytics/_generated/v2022_05_01/__init__.py +0 -20
  41. azure/ai/textanalytics/_generated/v2022_05_01/_configuration.py +0 -72
  42. azure/ai/textanalytics/_generated/v2022_05_01/_text_analytics_client.py +0 -100
  43. azure/ai/textanalytics/_generated/v2022_05_01/_vendor.py +0 -45
  44. azure/ai/textanalytics/_generated/v2022_05_01/aio/__init__.py +0 -20
  45. azure/ai/textanalytics/_generated/v2022_05_01/aio/_configuration.py +0 -71
  46. azure/ai/textanalytics/_generated/v2022_05_01/aio/_text_analytics_client.py +0 -97
  47. azure/ai/textanalytics/_generated/v2022_05_01/aio/operations/__init__.py +0 -18
  48. azure/ai/textanalytics/_generated/v2022_05_01/aio/operations/_patch.py +0 -121
  49. azure/ai/textanalytics/_generated/v2022_05_01/aio/operations/_text_analytics_client_operations.py +0 -603
  50. azure/ai/textanalytics/_generated/v2022_05_01/models/__init__.py +0 -281
  51. azure/ai/textanalytics/_generated/v2022_05_01/models/_models_py3.py +0 -5722
  52. azure/ai/textanalytics/_generated/v2022_05_01/models/_text_analytics_client_enums.py +0 -439
  53. azure/ai/textanalytics/_generated/v2022_05_01/operations/_patch.py +0 -120
  54. azure/ai/textanalytics/_generated/v2022_05_01/operations/_text_analytics_client_operations.py +0 -744
  55. azure/ai/textanalytics/_generated/v2022_10_01_preview/__init__.py +0 -20
  56. azure/ai/textanalytics/_generated/v2022_10_01_preview/_configuration.py +0 -72
  57. azure/ai/textanalytics/_generated/v2022_10_01_preview/_patch.py +0 -19
  58. azure/ai/textanalytics/_generated/v2022_10_01_preview/_text_analytics_client.py +0 -100
  59. azure/ai/textanalytics/_generated/v2022_10_01_preview/_vendor.py +0 -45
  60. azure/ai/textanalytics/_generated/v2022_10_01_preview/aio/__init__.py +0 -20
  61. azure/ai/textanalytics/_generated/v2022_10_01_preview/aio/_configuration.py +0 -71
  62. azure/ai/textanalytics/_generated/v2022_10_01_preview/aio/_patch.py +0 -19
  63. azure/ai/textanalytics/_generated/v2022_10_01_preview/aio/_text_analytics_client.py +0 -97
  64. azure/ai/textanalytics/_generated/v2022_10_01_preview/aio/_vendor.py +0 -27
  65. azure/ai/textanalytics/_generated/v2022_10_01_preview/aio/operations/_patch.py +0 -121
  66. azure/ai/textanalytics/_generated/v2022_10_01_preview/aio/operations/_text_analytics_client_operations.py +0 -603
  67. azure/ai/textanalytics/_generated/v2022_10_01_preview/models/__init__.py +0 -405
  68. azure/ai/textanalytics/_generated/v2022_10_01_preview/models/_models_py3.py +0 -8420
  69. azure/ai/textanalytics/_generated/v2022_10_01_preview/models/_patch.py +0 -486
  70. azure/ai/textanalytics/_generated/v2022_10_01_preview/models/_text_analytics_client_enums.py +0 -729
  71. azure/ai/textanalytics/_generated/v2022_10_01_preview/operations/__init__.py +0 -18
  72. azure/ai/textanalytics/_generated/v2022_10_01_preview/operations/_patch.py +0 -120
  73. azure/ai/textanalytics/_generated/v2022_10_01_preview/operations/_text_analytics_client_operations.py +0 -744
  74. azure/ai/textanalytics/_generated/v3_0/__init__.py +0 -20
  75. azure/ai/textanalytics/_generated/v3_0/_configuration.py +0 -66
  76. azure/ai/textanalytics/_generated/v3_0/_patch.py +0 -31
  77. azure/ai/textanalytics/_generated/v3_0/_text_analytics_client.py +0 -96
  78. azure/ai/textanalytics/_generated/v3_0/_vendor.py +0 -33
  79. azure/ai/textanalytics/_generated/v3_0/aio/__init__.py +0 -20
  80. azure/ai/textanalytics/_generated/v3_0/aio/_configuration.py +0 -65
  81. azure/ai/textanalytics/_generated/v3_0/aio/_patch.py +0 -31
  82. azure/ai/textanalytics/_generated/v3_0/aio/_text_analytics_client.py +0 -93
  83. azure/ai/textanalytics/_generated/v3_0/aio/_vendor.py +0 -27
  84. azure/ai/textanalytics/_generated/v3_0/aio/operations/__init__.py +0 -18
  85. azure/ai/textanalytics/_generated/v3_0/aio/operations/_patch.py +0 -19
  86. azure/ai/textanalytics/_generated/v3_0/aio/operations/_text_analytics_client_operations.py +0 -428
  87. azure/ai/textanalytics/_generated/v3_0/models/__init__.py +0 -81
  88. azure/ai/textanalytics/_generated/v3_0/models/_models_py3.py +0 -1467
  89. azure/ai/textanalytics/_generated/v3_0/models/_patch.py +0 -19
  90. azure/ai/textanalytics/_generated/v3_0/models/_text_analytics_client_enums.py +0 -58
  91. azure/ai/textanalytics/_generated/v3_0/operations/__init__.py +0 -18
  92. azure/ai/textanalytics/_generated/v3_0/operations/_patch.py +0 -19
  93. azure/ai/textanalytics/_generated/v3_0/operations/_text_analytics_client_operations.py +0 -604
  94. azure/ai/textanalytics/_generated/v3_1/__init__.py +0 -20
  95. azure/ai/textanalytics/_generated/v3_1/_configuration.py +0 -66
  96. azure/ai/textanalytics/_generated/v3_1/_patch.py +0 -31
  97. azure/ai/textanalytics/_generated/v3_1/_text_analytics_client.py +0 -98
  98. azure/ai/textanalytics/_generated/v3_1/_vendor.py +0 -45
  99. azure/ai/textanalytics/_generated/v3_1/aio/__init__.py +0 -20
  100. azure/ai/textanalytics/_generated/v3_1/aio/_configuration.py +0 -65
  101. azure/ai/textanalytics/_generated/v3_1/aio/_patch.py +0 -31
  102. azure/ai/textanalytics/_generated/v3_1/aio/_text_analytics_client.py +0 -95
  103. azure/ai/textanalytics/_generated/v3_1/aio/_vendor.py +0 -27
  104. azure/ai/textanalytics/_generated/v3_1/aio/operations/__init__.py +0 -18
  105. azure/ai/textanalytics/_generated/v3_1/aio/operations/_patch.py +0 -19
  106. azure/ai/textanalytics/_generated/v3_1/aio/operations/_text_analytics_client_operations.py +0 -1291
  107. azure/ai/textanalytics/_generated/v3_1/models/__init__.py +0 -205
  108. azure/ai/textanalytics/_generated/v3_1/models/_models_py3.py +0 -3976
  109. azure/ai/textanalytics/_generated/v3_1/models/_patch.py +0 -19
  110. azure/ai/textanalytics/_generated/v3_1/models/_text_analytics_client_enums.py +0 -367
  111. azure/ai/textanalytics/_generated/v3_1/operations/__init__.py +0 -18
  112. azure/ai/textanalytics/_generated/v3_1/operations/_patch.py +0 -19
  113. azure/ai/textanalytics/_generated/v3_1/operations/_text_analytics_client_operations.py +0 -1709
  114. azure/ai/textanalytics/_lro.py +0 -553
  115. azure/ai/textanalytics/_models.py +0 -3158
  116. azure/ai/textanalytics/_policies.py +0 -66
  117. azure/ai/textanalytics/_request_handlers.py +0 -104
  118. azure/ai/textanalytics/_response_handlers.py +0 -583
  119. azure/ai/textanalytics/_text_analytics_client.py +0 -2081
  120. azure/ai/textanalytics/_user_agent.py +0 -8
  121. azure/ai/textanalytics/_validate.py +0 -113
  122. azure/ai/textanalytics/aio/_base_client_async.py +0 -98
  123. azure/ai/textanalytics/aio/_lro_async.py +0 -503
  124. azure/ai/textanalytics/aio/_response_handlers_async.py +0 -94
  125. azure/ai/textanalytics/aio/_text_analytics_client_async.py +0 -2077
  126. azure_ai_textanalytics-5.3.0b2.dist-info/RECORD +0 -115
  127. {azure_ai_textanalytics-5.3.0b2.dist-info → azure_ai_textanalytics-6.0.0b1.dist-info/licenses}/LICENSE +0 -0
  128. {azure_ai_textanalytics-5.3.0b2.dist-info → azure_ai_textanalytics-6.0.0b1.dist-info}/top_level.txt +0 -0
@@ -1,439 +0,0 @@
1
- # coding=utf-8
2
- # --------------------------------------------------------------------------
3
- # Copyright (c) Microsoft Corporation. All rights reserved.
4
- # Licensed under the MIT License. See License.txt in the project root for license information.
5
- # Code generated by Microsoft (R) AutoRest Code Generator.
6
- # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- # --------------------------------------------------------------------------
8
-
9
- from enum import Enum
10
- from azure.core import CaseInsensitiveEnumMeta
11
-
12
-
13
- class AnalyzeTextLROResultsKind(str, Enum, metaclass=CaseInsensitiveEnumMeta):
14
- """Enumeration of supported Text Analysis long-running operation task results.
15
- """
16
-
17
- SENTIMENT_ANALYSIS_LRO_RESULTS = "SentimentAnalysisLROResults"
18
- ENTITY_RECOGNITION_LRO_RESULTS = "EntityRecognitionLROResults"
19
- PII_ENTITY_RECOGNITION_LRO_RESULTS = "PiiEntityRecognitionLROResults"
20
- KEY_PHRASE_EXTRACTION_LRO_RESULTS = "KeyPhraseExtractionLROResults"
21
- ENTITY_LINKING_LRO_RESULTS = "EntityLinkingLROResults"
22
- HEALTHCARE_LRO_RESULTS = "HealthcareLROResults"
23
- CUSTOM_ENTITY_RECOGNITION_LRO_RESULTS = "CustomEntityRecognitionLROResults"
24
- CUSTOM_SINGLE_LABEL_CLASSIFICATION_LRO_RESULTS = "CustomSingleLabelClassificationLROResults"
25
- CUSTOM_MULTI_LABEL_CLASSIFICATION_LRO_RESULTS = "CustomMultiLabelClassificationLROResults"
26
-
27
- class AnalyzeTextLROTaskKind(str, Enum, metaclass=CaseInsensitiveEnumMeta):
28
- """Enumeration of supported long-running Text Analysis tasks.
29
- """
30
-
31
- SENTIMENT_ANALYSIS = "SentimentAnalysis"
32
- ENTITY_RECOGNITION = "EntityRecognition"
33
- PII_ENTITY_RECOGNITION = "PiiEntityRecognition"
34
- KEY_PHRASE_EXTRACTION = "KeyPhraseExtraction"
35
- ENTITY_LINKING = "EntityLinking"
36
- HEALTHCARE = "Healthcare"
37
- CUSTOM_ENTITY_RECOGNITION = "CustomEntityRecognition"
38
- CUSTOM_SINGLE_LABEL_CLASSIFICATION = "CustomSingleLabelClassification"
39
- CUSTOM_MULTI_LABEL_CLASSIFICATION = "CustomMultiLabelClassification"
40
-
41
- class AnalyzeTextTaskKind(str, Enum, metaclass=CaseInsensitiveEnumMeta):
42
- """Enumeration of supported Text Analysis tasks.
43
- """
44
-
45
- SENTIMENT_ANALYSIS = "SentimentAnalysis"
46
- ENTITY_RECOGNITION = "EntityRecognition"
47
- PII_ENTITY_RECOGNITION = "PiiEntityRecognition"
48
- KEY_PHRASE_EXTRACTION = "KeyPhraseExtraction"
49
- LANGUAGE_DETECTION = "LanguageDetection"
50
- ENTITY_LINKING = "EntityLinking"
51
-
52
- class AnalyzeTextTaskResultsKind(str, Enum, metaclass=CaseInsensitiveEnumMeta):
53
- """Enumeration of supported Text Analysis task results.
54
- """
55
-
56
- SENTIMENT_ANALYSIS_RESULTS = "SentimentAnalysisResults"
57
- ENTITY_RECOGNITION_RESULTS = "EntityRecognitionResults"
58
- PII_ENTITY_RECOGNITION_RESULTS = "PiiEntityRecognitionResults"
59
- KEY_PHRASE_EXTRACTION_RESULTS = "KeyPhraseExtractionResults"
60
- LANGUAGE_DETECTION_RESULTS = "LanguageDetectionResults"
61
- ENTITY_LINKING_RESULTS = "EntityLinkingResults"
62
-
63
- class Association(str, Enum, metaclass=CaseInsensitiveEnumMeta):
64
- """Describes if the entity is the subject of the text or if it describes someone else.
65
- """
66
-
67
- SUBJECT = "subject"
68
- OTHER = "other"
69
-
70
- class Certainty(str, Enum, metaclass=CaseInsensitiveEnumMeta):
71
- """Describes the entities certainty and polarity.
72
- """
73
-
74
- POSITIVE = "positive"
75
- POSITIVE_POSSIBLE = "positivePossible"
76
- NEUTRAL_POSSIBLE = "neutralPossible"
77
- NEGATIVE_POSSIBLE = "negativePossible"
78
- NEGATIVE = "negative"
79
-
80
- class Conditionality(str, Enum, metaclass=CaseInsensitiveEnumMeta):
81
- """Describes any conditionality on the entity.
82
- """
83
-
84
- HYPOTHETICAL = "hypothetical"
85
- CONDITIONAL = "conditional"
86
-
87
- class DocumentSentimentValue(str, Enum, metaclass=CaseInsensitiveEnumMeta):
88
- """Predicted sentiment for document (Negative, Neutral, Positive, or Mixed).
89
- """
90
-
91
- POSITIVE = "positive"
92
- NEUTRAL = "neutral"
93
- NEGATIVE = "negative"
94
- MIXED = "mixed"
95
-
96
- class ErrorCode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
97
- """Human-readable error code.
98
- """
99
-
100
- INVALID_REQUEST = "InvalidRequest"
101
- INVALID_ARGUMENT = "InvalidArgument"
102
- UNAUTHORIZED = "Unauthorized"
103
- FORBIDDEN = "Forbidden"
104
- NOT_FOUND = "NotFound"
105
- PROJECT_NOT_FOUND = "ProjectNotFound"
106
- OPERATION_NOT_FOUND = "OperationNotFound"
107
- AZURE_COGNITIVE_SEARCH_NOT_FOUND = "AzureCognitiveSearchNotFound"
108
- AZURE_COGNITIVE_SEARCH_INDEX_NOT_FOUND = "AzureCognitiveSearchIndexNotFound"
109
- TOO_MANY_REQUESTS = "TooManyRequests"
110
- AZURE_COGNITIVE_SEARCH_THROTTLING = "AzureCognitiveSearchThrottling"
111
- AZURE_COGNITIVE_SEARCH_INDEX_LIMIT_REACHED = "AzureCognitiveSearchIndexLimitReached"
112
- INTERNAL_SERVER_ERROR = "InternalServerError"
113
- SERVICE_UNAVAILABLE = "ServiceUnavailable"
114
- TIMEOUT = "Timeout"
115
- QUOTA_EXCEEDED = "QuotaExceeded"
116
- CONFLICT = "Conflict"
117
- WARNING = "Warning"
118
-
119
- class HealthcareEntityCategory(str, Enum, metaclass=CaseInsensitiveEnumMeta):
120
- """Healthcare Entity Category.
121
- """
122
-
123
- BODY_STRUCTURE = "BodyStructure"
124
- AGE = "Age"
125
- GENDER = "Gender"
126
- EXAMINATION_NAME = "ExaminationName"
127
- DATE = "Date"
128
- DIRECTION = "Direction"
129
- FREQUENCY = "Frequency"
130
- MEASUREMENT_VALUE = "MeasurementValue"
131
- MEASUREMENT_UNIT = "MeasurementUnit"
132
- RELATIONAL_OPERATOR = "RelationalOperator"
133
- TIME = "Time"
134
- GENE_OR_PROTEIN = "GeneOrProtein"
135
- VARIANT = "Variant"
136
- ADMINISTRATIVE_EVENT = "AdministrativeEvent"
137
- CARE_ENVIRONMENT = "CareEnvironment"
138
- HEALTHCARE_PROFESSION = "HealthcareProfession"
139
- DIAGNOSIS = "Diagnosis"
140
- SYMPTOM_OR_SIGN = "SymptomOrSign"
141
- CONDITION_QUALIFIER = "ConditionQualifier"
142
- MEDICATION_CLASS = "MedicationClass"
143
- MEDICATION_NAME = "MedicationName"
144
- DOSAGE = "Dosage"
145
- MEDICATION_FORM = "MedicationForm"
146
- MEDICATION_ROUTE = "MedicationRoute"
147
- FAMILY_RELATION = "FamilyRelation"
148
- TREATMENT_NAME = "TreatmentName"
149
-
150
- class InnerErrorCode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
151
- """Human-readable error code.
152
- """
153
-
154
- INVALID_REQUEST = "InvalidRequest"
155
- INVALID_PARAMETER_VALUE = "InvalidParameterValue"
156
- KNOWLEDGE_BASE_NOT_FOUND = "KnowledgeBaseNotFound"
157
- AZURE_COGNITIVE_SEARCH_NOT_FOUND = "AzureCognitiveSearchNotFound"
158
- AZURE_COGNITIVE_SEARCH_THROTTLING = "AzureCognitiveSearchThrottling"
159
- EXTRACTION_FAILURE = "ExtractionFailure"
160
- INVALID_REQUEST_BODY_FORMAT = "InvalidRequestBodyFormat"
161
- EMPTY_REQUEST = "EmptyRequest"
162
- MISSING_INPUT_DOCUMENTS = "MissingInputDocuments"
163
- INVALID_DOCUMENT = "InvalidDocument"
164
- MODEL_VERSION_INCORRECT = "ModelVersionIncorrect"
165
- INVALID_DOCUMENT_BATCH = "InvalidDocumentBatch"
166
- UNSUPPORTED_LANGUAGE_CODE = "UnsupportedLanguageCode"
167
- INVALID_COUNTRY_HINT = "InvalidCountryHint"
168
-
169
- class PiiCategory(str, Enum, metaclass=CaseInsensitiveEnumMeta):
170
- """PiiCategory.
171
- """
172
-
173
- ABA_ROUTING_NUMBER = "ABARoutingNumber"
174
- AR_NATIONAL_IDENTITY_NUMBER = "ARNationalIdentityNumber"
175
- AU_BANK_ACCOUNT_NUMBER = "AUBankAccountNumber"
176
- AU_DRIVERS_LICENSE_NUMBER = "AUDriversLicenseNumber"
177
- AU_MEDICAL_ACCOUNT_NUMBER = "AUMedicalAccountNumber"
178
- AU_PASSPORT_NUMBER = "AUPassportNumber"
179
- AU_TAX_FILE_NUMBER = "AUTaxFileNumber"
180
- AU_BUSINESS_NUMBER = "AUBusinessNumber"
181
- AU_COMPANY_NUMBER = "AUCompanyNumber"
182
- AT_IDENTITY_CARD = "ATIdentityCard"
183
- AT_TAX_IDENTIFICATION_NUMBER = "ATTaxIdentificationNumber"
184
- AT_VALUE_ADDED_TAX_NUMBER = "ATValueAddedTaxNumber"
185
- AZURE_DOCUMENT_DB_AUTH_KEY = "AzureDocumentDBAuthKey"
186
- AZURE_IAAS_DATABASE_CONNECTION_AND_SQL_STRING = "AzureIAASDatabaseConnectionAndSQLString"
187
- AZURE_IO_T_CONNECTION_STRING = "AzureIoTConnectionString"
188
- AZURE_PUBLISH_SETTING_PASSWORD = "AzurePublishSettingPassword"
189
- AZURE_REDIS_CACHE_STRING = "AzureRedisCacheString"
190
- AZURE_SAS = "AzureSAS"
191
- AZURE_SERVICE_BUS_STRING = "AzureServiceBusString"
192
- AZURE_STORAGE_ACCOUNT_KEY = "AzureStorageAccountKey"
193
- AZURE_STORAGE_ACCOUNT_GENERIC = "AzureStorageAccountGeneric"
194
- BE_NATIONAL_NUMBER = "BENationalNumber"
195
- BE_NATIONAL_NUMBER_V2 = "BENationalNumberV2"
196
- BE_VALUE_ADDED_TAX_NUMBER = "BEValueAddedTaxNumber"
197
- BRCPF_NUMBER = "BRCPFNumber"
198
- BR_LEGAL_ENTITY_NUMBER = "BRLegalEntityNumber"
199
- BR_NATIONAL_IDRG = "BRNationalIDRG"
200
- BG_UNIFORM_CIVIL_NUMBER = "BGUniformCivilNumber"
201
- CA_BANK_ACCOUNT_NUMBER = "CABankAccountNumber"
202
- CA_DRIVERS_LICENSE_NUMBER = "CADriversLicenseNumber"
203
- CA_HEALTH_SERVICE_NUMBER = "CAHealthServiceNumber"
204
- CA_PASSPORT_NUMBER = "CAPassportNumber"
205
- CA_PERSONAL_HEALTH_IDENTIFICATION = "CAPersonalHealthIdentification"
206
- CA_SOCIAL_INSURANCE_NUMBER = "CASocialInsuranceNumber"
207
- CL_IDENTITY_CARD_NUMBER = "CLIdentityCardNumber"
208
- CN_RESIDENT_IDENTITY_CARD_NUMBER = "CNResidentIdentityCardNumber"
209
- CREDIT_CARD_NUMBER = "CreditCardNumber"
210
- HR_IDENTITY_CARD_NUMBER = "HRIdentityCardNumber"
211
- HR_NATIONAL_ID_NUMBER = "HRNationalIDNumber"
212
- HR_PERSONAL_IDENTIFICATION_NUMBER = "HRPersonalIdentificationNumber"
213
- HR_PERSONAL_IDENTIFICATION_OIB_NUMBER_V2 = "HRPersonalIdentificationOIBNumberV2"
214
- CY_IDENTITY_CARD = "CYIdentityCard"
215
- CY_TAX_IDENTIFICATION_NUMBER = "CYTaxIdentificationNumber"
216
- CZ_PERSONAL_IDENTITY_NUMBER = "CZPersonalIdentityNumber"
217
- CZ_PERSONAL_IDENTITY_V2 = "CZPersonalIdentityV2"
218
- DK_PERSONAL_IDENTIFICATION_NUMBER = "DKPersonalIdentificationNumber"
219
- DK_PERSONAL_IDENTIFICATION_V2 = "DKPersonalIdentificationV2"
220
- DRUG_ENFORCEMENT_AGENCY_NUMBER = "DrugEnforcementAgencyNumber"
221
- EE_PERSONAL_IDENTIFICATION_CODE = "EEPersonalIdentificationCode"
222
- EU_DEBIT_CARD_NUMBER = "EUDebitCardNumber"
223
- EU_DRIVERS_LICENSE_NUMBER = "EUDriversLicenseNumber"
224
- EUGPS_COORDINATES = "EUGPSCoordinates"
225
- EU_NATIONAL_IDENTIFICATION_NUMBER = "EUNationalIdentificationNumber"
226
- EU_PASSPORT_NUMBER = "EUPassportNumber"
227
- EU_SOCIAL_SECURITY_NUMBER = "EUSocialSecurityNumber"
228
- EU_TAX_IDENTIFICATION_NUMBER = "EUTaxIdentificationNumber"
229
- FI_EUROPEAN_HEALTH_NUMBER = "FIEuropeanHealthNumber"
230
- FI_NATIONAL_ID = "FINationalID"
231
- FI_NATIONAL_IDV2 = "FINationalIDV2"
232
- FI_PASSPORT_NUMBER = "FIPassportNumber"
233
- FR_DRIVERS_LICENSE_NUMBER = "FRDriversLicenseNumber"
234
- FR_HEALTH_INSURANCE_NUMBER = "FRHealthInsuranceNumber"
235
- FR_NATIONAL_ID = "FRNationalID"
236
- FR_PASSPORT_NUMBER = "FRPassportNumber"
237
- FR_SOCIAL_SECURITY_NUMBER = "FRSocialSecurityNumber"
238
- FR_TAX_IDENTIFICATION_NUMBER = "FRTaxIdentificationNumber"
239
- FR_VALUE_ADDED_TAX_NUMBER = "FRValueAddedTaxNumber"
240
- DE_DRIVERS_LICENSE_NUMBER = "DEDriversLicenseNumber"
241
- DE_PASSPORT_NUMBER = "DEPassportNumber"
242
- DE_IDENTITY_CARD_NUMBER = "DEIdentityCardNumber"
243
- DE_TAX_IDENTIFICATION_NUMBER = "DETaxIdentificationNumber"
244
- DE_VALUE_ADDED_NUMBER = "DEValueAddedNumber"
245
- GR_NATIONAL_ID_CARD = "GRNationalIDCard"
246
- GR_NATIONAL_IDV2 = "GRNationalIDV2"
247
- GR_TAX_IDENTIFICATION_NUMBER = "GRTaxIdentificationNumber"
248
- HK_IDENTITY_CARD_NUMBER = "HKIdentityCardNumber"
249
- HU_VALUE_ADDED_NUMBER = "HUValueAddedNumber"
250
- HU_PERSONAL_IDENTIFICATION_NUMBER = "HUPersonalIdentificationNumber"
251
- HU_TAX_IDENTIFICATION_NUMBER = "HUTaxIdentificationNumber"
252
- IN_PERMANENT_ACCOUNT = "INPermanentAccount"
253
- IN_UNIQUE_IDENTIFICATION_NUMBER = "INUniqueIdentificationNumber"
254
- ID_IDENTITY_CARD_NUMBER = "IDIdentityCardNumber"
255
- INTERNATIONAL_BANKING_ACCOUNT_NUMBER = "InternationalBankingAccountNumber"
256
- IE_PERSONAL_PUBLIC_SERVICE_NUMBER = "IEPersonalPublicServiceNumber"
257
- IE_PERSONAL_PUBLIC_SERVICE_NUMBER_V2 = "IEPersonalPublicServiceNumberV2"
258
- IL_BANK_ACCOUNT_NUMBER = "ILBankAccountNumber"
259
- IL_NATIONAL_ID = "ILNationalID"
260
- IT_DRIVERS_LICENSE_NUMBER = "ITDriversLicenseNumber"
261
- IT_FISCAL_CODE = "ITFiscalCode"
262
- IT_VALUE_ADDED_TAX_NUMBER = "ITValueAddedTaxNumber"
263
- JP_BANK_ACCOUNT_NUMBER = "JPBankAccountNumber"
264
- JP_DRIVERS_LICENSE_NUMBER = "JPDriversLicenseNumber"
265
- JP_PASSPORT_NUMBER = "JPPassportNumber"
266
- JP_RESIDENT_REGISTRATION_NUMBER = "JPResidentRegistrationNumber"
267
- JP_SOCIAL_INSURANCE_NUMBER = "JPSocialInsuranceNumber"
268
- JP_MY_NUMBER_CORPORATE = "JPMyNumberCorporate"
269
- JP_MY_NUMBER_PERSONAL = "JPMyNumberPersonal"
270
- JP_RESIDENCE_CARD_NUMBER = "JPResidenceCardNumber"
271
- LV_PERSONAL_CODE = "LVPersonalCode"
272
- LT_PERSONAL_CODE = "LTPersonalCode"
273
- LU_NATIONAL_IDENTIFICATION_NUMBER_NATURAL = "LUNationalIdentificationNumberNatural"
274
- LU_NATIONAL_IDENTIFICATION_NUMBER_NON_NATURAL = "LUNationalIdentificationNumberNonNatural"
275
- MY_IDENTITY_CARD_NUMBER = "MYIdentityCardNumber"
276
- MT_IDENTITY_CARD_NUMBER = "MTIdentityCardNumber"
277
- MT_TAX_ID_NUMBER = "MTTaxIDNumber"
278
- NL_CITIZENS_SERVICE_NUMBER = "NLCitizensServiceNumber"
279
- NL_CITIZENS_SERVICE_NUMBER_V2 = "NLCitizensServiceNumberV2"
280
- NL_TAX_IDENTIFICATION_NUMBER = "NLTaxIdentificationNumber"
281
- NL_VALUE_ADDED_TAX_NUMBER = "NLValueAddedTaxNumber"
282
- NZ_BANK_ACCOUNT_NUMBER = "NZBankAccountNumber"
283
- NZ_DRIVERS_LICENSE_NUMBER = "NZDriversLicenseNumber"
284
- NZ_INLAND_REVENUE_NUMBER = "NZInlandRevenueNumber"
285
- NZ_MINISTRY_OF_HEALTH_NUMBER = "NZMinistryOfHealthNumber"
286
- NZ_SOCIAL_WELFARE_NUMBER = "NZSocialWelfareNumber"
287
- NO_IDENTITY_NUMBER = "NOIdentityNumber"
288
- PH_UNIFIED_MULTI_PURPOSE_ID_NUMBER = "PHUnifiedMultiPurposeIDNumber"
289
- PL_IDENTITY_CARD = "PLIdentityCard"
290
- PL_NATIONAL_ID = "PLNationalID"
291
- PL_NATIONAL_IDV2 = "PLNationalIDV2"
292
- PL_PASSPORT_NUMBER = "PLPassportNumber"
293
- PL_TAX_IDENTIFICATION_NUMBER = "PLTaxIdentificationNumber"
294
- PLREGON_NUMBER = "PLREGONNumber"
295
- PT_CITIZEN_CARD_NUMBER = "PTCitizenCardNumber"
296
- PT_CITIZEN_CARD_NUMBER_V2 = "PTCitizenCardNumberV2"
297
- PT_TAX_IDENTIFICATION_NUMBER = "PTTaxIdentificationNumber"
298
- RO_PERSONAL_NUMERICAL_CODE = "ROPersonalNumericalCode"
299
- RU_PASSPORT_NUMBER_DOMESTIC = "RUPassportNumberDomestic"
300
- RU_PASSPORT_NUMBER_INTERNATIONAL = "RUPassportNumberInternational"
301
- SA_NATIONAL_ID = "SANationalID"
302
- SG_NATIONAL_REGISTRATION_IDENTITY_CARD_NUMBER = "SGNationalRegistrationIdentityCardNumber"
303
- SK_PERSONAL_NUMBER = "SKPersonalNumber"
304
- SI_TAX_IDENTIFICATION_NUMBER = "SITaxIdentificationNumber"
305
- SI_UNIQUE_MASTER_CITIZEN_NUMBER = "SIUniqueMasterCitizenNumber"
306
- ZA_IDENTIFICATION_NUMBER = "ZAIdentificationNumber"
307
- KR_RESIDENT_REGISTRATION_NUMBER = "KRResidentRegistrationNumber"
308
- ESDNI = "ESDNI"
309
- ES_SOCIAL_SECURITY_NUMBER = "ESSocialSecurityNumber"
310
- ES_TAX_IDENTIFICATION_NUMBER = "ESTaxIdentificationNumber"
311
- SQL_SERVER_CONNECTION_STRING = "SQLServerConnectionString"
312
- SE_NATIONAL_ID = "SENationalID"
313
- SE_NATIONAL_IDV2 = "SENationalIDV2"
314
- SE_PASSPORT_NUMBER = "SEPassportNumber"
315
- SE_TAX_IDENTIFICATION_NUMBER = "SETaxIdentificationNumber"
316
- SWIFT_CODE = "SWIFTCode"
317
- CH_SOCIAL_SECURITY_NUMBER = "CHSocialSecurityNumber"
318
- TW_NATIONAL_ID = "TWNationalID"
319
- TW_PASSPORT_NUMBER = "TWPassportNumber"
320
- TW_RESIDENT_CERTIFICATE = "TWResidentCertificate"
321
- TH_POPULATION_IDENTIFICATION_CODE = "THPopulationIdentificationCode"
322
- TR_NATIONAL_IDENTIFICATION_NUMBER = "TRNationalIdentificationNumber"
323
- UK_DRIVERS_LICENSE_NUMBER = "UKDriversLicenseNumber"
324
- UK_ELECTORAL_ROLL_NUMBER = "UKElectoralRollNumber"
325
- UK_NATIONAL_HEALTH_NUMBER = "UKNationalHealthNumber"
326
- UK_NATIONAL_INSURANCE_NUMBER = "UKNationalInsuranceNumber"
327
- UK_UNIQUE_TAXPAYER_NUMBER = "UKUniqueTaxpayerNumber"
328
- USUK_PASSPORT_NUMBER = "USUKPassportNumber"
329
- US_BANK_ACCOUNT_NUMBER = "USBankAccountNumber"
330
- US_DRIVERS_LICENSE_NUMBER = "USDriversLicenseNumber"
331
- US_INDIVIDUAL_TAXPAYER_IDENTIFICATION = "USIndividualTaxpayerIdentification"
332
- US_SOCIAL_SECURITY_NUMBER = "USSocialSecurityNumber"
333
- UA_PASSPORT_NUMBER_DOMESTIC = "UAPassportNumberDomestic"
334
- UA_PASSPORT_NUMBER_INTERNATIONAL = "UAPassportNumberInternational"
335
- ORGANIZATION = "Organization"
336
- EMAIL = "Email"
337
- URL = "URL"
338
- AGE = "Age"
339
- PHONE_NUMBER = "PhoneNumber"
340
- IP_ADDRESS = "IPAddress"
341
- DATE = "Date"
342
- PERSON = "Person"
343
- ADDRESS = "Address"
344
- ALL = "All"
345
- DEFAULT = "Default"
346
-
347
- class PiiDomain(str, Enum, metaclass=CaseInsensitiveEnumMeta):
348
- """The PII domain used for PII Entity Recognition.
349
- """
350
-
351
- #: Indicates that entities in the Personal Health Information domain should be redacted.
352
- PHI = "phi"
353
- #: Indicates that no domain is specified.
354
- NONE = "none"
355
-
356
- class RelationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
357
- """Type of relation. Examples include: ``DosageOfMedication`` or 'FrequencyOfMedication', etc.
358
- """
359
-
360
- ABBREVIATION = "Abbreviation"
361
- DIRECTION_OF_BODY_STRUCTURE = "DirectionOfBodyStructure"
362
- DIRECTION_OF_CONDITION = "DirectionOfCondition"
363
- DIRECTION_OF_EXAMINATION = "DirectionOfExamination"
364
- DIRECTION_OF_TREATMENT = "DirectionOfTreatment"
365
- DOSAGE_OF_MEDICATION = "DosageOfMedication"
366
- FORM_OF_MEDICATION = "FormOfMedication"
367
- FREQUENCY_OF_MEDICATION = "FrequencyOfMedication"
368
- FREQUENCY_OF_TREATMENT = "FrequencyOfTreatment"
369
- QUALIFIER_OF_CONDITION = "QualifierOfCondition"
370
- RELATION_OF_EXAMINATION = "RelationOfExamination"
371
- ROUTE_OF_MEDICATION = "RouteOfMedication"
372
- TIME_OF_CONDITION = "TimeOfCondition"
373
- TIME_OF_EVENT = "TimeOfEvent"
374
- TIME_OF_EXAMINATION = "TimeOfExamination"
375
- TIME_OF_MEDICATION = "TimeOfMedication"
376
- TIME_OF_TREATMENT = "TimeOfTreatment"
377
- UNIT_OF_CONDITION = "UnitOfCondition"
378
- UNIT_OF_EXAMINATION = "UnitOfExamination"
379
- VALUE_OF_CONDITION = "ValueOfCondition"
380
- VALUE_OF_EXAMINATION = "ValueOfExamination"
381
-
382
- class SentenceSentimentValue(str, Enum, metaclass=CaseInsensitiveEnumMeta):
383
- """The predicted Sentiment for the sentence.
384
- """
385
-
386
- POSITIVE = "positive"
387
- NEUTRAL = "neutral"
388
- NEGATIVE = "negative"
389
-
390
- class State(str, Enum, metaclass=CaseInsensitiveEnumMeta):
391
- """State.
392
- """
393
-
394
- NOT_STARTED = "notStarted"
395
- RUNNING = "running"
396
- SUCCEEDED = "succeeded"
397
- PARTIALLY_COMPLETED = "partiallyCompleted"
398
- FAILED = "failed"
399
- CANCELLED = "cancelled"
400
- CANCELLING = "cancelling"
401
-
402
- class StringIndexType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
403
- """Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes)
404
- according to Unicode v8.0.0. For additional information see
405
- https://aka.ms/text-analytics-offsets.
406
- """
407
-
408
- #: Returned offset and length values will correspond to TextElements (Graphemes and Grapheme
409
- #: clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is
410
- #: written in .Net Framework or .Net Core and you will be using StringInfo.
411
- TEXT_ELEMENTS_V8 = "TextElements_v8"
412
- #: Returned offset and length values will correspond to Unicode code points. Use this option if
413
- #: your application is written in a language that support Unicode, for example Python.
414
- UNICODE_CODE_POINT = "UnicodeCodePoint"
415
- #: Returned offset and length values will correspond to UTF-16 code units. Use this option if your
416
- #: application is written in a language that support Unicode, for example Java, JavaScript.
417
- UTF16_CODE_UNIT = "Utf16CodeUnit"
418
-
419
- class TargetRelationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
420
- """The type related to the target.
421
- """
422
-
423
- ASSESSMENT = "assessment"
424
- TARGET = "target"
425
-
426
- class TokenSentimentValue(str, Enum, metaclass=CaseInsensitiveEnumMeta):
427
- """Targeted sentiment in the sentence.
428
- """
429
-
430
- POSITIVE = "positive"
431
- MIXED = "mixed"
432
- NEGATIVE = "negative"
433
-
434
- class WarningCodeValue(str, Enum, metaclass=CaseInsensitiveEnumMeta):
435
- """Error code.
436
- """
437
-
438
- LONG_WORDS_IN_DOCUMENT = "LongWordsInDocument"
439
- DOCUMENT_TRUNCATED = "DocumentTruncated"
@@ -1,120 +0,0 @@
1
- # ------------------------------------
2
- # Copyright (c) Microsoft Corporation.
3
- # Licensed under the MIT License.
4
- # ------------------------------------
5
- """Customize generated code here.
6
-
7
- Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
8
- """
9
- from typing import List, Any, Optional, Union, TypeVar, Callable, Dict, cast
10
- from azure.core.tracing.decorator import distributed_trace
11
- from azure.core.utils import case_insensitive_dict
12
- from azure.core.pipeline import PipelineResponse
13
- from azure.core.pipeline.transport import HttpResponse
14
- from azure.core.polling import LROPoller, NoPolling, PollingMethod
15
- from azure.core.rest import HttpRequest
16
- from ._text_analytics_client_operations import TextAnalyticsClientOperationsMixin as GeneratedTextAnalyticsClientOperationsMixin
17
- from ...._lro import AnalyzeActionsLROPoller, AnalyzeActionsLROPollingMethod
18
- from .. import models as _models
19
- T = TypeVar('T')
20
- ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
21
-
22
-
23
- class TextAnalyticsClientOperationsMixin(GeneratedTextAnalyticsClientOperationsMixin):
24
-
25
- @distributed_trace
26
- def begin_analyze_text_submit_job(
27
- self,
28
- body: _models.AnalyzeTextJobsInput,
29
- **kwargs: Any
30
- ) -> AnalyzeActionsLROPoller[_models.AnalyzeTextJobState]:
31
- """Submit text analysis job.
32
-
33
- Submit a collection of text documents for analysis. Specify one or more unique tasks to be
34
- executed as a long-running operation.
35
-
36
- :param body: Collection of documents to analyze and one or more tasks to execute.
37
- :type body: ~azure.ai.textanalytics.v2022_05_01.models.AnalyzeTextJobsInput
38
- :keyword callable cls: A custom type or function that will be passed the direct response
39
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
40
- :keyword polling: By default, your polling method will be AnalyzeActionsLROPollingMethod. Pass
41
- in False for this operation to not poll, or pass in your own initialized polling object for a
42
- personal polling strategy.
43
- :paramtype polling: bool or ~azure.core.polling.PollingMethod
44
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
45
- Retry-After header is present.
46
- :return: An instance of AnalyzeActionsLROPoller that returns either AnalyzeTextJobState or the
47
- result of cls(response)
48
- :rtype:
49
- ~...._lro.AnalyzeActionsLROPoller[~azure.ai.textanalytics.v2022_05_01.models.AnalyzeTextJobState]
50
- :raises: ~azure.core.exceptions.HttpResponseError
51
- """
52
-
53
- poller_cls = kwargs.pop("poller_cls", AnalyzeActionsLROPoller) # Handwritten
54
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
55
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
56
-
57
- api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-05-01")) # type: str
58
- content_type = kwargs.pop('content_type', _headers.pop('Content-Type', None)) # type: Optional[str]
59
- cls = kwargs.pop('cls', None) # type: ClsType[_models.AnalyzeTextJobState]
60
- polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod]
61
- lro_delay = kwargs.pop(
62
- 'polling_interval',
63
- self._config.polling_interval
64
- )
65
- cont_token = kwargs.pop('continuation_token', None) # type: Optional[str]
66
- if cont_token is None:
67
- raw_result = self._analyze_text_submit_job_initial( # type: ignore
68
- body=body,
69
- api_version=api_version,
70
- content_type=content_type,
71
- cls=lambda x,y,z: x,
72
- headers=_headers,
73
- params=_params,
74
- **kwargs
75
- )
76
- kwargs.pop('error_map', None)
77
-
78
- def get_long_running_output(pipeline_response):
79
- deserialized = self._deserialize('AnalyzeTextJobState', pipeline_response)
80
- if cls:
81
- return cls(pipeline_response, deserialized, {})
82
- return deserialized
83
-
84
-
85
- path_format_arguments = {
86
- "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True),
87
- }
88
-
89
- if polling is True:
90
- polling_method = cast(PollingMethod, AnalyzeActionsLROPollingMethod(
91
- lro_delay,
92
-
93
- path_format_arguments=path_format_arguments,
94
- **kwargs
95
- )) # type: PollingMethod
96
- elif polling is False:
97
- polling_method = cast(PollingMethod, NoPolling())
98
- else:
99
- polling_method = polling
100
- if cont_token:
101
- return poller_cls.from_continuation_token( # Handwritten
102
- polling_method=polling_method,
103
- continuation_token=cont_token,
104
- client=self._client,
105
- deserialization_callback=get_long_running_output
106
- )
107
- return poller_cls(self._client, raw_result, get_long_running_output, polling_method) # Handwritten
108
-
109
- begin_analyze_text_submit_job.metadata = {'url': "/analyze-text/jobs"} # type: ignore
110
-
111
-
112
- __all__: List[str] = ["TextAnalyticsClientOperationsMixin"] # Add all objects you want publicly available to users at this package level
113
-
114
- def patch_sdk():
115
- """Do not remove from this file.
116
-
117
- `patch_sdk` is a last resort escape hatch that allows you to do customizations
118
- you can't accomplish using the techniques described in
119
- https://aka.ms/azsdk/python/dpcodegen/python/customize
120
- """