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,486 +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, Optional
10
- from typing_extensions import Literal
11
- from ._models_py3 import (
12
- AgeResolution as GeneratedAgeResolution,
13
- AreaResolution as GeneratedAreaResolution,
14
- CurrencyResolution as GeneratedCurrencyResolution,
15
- DateTimeResolution as GeneratedDateTimeResolution,
16
- InformationResolution as GeneratedInformationResolution,
17
- LengthResolution as GeneratedLengthResolution,
18
- NumberResolution as GeneratedNumberResolution,
19
- NumericRangeResolution as GeneratedNumericRangeResolution,
20
- OrdinalResolution as GeneratedOrdinalResolution,
21
- SpeedResolution as GeneratedSpeedResolution,
22
- TemperatureResolution as GeneratedTemperatureResolution,
23
- TemporalSpanResolution as GeneratedTemporalSpanResolution,
24
- VolumeResolution as GeneratedVolumeResolution,
25
- WeightResolution as GeneratedWeightResolution,
26
- )
27
- from ...._dict_mixin import DictMixin
28
-
29
-
30
- # add dict-like capabilities that all other exposed models have in the TA library
31
- class AgeResolution(GeneratedAgeResolution, DictMixin):
32
- """Represents the Age entity resolution model.
33
- """
34
-
35
- resolution_kind: Literal["AgeResolution"] = "AgeResolution"
36
- """The entity resolution object kind. Required. Known values are
37
- "DateTimeResolution" "NumberResolution", "OrdinalResolution",
38
- "SpeedResolution", "WeightResolution", "LengthResolution", "VolumeResolution",
39
- "AreaResolution", "AgeResolution", "InformationResolution", "TemperatureResolution",
40
- "CurrencyResolution", "NumericRangeResolution", and "TemporalSpanResolution".
41
- Described in :class:`~azure.ai.textanalytics.ResolutionKind`."""
42
- value: float
43
- """The numeric value that the extracted text denotes. Required."""
44
- unit: str
45
- """The Age Unit of measurement. Required. Known values are "Unspecified", "Year",
46
- "Month", "Week", and "Day". Described in :class:`~azure.ai.textanalytics.AgeUnit`."""
47
-
48
- def __init__(
49
- self,
50
- *,
51
- value: float,
52
- unit: str,
53
- **kwargs
54
- ):
55
- super().__init__(value=value, unit=unit, **kwargs)
56
-
57
-
58
- class AreaResolution(GeneratedAreaResolution, DictMixin):
59
- """Represents the area entity resolution model.
60
- """
61
-
62
- resolution_kind: Literal["AreaResolution"] = "AreaResolution"
63
- """The entity resolution object kind. Required. Known values are
64
- "DateTimeResolution" "NumberResolution", "OrdinalResolution",
65
- "SpeedResolution", "WeightResolution", "LengthResolution", "VolumeResolution",
66
- "AreaResolution", "AgeResolution", "InformationResolution", "TemperatureResolution",
67
- "CurrencyResolution", "NumericRangeResolution", and "TemporalSpanResolution".
68
- Described in :class:`~azure.ai.textanalytics.ResolutionKind`."""
69
- value: float
70
- """The numeric value that the extracted text denotes. Required."""
71
- unit: str
72
- """The area Unit of measurement. Required. Known values are "Unspecified",
73
- "SquareKilometer", "SquareHectometer", "SquareDecameter", "SquareDecimeter", "SquareMeter",
74
- "SquareCentimeter", "SquareMillimeter", "SquareInch", "SquareFoot", "SquareMile", "SquareYard",
75
- and "Acre". Described in :class:`~azure.ai.textanalytics.AreaUnit`."""
76
-
77
- def __init__(
78
- self,
79
- *,
80
- value: float,
81
- unit: str,
82
- **kwargs
83
- ):
84
- super().__init__(value=value, unit=unit, **kwargs)
85
-
86
-
87
- class CurrencyResolution(GeneratedCurrencyResolution, DictMixin):
88
- """Represents the currency entity resolution model.
89
- """
90
-
91
- resolution_kind: Literal["CurrencyResolution"] = "CurrencyResolution"
92
- """The entity resolution object kind. Required. Known values are
93
- "DateTimeResolution" "NumberResolution", "OrdinalResolution",
94
- "SpeedResolution", "WeightResolution", "LengthResolution", "VolumeResolution",
95
- "AreaResolution", "AgeResolution", "InformationResolution", "TemperatureResolution",
96
- "CurrencyResolution", "NumericRangeResolution", and "TemporalSpanResolution".
97
- Described in :class:`~azure.ai.textanalytics.ResolutionKind`."""
98
- value: float
99
- """The numeric value that the extracted text denotes. Required."""
100
- unit: str
101
- """The unit of the amount captured in the extracted entity. Required."""
102
- iso4217: Optional[str]
103
- """The alphabetic code based on another ISO standard, ISO 3166, which lists the
104
- codes for country names. The first two letters of the ISO 4217 three-letter code are the same
105
- as the code for the country name, and, where possible, the third letter corresponds to the
106
- first letter of the currency name."""
107
-
108
- def __init__(
109
- self,
110
- *,
111
- value: float,
112
- unit: str,
113
- iso4217: Optional[str] = None,
114
- **kwargs
115
- ):
116
- super().__init__(value=value, unit=unit, iso4217=iso4217, **kwargs)
117
-
118
-
119
- class DateTimeResolution(GeneratedDateTimeResolution, DictMixin):
120
- """A resolution for datetime entity instances.
121
- """
122
-
123
- resolution_kind: Literal["DateTimeResolution"] = "DateTimeResolution"
124
- """The entity resolution object kind. Required. Known values are
125
- "DateTimeResolution" "NumberResolution", "OrdinalResolution",
126
- "SpeedResolution", "WeightResolution", "LengthResolution", "VolumeResolution",
127
- "AreaResolution", "AgeResolution", "InformationResolution", "TemperatureResolution",
128
- "CurrencyResolution", "NumericRangeResolution", and "TemporalSpanResolution".
129
- Described in :class:`~azure.ai.textanalytics.ResolutionKind`."""
130
- timex: str
131
- """An extended ISO 8601 date/time representation as described in
132
- (https://github.com/Microsoft/Recognizers-Text/blob/master/Patterns/English/English-DateTime.yaml).
133
- Required."""
134
- date_time_sub_kind: str
135
- """The DateTime SubKind. Required. Known values are "Time", "Date",
136
- "DateTime", "Duration", and "Set". Described in :class:`~azure.ai.textanalytics.DateTimeSubKind`."""
137
- value: str
138
- """The actual time that the extracted text denote. Required."""
139
- modifier: Optional[str]
140
- """An optional modifier of a date/time instance. Known values are "AfterApprox",
141
- "Before", "BeforeStart", "Approx", "ReferenceUndefined", "SinceEnd", "AfterMid", "Start",
142
- "After", "BeforeEnd", "Until", "End", "Less", "Since", "AfterStart", "BeforeApprox", "Mid", and
143
- "More". Described in :class:`~azure.ai.textanalytics.TemporalModifier`."""
144
-
145
- def __init__(
146
- self,
147
- *,
148
- timex: str,
149
- date_time_sub_kind: str,
150
- value: str,
151
- modifier: Optional[str] = None,
152
- **kwargs
153
- ):
154
- super().__init__(timex=timex, date_time_sub_kind=date_time_sub_kind, value=value, modifier=modifier, **kwargs)
155
-
156
-
157
- class InformationResolution(GeneratedInformationResolution, DictMixin):
158
- """Represents the information (data) entity resolution model.
159
- """
160
-
161
- resolution_kind: Literal["InformationResolution"] = "InformationResolution"
162
- """The entity resolution object kind. Required. Known values are
163
- "DateTimeResolution" "NumberResolution", "OrdinalResolution",
164
- "SpeedResolution", "WeightResolution", "LengthResolution", "VolumeResolution",
165
- "AreaResolution", "AgeResolution", "InformationResolution", "TemperatureResolution",
166
- "CurrencyResolution", "NumericRangeResolution", and "TemporalSpanResolution".
167
- Described in :class:`~azure.ai.textanalytics.ResolutionKind`."""
168
- value: float
169
- """The numeric value that the extracted text denotes. Required."""
170
- unit: str
171
- """The information (data) Unit of measurement. Required. Known values are
172
- "Unspecified", "Bit", "Kilobit", "Megabit", "Gigabit", "Terabit", "Petabit", "Byte",
173
- "Kilobyte", "Megabyte", "Gigabyte", "Terabyte", and "Petabyte".
174
- Described in :class:`~azure.ai.textanalytics.InformationUnit`."""
175
-
176
- def __init__(
177
- self,
178
- *,
179
- value: float,
180
- unit: str,
181
- **kwargs
182
- ):
183
- super().__init__(value=value, unit=unit, **kwargs)
184
-
185
-
186
- class LengthResolution(GeneratedLengthResolution, DictMixin):
187
- """Represents the length entity resolution model.
188
- """
189
-
190
- resolution_kind: Literal["LengthResolution"] = "LengthResolution"
191
- """The entity resolution object kind. Required. Known values are
192
- "DateTimeResolution" "NumberResolution", "OrdinalResolution",
193
- "SpeedResolution", "WeightResolution", "LengthResolution", "VolumeResolution",
194
- "AreaResolution", "AgeResolution", "InformationResolution", "TemperatureResolution",
195
- "CurrencyResolution", "NumericRangeResolution", and "TemporalSpanResolution".
196
- Described in :class:`~azure.ai.textanalytics.ResolutionKind`."""
197
- value: float
198
- """The numeric value that the extracted text denotes. Required."""
199
- unit: str
200
- """The length Unit of measurement. Required. Known values are "Unspecified",
201
- "Kilometer", "Hectometer", "Decameter", "Meter", "Decimeter", "Centimeter", "Millimeter",
202
- "Micrometer", "Nanometer", "Picometer", "Mile", "Yard", "Inch", "Foot", "LightYear", and "Pt".
203
- Described in :class:`~azure.ai.textanalytics.LengthUnit`."""
204
-
205
- def __init__(
206
- self,
207
- *,
208
- value: float,
209
- unit: str,
210
- **kwargs
211
- ):
212
- super().__init__(value=value, unit=unit, **kwargs)
213
-
214
-
215
- class NumberResolution(GeneratedNumberResolution, DictMixin):
216
- """A resolution for numeric entity instances.
217
- """
218
-
219
- resolution_kind: Literal["NumberResolution"] = "NumberResolution"
220
- """The entity resolution object kind. Required. Known values are
221
- "DateTimeResolution" "NumberResolution", "OrdinalResolution",
222
- "SpeedResolution", "WeightResolution", "LengthResolution", "VolumeResolution",
223
- "AreaResolution", "AgeResolution", "InformationResolution", "TemperatureResolution",
224
- "CurrencyResolution", "NumericRangeResolution", and "TemporalSpanResolution".
225
- Described in :class:`~azure.ai.textanalytics.ResolutionKind`."""
226
- value: float
227
- """The numeric value that the extracted text denotes. Required."""
228
- number_kind: str
229
- """The type of the extracted number entity. Required. Known values are
230
- "Integer", "Decimal", "Power", "Fraction", "Percent", and "Unspecified".
231
- Described in :class:`~azure.ai.textanalytics.NumberKind`."""
232
-
233
- def __init__(
234
- self,
235
- *,
236
- number_kind: str,
237
- value: float,
238
- **kwargs
239
- ):
240
- super().__init__(value=value, number_kind=number_kind, **kwargs)
241
-
242
-
243
- class NumericRangeResolution(GeneratedNumericRangeResolution, DictMixin):
244
- """Represents the resolution of numeric intervals.
245
- """
246
-
247
- resolution_kind: Literal["NumericRangeResolution"] = "NumericRangeResolution"
248
- """The entity resolution object kind. Required. Known values are
249
- "DateTimeResolution" "NumberResolution", "OrdinalResolution",
250
- "SpeedResolution", "WeightResolution", "LengthResolution", "VolumeResolution",
251
- "AreaResolution", "AgeResolution", "InformationResolution", "TemperatureResolution",
252
- "CurrencyResolution", "NumericRangeResolution", and "TemporalSpanResolution".
253
- Described in :class:`~azure.ai.textanalytics.ResolutionKind`."""
254
- range_kind: str
255
- """The kind of range that the resolution object represents. Required. Known
256
- values are "Number", "Speed", "Weight", "Length", "Volume", "Area", "Age", "Information",
257
- "Temperature", and "Currency". Described in :class:`~azure.ai.textanalytics.RangeKind`."""
258
- minimum: float
259
- """The beginning value of the interval. Required."""
260
- maximum: float
261
- """The ending value of the interval. Required."""
262
-
263
- def __init__(
264
- self,
265
- *,
266
- range_kind: str,
267
- minimum: float,
268
- maximum: float,
269
- **kwargs
270
- ):
271
- super().__init__(range_kind=range_kind, minimum=minimum, maximum=maximum, **kwargs)
272
-
273
-
274
- class OrdinalResolution(GeneratedOrdinalResolution, DictMixin):
275
- """A resolution for ordinal numbers entity instances.
276
- """
277
-
278
- resolution_kind: Literal["OrdinalResolution"] = "OrdinalResolution"
279
- """The entity resolution object kind. Required. Known values are
280
- "DateTimeResolution" "NumberResolution", "OrdinalResolution",
281
- "SpeedResolution", "WeightResolution", "LengthResolution", "VolumeResolution",
282
- "AreaResolution", "AgeResolution", "InformationResolution", "TemperatureResolution",
283
- "CurrencyResolution", "NumericRangeResolution", and "TemporalSpanResolution".
284
- Described in :class:`~azure.ai.textanalytics.ResolutionKind`."""
285
- offset: str
286
- """The offset with respect to the reference (e.g., offset = -1 in "show me the
287
- second to last". Required."""
288
- relative_to: str
289
- """The reference point that the ordinal number denotes. Required. Known values
290
- are "Current", "End", and "Start". Described in :class:`~azure.ai.textanalytics.RelativeTo`."""
291
- value: str
292
- """A simple arithmetic expression that the ordinal denotes. Required."""
293
-
294
- def __init__(
295
- self,
296
- *,
297
- offset: str,
298
- relative_to: str,
299
- value: str,
300
- **kwargs
301
- ):
302
- super().__init__(offset=offset, relative_to=relative_to, value=value, **kwargs)
303
-
304
-
305
- class SpeedResolution(GeneratedSpeedResolution, DictMixin):
306
- """Represents the speed entity resolution model.
307
- """
308
-
309
- resolution_kind: Literal["SpeedResolution"] = "SpeedResolution"
310
- """The entity resolution object kind. Required. Known values are
311
- "DateTimeResolution" "NumberResolution", "OrdinalResolution",
312
- "SpeedResolution", "WeightResolution", "LengthResolution", "VolumeResolution",
313
- "AreaResolution", "AgeResolution", "InformationResolution", "TemperatureResolution",
314
- "CurrencyResolution", "NumericRangeResolution", and "TemporalSpanResolution".
315
- Described in :class:`~azure.ai.textanalytics.ResolutionKind`."""
316
- value: float
317
- """The numeric value that the extracted text denotes. Required."""
318
- unit: str
319
- """The speed Unit of measurement. Required. Known values are "Unspecified",
320
- "MeterPerSecond", "KilometerPerHour", "KilometerPerMinute", "KilometerPerSecond",
321
- "MilePerHour", "Knot", "FootPerSecond", "FootPerMinute", "YardPerMinute", "YardPerSecond",
322
- "MeterPerMillisecond", "CentimeterPerMillisecond", and "KilometerPerMillisecond".
323
- Described in :class:`~azure.ai.textanalytics.SpeedUnit`."""
324
-
325
- def __init__(
326
- self,
327
- *,
328
- value: float,
329
- unit: str,
330
- **kwargs
331
- ):
332
- super().__init__(value=value, unit=unit, **kwargs)
333
-
334
-
335
- class TemperatureResolution(GeneratedTemperatureResolution, DictMixin):
336
- """Represents the temperature entity resolution model.
337
- """
338
-
339
- resolution_kind: Literal["TemperatureResolution"] = "TemperatureResolution"
340
- """The entity resolution object kind. Required. Known values are
341
- "DateTimeResolution" "NumberResolution", "OrdinalResolution",
342
- "SpeedResolution", "WeightResolution", "LengthResolution", "VolumeResolution",
343
- "AreaResolution", "AgeResolution", "InformationResolution", "TemperatureResolution",
344
- "CurrencyResolution", "NumericRangeResolution", and "TemporalSpanResolution".
345
- Described in :class:`~azure.ai.textanalytics.ResolutionKind`."""
346
- value: float
347
- """The numeric value that the extracted text denotes. Required."""
348
- unit: str
349
- """The temperature Unit of measurement. Required. Known values are "Unspecified",
350
- "Fahrenheit", "Kelvin", "Rankine", and "Celsius". Described in :class:`~azure.ai.textanalytics.TemperatureUnit`."""
351
-
352
- def __init__(
353
- self,
354
- *,
355
- value: float,
356
- unit: str,
357
- **kwargs
358
- ):
359
- super().__init__(value=value, unit=unit, **kwargs)
360
-
361
-
362
- class TemporalSpanResolution(GeneratedTemporalSpanResolution, DictMixin):
363
- """Represents the resolution of a date and/or time span.
364
- """
365
-
366
- resolution_kind: Literal["TemporalSpanResolution"] = "TemporalSpanResolution"
367
- """The entity resolution object kind. Required. Known values are
368
- "DateTimeResolution" "NumberResolution", "OrdinalResolution",
369
- "SpeedResolution", "WeightResolution", "LengthResolution", "VolumeResolution",
370
- "AreaResolution", "AgeResolution", "InformationResolution", "TemperatureResolution",
371
- "CurrencyResolution", "NumericRangeResolution", and "TemporalSpanResolution".
372
- Described in :class:`~azure.ai.textanalytics.ResolutionKind`."""
373
- begin: Optional[str]
374
- """An extended ISO 8601 date/time representation as described in
375
- (https://github.com/Microsoft/Recognizers-Text/blob/master/Patterns/English/English-DateTime.yaml)."""
376
- end: Optional[str]
377
- """An extended ISO 8601 date/time representation as described in
378
- (https://github.com/Microsoft/Recognizers-Text/blob/master/Patterns/English/English-DateTime.yaml)."""
379
- duration: Optional[str]
380
- """An optional duration value formatted based on the ISO 8601
381
- (https://en.wikipedia.org/wiki/ISO_8601#Durations)."""
382
- modifier: Optional[str]
383
- """An optional modifier of a date/time instance. Known values are "AfterApprox",
384
- "Before", "BeforeStart", "Approx", "ReferenceUndefined", "SinceEnd", "AfterMid", "Start",
385
- "After", "BeforeEnd", "Until", "End", "Less", "Since", "AfterStart", "BeforeApprox", "Mid", and
386
- "More". Described in :class:`~azure.ai.textanalytics.TemporalModifier`."""
387
- timex: Optional[str]
388
- """An optional triplet containing the beginning, the end, and the duration all stated
389
- as ISO 8601 formatted strings."""
390
-
391
- def __init__(
392
- self,
393
- *,
394
- begin: Optional[str] = None,
395
- end: Optional[str] = None,
396
- duration: Optional[str] = None,
397
- modifier: Optional[str] = None,
398
- timex: Optional[str] = None,
399
- **kwargs
400
- ):
401
- super().__init__(begin=begin, end=end, duration=duration, modifier=modifier, timex=timex, **kwargs)
402
-
403
-
404
- class VolumeResolution(GeneratedVolumeResolution, DictMixin):
405
- """Represents the volume entity resolution model.
406
- """
407
-
408
- resolution_kind: Literal["VolumeResolution"] = "VolumeResolution"
409
- """The entity resolution object kind. Required. Known values are
410
- "DateTimeResolution" "NumberResolution", "OrdinalResolution",
411
- "SpeedResolution", "WeightResolution", "LengthResolution", "VolumeResolution",
412
- "AreaResolution", "AgeResolution", "InformationResolution", "TemperatureResolution",
413
- "CurrencyResolution", "NumericRangeResolution", and "TemporalSpanResolution".
414
- Described in :class:`~azure.ai.textanalytics.ResolutionKind`."""
415
- value: float
416
- """The numeric value that the extracted text denotes. Required."""
417
- unit: str
418
- """The Volume Unit of measurement. Required. Known values are "Unspecified",
419
- "CubicMeter", "CubicCentimeter", "CubicMillimeter", "Hectoliter", "Decaliter", "Liter",
420
- "Centiliter", "Milliliter", "CubicYard", "CubicInch", "CubicFoot", "CubicMile", "FluidOunce",
421
- "Teaspoon", "Tablespoon", "Pint", "Quart", "Cup", "Gill", "Pinch", "FluidDram", "Barrel",
422
- "Minim", "Cord", "Peck", "Bushel", and "Hogshead". Described in :class:`~azure.ai.textanalytics.VolumeUnit`."""
423
-
424
- def __init__(
425
- self,
426
- *,
427
- value: float,
428
- unit: str,
429
- **kwargs
430
- ):
431
- super().__init__(value=value, unit=unit, **kwargs)
432
-
433
-
434
- class WeightResolution(GeneratedWeightResolution, DictMixin):
435
- """Represents the weight entity resolution model.
436
- """
437
-
438
- resolution_kind: Literal["WeightResolution"] = "WeightResolution"
439
- """The entity resolution object kind. Required. Known values are
440
- "DateTimeResolution" "NumberResolution", "OrdinalResolution",
441
- "SpeedResolution", "WeightResolution", "LengthResolution", "VolumeResolution",
442
- "AreaResolution", "AgeResolution", "InformationResolution", "TemperatureResolution",
443
- "CurrencyResolution", "NumericRangeResolution", and "TemporalSpanResolution".
444
- Described in :class:`~azure.ai.textanalytics.ResolutionKind`."""
445
- value: float
446
- """The numeric value that the extracted text denotes. Required."""
447
- unit: str
448
- """The weight Unit of measurement. Required. Known values are "Unspecified",
449
- "Kilogram", "Gram", "Milligram", "Gallon", "MetricTon", "Ton", "Pound", "Ounce", "Grain",
450
- "PennyWeight", "LongTonBritish", "ShortTonUS", "ShortHundredWeightUS", "Stone", and "Dram".
451
- Described in :class:`~azure.ai.textanalytics.WeightUnit`."""
452
-
453
- def __init__(
454
- self,
455
- *,
456
- value: float,
457
- unit: str,
458
- **kwargs
459
- ):
460
- super().__init__(value=value, unit=unit, **kwargs)
461
-
462
-
463
- __all__: List[str] = [
464
- "AgeResolution",
465
- "AreaResolution",
466
- "CurrencyResolution",
467
- "DateTimeResolution",
468
- "InformationResolution",
469
- "LengthResolution",
470
- "NumberResolution",
471
- "NumericRangeResolution",
472
- "OrdinalResolution",
473
- "SpeedResolution",
474
- "TemperatureResolution",
475
- "TemporalSpanResolution",
476
- "VolumeResolution",
477
- "WeightResolution",
478
- ] # Add all objects you want publicly available to users at this package level
479
-
480
- def patch_sdk():
481
- """Do not remove from this file.
482
-
483
- `patch_sdk` is a last resort escape hatch that allows you to do customizations
484
- you can't accomplish using the techniques described in
485
- https://aka.ms/azsdk/python/dpcodegen/python/customize
486
- """