azure-ai-textanalytics 6.0.0b2__tar.gz
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.
- azure_ai_textanalytics-6.0.0b2/CHANGELOG.md +537 -0
- azure_ai_textanalytics-6.0.0b2/LICENSE +21 -0
- azure_ai_textanalytics-6.0.0b2/MANIFEST.in +7 -0
- azure_ai_textanalytics-6.0.0b2/PKG-INFO +1713 -0
- azure_ai_textanalytics-6.0.0b2/README.md +1151 -0
- azure_ai_textanalytics-6.0.0b2/azure/__init__.py +1 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/__init__.py +1 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/__init__.py +32 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/_client.py +111 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/_configuration.py +73 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/_operations/__init__.py +23 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/_operations/_operations.py +716 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/_operations/_patch.py +21 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/_patch.py +350 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/_utils/__init__.py +6 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/_utils/model_base.py +1237 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/_utils/serialization.py +2030 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/_utils/utils.py +25 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/_version.py +9 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/aio/__init__.py +29 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/aio/_client.py +115 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/aio/_configuration.py +75 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/aio/_operations/__init__.py +23 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/aio/_operations/_operations.py +623 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/aio/_operations/_patch.py +21 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/aio/_patch.py +346 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/models/__init__.py +410 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/models/_enums.py +2051 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/models/_models.py +7100 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/models/_patch.py +21 -0
- azure_ai_textanalytics-6.0.0b2/azure/ai/textanalytics/py.typed +1 -0
- azure_ai_textanalytics-6.0.0b2/azure_ai_textanalytics.egg-info/PKG-INFO +1713 -0
- azure_ai_textanalytics-6.0.0b2/azure_ai_textanalytics.egg-info/SOURCES.txt +98 -0
- azure_ai_textanalytics-6.0.0b2/azure_ai_textanalytics.egg-info/dependency_links.txt +1 -0
- azure_ai_textanalytics-6.0.0b2/azure_ai_textanalytics.egg-info/requires.txt +3 -0
- azure_ai_textanalytics-6.0.0b2/azure_ai_textanalytics.egg-info/top_level.txt +1 -0
- azure_ai_textanalytics-6.0.0b2/pyproject.toml +61 -0
- azure_ai_textanalytics-6.0.0b2/samples/README.md +104 -0
- azure_ai_textanalytics-6.0.0b2/samples/async_samples/sample_abstract_summary_async.py +162 -0
- azure_ai_textanalytics-6.0.0b2/samples/async_samples/sample_analyze_actions_async.py +143 -0
- azure_ai_textanalytics-6.0.0b2/samples/async_samples/sample_analyze_healthcare_entities_async.py +150 -0
- azure_ai_textanalytics-6.0.0b2/samples/async_samples/sample_analyze_sentiment_async.py +103 -0
- azure_ai_textanalytics-6.0.0b2/samples/async_samples/sample_authentication_async.py +70 -0
- azure_ai_textanalytics-6.0.0b2/samples/async_samples/sample_detect_language_async.py +86 -0
- azure_ai_textanalytics-6.0.0b2/samples/async_samples/sample_extract_key_phrases_async.py +99 -0
- azure_ai_textanalytics-6.0.0b2/samples/async_samples/sample_extract_summary_async.py +165 -0
- azure_ai_textanalytics-6.0.0b2/samples/async_samples/sample_multi_label_classify_async.py +143 -0
- azure_ai_textanalytics-6.0.0b2/samples/async_samples/sample_recognize_custom_entities_async.py +133 -0
- azure_ai_textanalytics-6.0.0b2/samples/async_samples/sample_recognize_entities_async.py +96 -0
- azure_ai_textanalytics-6.0.0b2/samples/async_samples/sample_recognize_linked_entities_async.py +104 -0
- azure_ai_textanalytics-6.0.0b2/samples/async_samples/sample_recognize_pii_entities_async.py +93 -0
- azure_ai_textanalytics-6.0.0b2/samples/async_samples/sample_recognize_pii_entities_with_confidence_score_async.py +113 -0
- azure_ai_textanalytics-6.0.0b2/samples/async_samples/sample_recognize_pii_entities_with_redaction_policies_async.py +122 -0
- azure_ai_textanalytics-6.0.0b2/samples/async_samples/sample_single_label_classify_async.py +143 -0
- azure_ai_textanalytics-6.0.0b2/samples/sample_abstract_summary.py +159 -0
- azure_ai_textanalytics-6.0.0b2/samples/sample_analyze_actions.py +144 -0
- azure_ai_textanalytics-6.0.0b2/samples/sample_analyze_healthcare_entities.py +147 -0
- azure_ai_textanalytics-6.0.0b2/samples/sample_analyze_sentiment.py +102 -0
- azure_ai_textanalytics-6.0.0b2/samples/sample_authentication.py +67 -0
- azure_ai_textanalytics-6.0.0b2/samples/sample_detect_language.py +86 -0
- azure_ai_textanalytics-6.0.0b2/samples/sample_extract_key_phrases.py +98 -0
- azure_ai_textanalytics-6.0.0b2/samples/sample_extract_summary.py +159 -0
- azure_ai_textanalytics-6.0.0b2/samples/sample_multi_label_classify.py +136 -0
- azure_ai_textanalytics-6.0.0b2/samples/sample_recognize_custom_entities.py +112 -0
- azure_ai_textanalytics-6.0.0b2/samples/sample_recognize_entities.py +95 -0
- azure_ai_textanalytics-6.0.0b2/samples/sample_recognize_linked_entities.py +103 -0
- azure_ai_textanalytics-6.0.0b2/samples/sample_recognize_pii_entities.py +93 -0
- azure_ai_textanalytics-6.0.0b2/samples/sample_recognize_pii_entities_with_confidence_score.py +109 -0
- azure_ai_textanalytics-6.0.0b2/samples/sample_recognize_pii_entities_with_redaction_policies.py +114 -0
- azure_ai_textanalytics-6.0.0b2/samples/sample_single_label_classify.py +136 -0
- azure_ai_textanalytics-6.0.0b2/setup.cfg +4 -0
- azure_ai_textanalytics-6.0.0b2/tests/conftest.py +9 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_abstractive_summarization_lro_task.py +125 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_abstractive_summarization_lro_task_async.py +134 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_custom_entities_lro_task.py +107 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_custom_entities_lro_task_async.py +110 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_custom_multi_label_classification_lro_task.py +93 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_custom_multi_label_classification_lro_task_async.py +100 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_custom_single_label_classification_lro_task.py +94 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_custom_single_label_classification_lro_task_async.py +100 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_extract_key_phrases.py +63 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_extract_key_phrases_async.py +68 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_extractive_summarization_lro_task.py +121 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_extractive_summarization_lro_task_async.py +128 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_health_care_lro_task.py +113 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_health_care_lro_task_async.py +108 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_language_detection.py +53 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_language_detection_async.py +58 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_recognize_entities.py +70 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_recognize_entities_async.py +75 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_recognize_linked_entities.py +78 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_recognize_linked_entities_async.py +83 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_recognize_pii.py +66 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_recognize_pii_async.py +72 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_recognize_pii_confidence_score_threshold.py +88 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_recognize_pii_confidence_score_threshold_async.py +98 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_recognize_pii_redaction_policies.py +106 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_recognize_pii_redaction_policies_async.py +118 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_sentiment.py +74 -0
- azure_ai_textanalytics-6.0.0b2/tests/test_analyze_text_sentiment_async.py +79 -0
|
@@ -0,0 +1,537 @@
|
|
|
1
|
+
# Release History
|
|
2
|
+
|
|
3
|
+
## 6.0.0b2 (2025-11-06)
|
|
4
|
+
|
|
5
|
+
This version of the client library defaults to the service API version `2025-11-15-preview`.
|
|
6
|
+
|
|
7
|
+
### Features Added
|
|
8
|
+
|
|
9
|
+
- Added support for **multiple redaction policies** in a single request.
|
|
10
|
+
- Added **synthetic replacement redaction**, enabling selected PII types (e.g., Person, Email) to be replaced with realistic synthetic values rather than masked.
|
|
11
|
+
- Added **confidence score thresholding**, allowing customers to define minimum confidence levels—globally or per-entity—so that only entities meeting the required confidence are returned.
|
|
12
|
+
- Added **entity validation control** with the `disableEntityValidation` parameter, allowing users to bypass entity validation when needed.
|
|
13
|
+
|
|
14
|
+
## 6.0.0b1 (2025-09-11)
|
|
15
|
+
|
|
16
|
+
This version of the client library defaults to the service API version `2025-05-15-preview`.
|
|
17
|
+
|
|
18
|
+
### Features Added
|
|
19
|
+
|
|
20
|
+
- Added Value Exclusion, synonyms, and new entity types to the detection of Personally Identifiable Information (PII).
|
|
21
|
+
|
|
22
|
+
### Breaking Changes
|
|
23
|
+
|
|
24
|
+
- Removed `begin_abstract_summary`for abstracting text summarization, added function `begin_analyze_text_job` with `AbstractiveSummarizationOperationAction` for this purpose.
|
|
25
|
+
- Removed `begin_analyze_healthcare_entities`for analyzing healthcare entities, added function `begin_analyze_text_job` with `HealthcareLROTask` for this purpose.
|
|
26
|
+
- Removed `analyze_sentiment`for analyzing sentiment, added function `analyze_text` with `TextSentimentAnalysisInput` for this purpose.
|
|
27
|
+
- Removed `detect_language`for detecting language, added function `analyze_text` with `LanguageDetectionTextInput` for this purpose.
|
|
28
|
+
- Removed `extract_key_phrases`for extracting key phrases, added function `analyze_text` with `TextKeyPhraseExtractionInput` for this purpose.
|
|
29
|
+
- Removed `begin_multi_label_classify`for classifying documents into multiple custom categories, added function `begin_analyze_text_job` with `CustomMultiLabelClassificationActionContent` for this purpose.
|
|
30
|
+
- Removed `begin_recognize_custom_entities`for recognizing custom entities in documents, added function `begin_analyze_text_job` with `CustomEntitiesLROTask` for this purpose.
|
|
31
|
+
- Removed `recognize_entities`for recognizing named entities in a batch of documents, added function `analyze_text` with `TextEntityRecognitionInput` for this purpose.
|
|
32
|
+
- Removed `recognize_linked_entities`for detecting linked entities in a batch of documents, added function `analyze_text` with `TextEntityLinkingInput` for this purpose.
|
|
33
|
+
- Removed `recognize_pii_entities`for recognizing personally identifiable information in a batch of documents, added function `analyze_text` with `TextPiiEntitiesRecognitionInput` for this purpose.
|
|
34
|
+
- Removed `begin_single_label_classify`for classifying documents into a single custom category, added function `begin_analyze_text_job` with `CustomSingleLabelClassificationOperationAction` for this purpose.
|
|
35
|
+
|
|
36
|
+
### Other Changes
|
|
37
|
+
|
|
38
|
+
- Added custom poller `AnalyzeTextLROPoller` and `AnalyzeTextAsyncLROPoller` to customize the return type of `begin_analyze_text_job` to be `AnalyzeTextLROPoller[ItemPaged["TextActions"]]` and `AnalyzeTextAsyncLROPoller[AsyncItemPaged["TextActions"]]`
|
|
39
|
+
|
|
40
|
+
## 5.3.0 (2023-06-15)
|
|
41
|
+
|
|
42
|
+
This version of the client library defaults to the service API version `2023-04-01`.
|
|
43
|
+
|
|
44
|
+
### Breaking Changes
|
|
45
|
+
|
|
46
|
+
> Note: The following changes are only breaking from the previous beta. They are not breaking against previous stable versions.
|
|
47
|
+
|
|
48
|
+
- Renamed model `ExtractSummaryAction` to `ExtractiveSummaryAction`.
|
|
49
|
+
- Renamed model `ExtractSummaryResult` to `ExtractiveSummaryResult`.
|
|
50
|
+
- Renamed client method `begin_abstractive_summary` to `begin_abstract_summary`.
|
|
51
|
+
- Removed `dynamic_classification` client method and related types: `DynamicClassificationResult` and `ClassificationType`.
|
|
52
|
+
- Removed keyword arguments `fhir_version` and `document_type` from `begin_analyze_healthcare_entities` and `AnalyzeHealthcareEntitiesAction`.
|
|
53
|
+
- Removed property `fhir_bundle` from `AnalyzeHealthcareEntitiesResult`.
|
|
54
|
+
- Removed enum `HealthcareDocumentType`.
|
|
55
|
+
- Removed property `resolutions` from `CategorizedEntity`.
|
|
56
|
+
- Removed models and enums related to resolutions: `ResolutionKind`, `AgeResolution`, `AreaResolution`,
|
|
57
|
+
`CurrencyResolution`, `DateTimeResolution`, `InformationResolution`, `LengthResolution`,
|
|
58
|
+
`NumberResolution`, `NumericRangeResolution`, `OrdinalResolution`, `SpeedResolution`, `TemperatureResolution`,
|
|
59
|
+
`TemporalSpanResolution`, `VolumeResolution`, `WeightResolution`, `AgeUnit`, `AreaUnit`, `TemporalModifier`,
|
|
60
|
+
`InformationUnit`, `LengthUnit`, `NumberKind`, `RangeKind`, `RelativeTo`, `SpeedUnit`, `TemperatureUnit`,
|
|
61
|
+
`VolumeUnit`, `DateTimeSubKind`, and `WeightUnit`.
|
|
62
|
+
- Removed property `detected_language` from `RecognizeEntitiesResult`, `RecognizePiiEntitiesResult`, `AnalyzeHealthcareEntitiesResult`,
|
|
63
|
+
`ExtractKeyPhrasesResult`, `RecognizeLinkedEntitiesResult`, `AnalyzeSentimentResult`, `RecognizeCustomEntitiesResult`,
|
|
64
|
+
`ClassifyDocumentResult`, `ExtractSummaryResult`, and `AbstractSummaryResult`.
|
|
65
|
+
- Removed property `script` from `DetectedLanguage`.
|
|
66
|
+
|
|
67
|
+
### Features Added
|
|
68
|
+
|
|
69
|
+
- New enum values added for `HealthcareEntityCategory` and `HealthcareEntityRelation`.
|
|
70
|
+
|
|
71
|
+
## 5.3.0b2 (2023-03-07)
|
|
72
|
+
|
|
73
|
+
This version of the client library defaults to the service API version `2022-10-01-preview`.
|
|
74
|
+
|
|
75
|
+
### Features Added
|
|
76
|
+
|
|
77
|
+
- Added `begin_extract_summary` client method to perform extractive summarization on documents.
|
|
78
|
+
- Added `begin_abstractive_summary` client method to perform abstractive summarization on documents.
|
|
79
|
+
|
|
80
|
+
### Breaking Changes
|
|
81
|
+
|
|
82
|
+
- Removed models `BaseResolution` and `BooleanResolution`.
|
|
83
|
+
- Removed enum value `BooleanResolution` from `ResolutionKind`.
|
|
84
|
+
- Renamed model `AbstractSummaryAction` to `AbstractiveSummaryAction`.
|
|
85
|
+
- Renamed model `AbstractSummaryResult` to `AbstractiveSummaryResult`.
|
|
86
|
+
- Removed keyword argument `autodetect_default_language` from long-running operation APIs.
|
|
87
|
+
|
|
88
|
+
### Other Changes
|
|
89
|
+
|
|
90
|
+
- Improved static typing in the client library.
|
|
91
|
+
|
|
92
|
+
## 5.3.0b1 (2022-11-17)
|
|
93
|
+
|
|
94
|
+
This version of the client library defaults to the service API version `2022-10-01-preview`.
|
|
95
|
+
|
|
96
|
+
### Features Added
|
|
97
|
+
- Added the Extractive Summarization feature and related models: `ExtractSummaryAction`, `ExtractSummaryResult`, and `SummarySentence`.
|
|
98
|
+
Access the feature through the `begin_analyze_actions` API.
|
|
99
|
+
- Added keyword arguments `fhir_version` and `document_type` to `begin_analyze_healthcare_entities` and `AnalyzeHealthcareEntitiesAction`.
|
|
100
|
+
- Added property `fhir_bundle` to `AnalyzeHealthcareEntitiesResult`.
|
|
101
|
+
- Added property `confidence_score` to `HealthcareRelation`.
|
|
102
|
+
- Added enum `HealthcareDocumentType`.
|
|
103
|
+
- Added property `resolutions` to `CategorizedEntity`.
|
|
104
|
+
- Added models and enums related to resolutions: `BaseResolution`, `ResolutionKind`, `AgeResolution`, `AreaResolution`,
|
|
105
|
+
`BooleanResolution`, `CurrencyResolution`, `DateTimeResolution`, `InformationResolution`, `LengthResolution`,
|
|
106
|
+
`NumberResolution`, `NumericRangeResolution`, `OrdinalResolution`, `SpeedResolution`, `TemperatureResolution`,
|
|
107
|
+
`TemporalSpanResolution`, `VolumeResolution`, `WeightResolution`, `AgeUnit`, `AreaUnit`, `TemporalModifier`,
|
|
108
|
+
`InformationUnit`, `LengthUnit`, `NumberKind`, `RangeKind`, `RelativeTo`, `SpeedUnit`, `TemperatureUnit`,
|
|
109
|
+
`VolumeUnit`, `DateTimeSubKind`, and `WeightUnit`.
|
|
110
|
+
- Added the Abstractive Summarization feature and related models: `AbstractSummaryAction`, `AbstractSummaryResult`, `AbstractiveSummary`,
|
|
111
|
+
and `SummaryContext`. Access the feature through the `begin_analyze_actions` API.
|
|
112
|
+
- Added automatic language detection to long-running operation APIs. Pass `auto` into the document `language` hint to use this feature.
|
|
113
|
+
- Added `autodetect_default_language` to long-running operation APIs. Pass as the default/fallback language for automatic language detection.
|
|
114
|
+
- Added property `detected_language` to `RecognizeEntitiesResult`, `RecognizePiiEntitiesResult`, `AnalyzeHealthcareEntitiesResult`,
|
|
115
|
+
`ExtractKeyPhrasesResult`, `RecognizeLinkedEntitiesResult`, `AnalyzeSentimentResult`, `RecognizeCustomEntitiesResult`,
|
|
116
|
+
`ClassifyDocumentResult`, `ExtractSummaryResult`, and `AbstractSummaryResult` to indicate the language detected by automatic language detection.
|
|
117
|
+
- Added property `script` to `DetectedLanguage` to indicate the script of the input document.
|
|
118
|
+
- Added the `dynamic_classification` client method to perform dynamic classification on documents without needing to train a model.
|
|
119
|
+
|
|
120
|
+
### Other Changes
|
|
121
|
+
- Removed dependency on `msrest`.
|
|
122
|
+
|
|
123
|
+
## 5.2.1 (2022-10-26)
|
|
124
|
+
|
|
125
|
+
### Bugs Fixed
|
|
126
|
+
- Returns a more helpful message in the document error when all documents fail for an action in the `begin_analyze_actions` API.
|
|
127
|
+
|
|
128
|
+
## 5.2.0 (2022-09-08)
|
|
129
|
+
|
|
130
|
+
### Other Changes
|
|
131
|
+
|
|
132
|
+
This version of the client library marks a stable release and defaults to the service API version `2022-05-01`.
|
|
133
|
+
Includes all changes from `5.2.0b1` to `5.2.0b5`.
|
|
134
|
+
|
|
135
|
+
## 5.2.0b5 (2022-08-11)
|
|
136
|
+
|
|
137
|
+
The version of this client library defaults to the API version `2022-05-01`.
|
|
138
|
+
|
|
139
|
+
### Features Added
|
|
140
|
+
|
|
141
|
+
- Added `begin_recognize_custom_entities` client method to recognize custom named entities in documents.
|
|
142
|
+
- Added `begin_single_label_classify` client method to perform custom single label classification on documents.
|
|
143
|
+
- Added `begin_multi_label_classify` client method to perform custom multi label classification on documents.
|
|
144
|
+
- Added property `details` on returned poller objects which contain long-running operation metadata.
|
|
145
|
+
- Added `TextAnalysisLROPoller` and `AsyncTextAnalysisLROPoller` protocols to describe the return types from long-running operations.
|
|
146
|
+
- Added `cancel` method on the poller objects. Call it to cancel a long-running operation that's in progress.
|
|
147
|
+
- Added property `kind` to `RecognizeEntitiesResult`, `RecognizePiiEntitiesResult`, `AnalyzeHealthcareEntitiesResult`,
|
|
148
|
+
`DetectLanguageResult`, `ExtractKeyPhrasesResult`, `RecognizeLinkedEntitiesResult`, `AnalyzeSentimentResult`,
|
|
149
|
+
`RecognizeCustomEntitiesResult`, `ClassifyDocumentResult`, and `DocumentError`.
|
|
150
|
+
- Added enum `TextAnalysisKind`.
|
|
151
|
+
|
|
152
|
+
### Breaking Changes
|
|
153
|
+
|
|
154
|
+
- Removed the Extractive Text Summarization feature and related models: `ExtractSummaryAction`, `ExtractSummaryResult`, and `SummarySentence`. To access this beta feature, install the `5.2.0b4` version of the client library.
|
|
155
|
+
- Removed the `FHIR` feature and related keyword argument and property: `fhir_version` and `fhir_bundle`. To access this beta feature, install the `5.2.0b4` version of the client library.
|
|
156
|
+
- `SingleCategoryClassifyResult` and `MultiCategoryClassifyResult` models have been merged into one model: `ClassifyDocumentResult`.
|
|
157
|
+
- Renamed `SingleCategoryClassifyAction` to `SingleLabelClassifyAction`
|
|
158
|
+
- Renamed `MultiCategoryClassifyAction` to `MultiLabelClassifyAction`.
|
|
159
|
+
|
|
160
|
+
### Bugs Fixed
|
|
161
|
+
|
|
162
|
+
- A `HttpResponseError` will be immediately raised when the call quota volume is exceeded in a `F0` tier Language resource.
|
|
163
|
+
|
|
164
|
+
### Other Changes
|
|
165
|
+
|
|
166
|
+
- Python 3.6 is no longer supported. Please use Python version 3.7 or later. For more details, see [Azure SDK for Python version support policy](https://github.com/Azure/azure-sdk-for-python/wiki/Azure-SDKs-Python-version-support-policy).
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
## 5.2.0b4 (2022-05-18)
|
|
170
|
+
|
|
171
|
+
Note that this is the first version of the client library that targets the Azure Cognitive Service for Language APIs which includes the existing text analysis and natural language processing features found in the Text Analytics client library.
|
|
172
|
+
In addition, the service API has changed from semantic to date-based versioning. This version of the client library defaults to the latest supported API version, which currently is `2022-04-01-preview`. Support for `v3.2-preview.2` is removed, however, all functionalities are included in the latest version.
|
|
173
|
+
|
|
174
|
+
### Features Added
|
|
175
|
+
|
|
176
|
+
- Added support for Healthcare Entities Analysis through the `begin_analyze_actions` API with the `AnalyzeHealthcareEntitiesAction` type.
|
|
177
|
+
- Added keyword argument `fhir_version` to `begin_analyze_healthcare_entities` and `AnalyzeHealthcareEntitiesAction`. Use the keyword to indicate the version for the `fhir_bundle` contained on the `AnalyzeHealthcareEntitiesResult`.
|
|
178
|
+
- Added property `fhir_bundle` to `AnalyzeHealthcareEntitiesResult`.
|
|
179
|
+
- Added keyword argument `display_name` to `begin_analyze_healthcare_entities`.
|
|
180
|
+
|
|
181
|
+
## 5.2.0b3 (2022-03-08)
|
|
182
|
+
|
|
183
|
+
### Bugs Fixed
|
|
184
|
+
- `string_index_type` now correctly defaults to the Python default `UnicodeCodePoint` for `AnalyzeSentimentAction` and `RecognizeCustomEntitiesAction`.
|
|
185
|
+
- Fixed a bug in `begin_analyze_actions` where incorrect action types were being sent in the request if targeting the older API version `v3.1` in the beta version of the client library.
|
|
186
|
+
- `string_index_type` option `Utf16CodePoint` is corrected to `Utf16CodeUnit`.
|
|
187
|
+
|
|
188
|
+
### Other Changes
|
|
189
|
+
- Python 2.7 is no longer supported. Please use Python version 3.6 or later.
|
|
190
|
+
|
|
191
|
+
## 5.2.0b2 (2021-11-02)
|
|
192
|
+
|
|
193
|
+
This version of the SDK defaults to the latest supported API version, which currently is `v3.2-preview.2`.
|
|
194
|
+
|
|
195
|
+
### Features Added
|
|
196
|
+
- Added support for Custom Entities Recognition through the `begin_analyze_actions` API with the `RecognizeCustomEntitiesAction` and `RecognizeCustomEntitiesResult` types.
|
|
197
|
+
- Added support for Custom Single Classification through the `begin_analyze_actions` API with the `SingleCategoryClassifyAction` and `SingleCategoryClassifyActionResult` types.
|
|
198
|
+
- Added support for Custom Multi Classification through the `begin_analyze_actions` API with the `MultiCategoryClassifyAction` and `MultiCategoryClassifyActionResult` types.
|
|
199
|
+
- Multiple of the same action type is now supported with `begin_analyze_actions`.
|
|
200
|
+
|
|
201
|
+
### Bugs Fixed
|
|
202
|
+
- Restarting a long-running operation from a saved state is now supported for the `begin_analyze_actions` and `begin_recognize_healthcare_entities` methods.
|
|
203
|
+
- In the event of an action level error, available partial results are now returned for any successful actions in `begin_analyze_actions`.
|
|
204
|
+
|
|
205
|
+
### Other Changes
|
|
206
|
+
- Package requires [azure-core](https://pypi.org/project/azure-core/) version 1.19.1 or greater
|
|
207
|
+
|
|
208
|
+
## 5.2.0b1 (2021-08-09)
|
|
209
|
+
|
|
210
|
+
This version of the SDK defaults to the latest supported API version, which currently is `v3.2-preview.1`.
|
|
211
|
+
|
|
212
|
+
### Features Added
|
|
213
|
+
- Added support for Extractive Summarization actions through the `ExtractSummaryAction` type.
|
|
214
|
+
|
|
215
|
+
### Bugs Fixed
|
|
216
|
+
- `RecognizePiiEntitiesAction` option `disable_service_logs` now correctly defaults to `True`.
|
|
217
|
+
|
|
218
|
+
### Other Changes
|
|
219
|
+
- Python 3.5 is no longer supported.
|
|
220
|
+
|
|
221
|
+
## 5.1.0 (2021-07-07)
|
|
222
|
+
|
|
223
|
+
This version of the SDK defaults to the latest supported API version, which currently is `v3.1`.
|
|
224
|
+
Includes all changes from `5.1.0b1` to `5.1.0b7`.
|
|
225
|
+
|
|
226
|
+
Note: this version will be the last to officially support Python 3.5, future versions will require Python 2.7 or Python 3.6+.
|
|
227
|
+
|
|
228
|
+
### Features Added
|
|
229
|
+
|
|
230
|
+
- Added `categories_filter` to `RecognizePiiEntitiesAction`
|
|
231
|
+
- Added `HealthcareEntityCategory`
|
|
232
|
+
- Added AAD support for the `begin_analyze_healthcare_entities` methods.
|
|
233
|
+
|
|
234
|
+
### Breaking Changes
|
|
235
|
+
|
|
236
|
+
- Changed: the response structure of `being_analyze_actions`. Now, we return a list of results, where each result is a list of the action results for the document, in the order the documents and actions were passed.
|
|
237
|
+
- Changed: `begin_analyze_actions` now accepts a single action per type. A `ValueError` is raised if duplicate actions are passed.
|
|
238
|
+
- Removed: `AnalyzeActionsType`
|
|
239
|
+
- Removed: `AnalyzeActionsResult`
|
|
240
|
+
- Removed: `AnalyzeActionsError`
|
|
241
|
+
- Removed: `HealthcareEntityRelationRoleType`
|
|
242
|
+
- Changed: renamed `HealthcareEntityRelationType` to `HealthcareEntityRelation`
|
|
243
|
+
- Changed: renamed `PiiEntityCategoryType` to `PiiEntityCategory`
|
|
244
|
+
- Changed: renamed `PiiEntityDomainType` to `PiiEntityDomain`
|
|
245
|
+
|
|
246
|
+
## 5.1.0b7 (2021-05-18)
|
|
247
|
+
|
|
248
|
+
**Breaking Changes**
|
|
249
|
+
- Renamed `begin_analyze_batch_actions` to `begin_analyze_actions`.
|
|
250
|
+
- Renamed `AnalyzeBatchActionsType` to `AnalyzeActionsType`.
|
|
251
|
+
- Renamed `AnalyzeBatchActionsResult` to `AnalyzeActionsResult`.
|
|
252
|
+
- Renamed `AnalyzeBatchActionsError` to `AnalyzeActionsError`.
|
|
253
|
+
- Renamed `AnalyzeHealthcareEntitiesResultItem` to `AnalyzeHealthcareEntitiesResult`.
|
|
254
|
+
- Fixed `AnalyzeHealthcareEntitiesResult`'s `statistics` to be the correct type, `TextDocumentStatistics`
|
|
255
|
+
- Remove `RequestStatistics`, use `TextDocumentBatchStatistics` instead
|
|
256
|
+
|
|
257
|
+
**New Features**
|
|
258
|
+
- Added enums `EntityConditionality`, `EntityCertainty`, and `EntityAssociation`.
|
|
259
|
+
- Added `AnalyzeSentimentAction` as a supported action type for `begin_analyze_batch_actions`.
|
|
260
|
+
- Added kwarg `disable_service_logs`. If set to true, you opt-out of having your text input logged on the service side for troubleshooting.
|
|
261
|
+
|
|
262
|
+
## 5.1.0b6 (2021-03-09)
|
|
263
|
+
|
|
264
|
+
**Breaking Changes**
|
|
265
|
+
- By default, we now target the service's `v3.1-preview.4` endpoint through enum value `TextAnalyticsApiVersion.V3_1_PREVIEW`
|
|
266
|
+
- Removed property `related_entities` on `HealthcareEntity` and added `entity_relations` onto the document response level for healthcare
|
|
267
|
+
- Renamed properties `aspect` and `opinions` to `target` and `assessments` respectively in class `MinedOpinion`.
|
|
268
|
+
- Renamed classes `AspectSentiment` and `OpinionSentiment` to `TargetSentiment` and `AssessmentSentiment` respectively.
|
|
269
|
+
|
|
270
|
+
**New Features**
|
|
271
|
+
- Added `RecognizeLinkedEntitiesAction` as a supported action type for `begin_analyze_batch_actions`.
|
|
272
|
+
- Added parameter `categories_filter` to the `recognize_pii_entities` client method.
|
|
273
|
+
- Added enum `PiiEntityCategoryType`.
|
|
274
|
+
- Add property `normalized_text` to `HealthcareEntity`. This property is a normalized version of the `text` property that already
|
|
275
|
+
exists on the `HealthcareEntity`
|
|
276
|
+
- Add property `assertion` onto `HealthcareEntity`. This contains assertions about the entity itself, i.e. if the entity represents a diagnosis,
|
|
277
|
+
is this diagnosis conditional on a symptom?
|
|
278
|
+
|
|
279
|
+
**Known Issues**
|
|
280
|
+
|
|
281
|
+
- `begin_analyze_healthcare_entities` is currently in gated preview and can not be used with AAD credentials. For more information, see [the Text Analytics for Health documentation](https://learn.microsoft.com/azure/cognitive-services/text-analytics/how-tos/text-analytics-for-health?tabs=ner#request-access-to-the-public-preview).
|
|
282
|
+
- At time of this SDK release, the service is not respecting the value passed through `model_version` to `begin_analyze_healthcare_entities`, it only uses the latest model.
|
|
283
|
+
|
|
284
|
+
## 5.1.0b5 (2021-02-10)
|
|
285
|
+
|
|
286
|
+
**Breaking Changes**
|
|
287
|
+
|
|
288
|
+
- Rename `begin_analyze` to `begin_analyze_batch_actions`.
|
|
289
|
+
- Now instead of separate parameters for all of the different types of actions you can pass to `begin_analyze_batch_actions`, we accept one parameter `actions`,
|
|
290
|
+
which is a list of actions you would like performed. The results of the actions are returned in the same order as when inputted.
|
|
291
|
+
- The response object from `begin_analyze_batch_actions` has also changed. Now, after the completion of your long running operation, we return a paged iterable
|
|
292
|
+
of action results, in the same order they've been inputted. The actual document results for each action are included under property `document_results` of
|
|
293
|
+
each action result.
|
|
294
|
+
|
|
295
|
+
**New Features**
|
|
296
|
+
- Renamed `begin_analyze_healthcare` to `begin_analyze_healthcare_entities`.
|
|
297
|
+
- Renamed `AnalyzeHealthcareResult` to `AnalyzeHealthcareEntitiesResult` and `AnalyzeHealthcareResultItem` to `AnalyzeHealthcareEntitiesResultItem`.
|
|
298
|
+
- Renamed `HealthcareEntityLink` to `HealthcareEntityDataSource` and renamed its properties `id` to `entity_id` and `data_source` to `name`.
|
|
299
|
+
- Removed `relations` from `AnalyzeHealthcareEntitiesResultItem` and added `related_entities` to `HealthcareEntity`.
|
|
300
|
+
- Moved the cancellation logic for the Analyze Healthcare Entities service from
|
|
301
|
+
the service client to the poller object returned from `begin_analyze_healthcare_entities`.
|
|
302
|
+
- Exposed Analyze Healthcare Entities operation metadata on the poller object returned from `begin_analyze_healthcare_entities`.
|
|
303
|
+
- No longer need to specify `api_version=TextAnalyticsApiVersion.V3_1_PREVIEW_3` when calling `begin_analyze` and `begin_analyze_healthcare_entities`. `begin_analyze_healthcare_entities` is still in gated preview though.
|
|
304
|
+
- Added a new parameter `string_index_type` to the service client methods `begin_analyze_healthcare_entities`, `analyze_sentiment`, `recognize_entities`, `recognize_pii_entities`, and `recognize_linked_entities` which tells the service how to interpret string offsets.
|
|
305
|
+
- Added property `length` to `CategorizedEntity`, `SentenceSentiment`, `LinkedEntityMatch`, `AspectSentiment`, `OpinionSentiment`, `PiiEntity` and
|
|
306
|
+
`HealthcareEntity`.
|
|
307
|
+
|
|
308
|
+
## 5.1.0b4 (2021-01-12)
|
|
309
|
+
|
|
310
|
+
**Bug Fixes**
|
|
311
|
+
|
|
312
|
+
- Package requires [azure-core](https://pypi.org/project/azure-core/) version 1.8.2 or greater
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
## 5.1.0b3 (2020-11-19)
|
|
316
|
+
|
|
317
|
+
**New Features**
|
|
318
|
+
- We have added method `begin_analyze`, which supports long-running batch process of Named Entity Recognition, Personally identifiable Information, and Key Phrase Extraction. To use, you must specify `api_version=TextAnalyticsApiVersion.V3_1_PREVIEW_3` when creating your client.
|
|
319
|
+
- We have added method `begin_analyze_healthcare`, which supports the service's Health API. Since the Health API is currently only available in a gated preview, you need to have your subscription on the service's allow list, and you must specify `api_version=TextAnalyticsApiVersion.V3_1_PREVIEW_3` when creating your client. Note that since this is a gated preview, AAD is not supported. More information [here](https://learn.microsoft.com/azure/cognitive-services/text-analytics/how-tos/text-analytics-for-health?tabs=ner#request-access-to-the-public-preview).
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
## 5.1.0b2 (2020-10-06)
|
|
323
|
+
|
|
324
|
+
**Breaking changes**
|
|
325
|
+
- Removed property `length` from `CategorizedEntity`, `SentenceSentiment`, `LinkedEntityMatch`, `AspectSentiment`, `OpinionSentiment`, and `PiiEntity`.
|
|
326
|
+
To get the length of the text in these models, just call `len()` on the `text` property.
|
|
327
|
+
- When a parameter or endpoint is not compatible with the API version you specify, we will now return a `ValueError` instead of a `NotImplementedError`.
|
|
328
|
+
- Client side validation of input is now disabled by default. This means there will be no `ValidationError`s thrown by the client SDK in the case of malformed input. The error will now be thrown by the service through an `HttpResponseError`.
|
|
329
|
+
|
|
330
|
+
## 5.1.0b1 (2020-09-17)
|
|
331
|
+
|
|
332
|
+
**New features**
|
|
333
|
+
- We are now targeting the service's v3.1-preview API as the default. If you would like to still use version v3.0 of the service,
|
|
334
|
+
pass in `v3.0` to the kwarg `api_version` when creating your TextAnalyticsClient
|
|
335
|
+
- We have added an API `recognize_pii_entities` which returns entities containing personally identifiable information for a batch of documents. Only available for API version v3.1-preview and up.
|
|
336
|
+
- Added `offset` and `length` properties for `CategorizedEntity`, `SentenceSentiment`, and `LinkedEntityMatch`. These properties are only available for API versions v3.1-preview and up.
|
|
337
|
+
- `length` is the number of characters in the text of these models
|
|
338
|
+
- `offset` is the offset of the text from the start of the document
|
|
339
|
+
- We now have added support for opinion mining. To use this feature, you need to make sure you are using the service's
|
|
340
|
+
v3.1-preview API. To get this support pass `show_opinion_mining` as True when calling the `analyze_sentiment` endpoint
|
|
341
|
+
- Add property `bing_entity_search_api_id` to the `LinkedEntity` class. This property is only available for v3.1-preview and up, and it is to be
|
|
342
|
+
used in conjunction with the Bing Entity Search API to fetch additional relevant information about the returned entity.
|
|
343
|
+
|
|
344
|
+
## 5.0.0 (2020-07-27)
|
|
345
|
+
|
|
346
|
+
- Re-release of GA version 1.0.0 with an updated version
|
|
347
|
+
|
|
348
|
+
## 1.0.0 (2020-06-09)
|
|
349
|
+
|
|
350
|
+
- First stable release of the azure-ai-textanalytics package. Targets the service's v3.0 API.
|
|
351
|
+
|
|
352
|
+
## 1.0.0b6 (2020-05-27)
|
|
353
|
+
|
|
354
|
+
**New features**
|
|
355
|
+
- We now have a `warnings` property on each document-level response object returned from the endpoints. It is a list of `TextAnalyticsWarning`s.
|
|
356
|
+
- Added `text` property to `SentenceSentiment`
|
|
357
|
+
|
|
358
|
+
**Breaking changes**
|
|
359
|
+
- Now targets only the service's v3.0 API, instead of the v3.0-preview.1 API
|
|
360
|
+
- `score` attribute of `DetectedLanguage` has been renamed to `confidence_score`
|
|
361
|
+
- Removed `grapheme_offset` and `grapheme_length` from `CategorizedEntity`, `SentenceSentiment`, and `LinkedEntityMatch`
|
|
362
|
+
- `TextDocumentStatistics` attribute `grapheme_count` has been renamed to `character_count`
|
|
363
|
+
|
|
364
|
+
## 1.0.0b5
|
|
365
|
+
|
|
366
|
+
- This was a broken release
|
|
367
|
+
|
|
368
|
+
## 1.0.0b4 (2020-04-07)
|
|
369
|
+
|
|
370
|
+
**Breaking changes**
|
|
371
|
+
- Removed the `recognize_pii_entities` endpoint and all related models (`RecognizePiiEntitiesResult` and `PiiEntity`)
|
|
372
|
+
from this library.
|
|
373
|
+
- Removed `TextAnalyticsApiKeyCredential` and now using `AzureKeyCredential` from azure.core.credentials as key credential
|
|
374
|
+
- `score` attribute has been renamed to `confidence_score` for the `CategorizedEntity`, `LinkedEntityMatch`, and
|
|
375
|
+
`PiiEntity` models
|
|
376
|
+
- All input parameters `inputs` have been renamed to `documents`
|
|
377
|
+
|
|
378
|
+
## 1.0.0b3 (2020-03-10)
|
|
379
|
+
|
|
380
|
+
**Breaking changes**
|
|
381
|
+
- `SentimentScorePerLabel` has been renamed to `SentimentConfidenceScores`
|
|
382
|
+
- `AnalyzeSentimentResult` and `SentenceSentiment` attribute `sentiment_scores` has been renamed to `confidence_scores`
|
|
383
|
+
- `TextDocumentStatistics` attribute `character_count` has been renamed to `grapheme_count`
|
|
384
|
+
- `LinkedEntity` attribute `id` has been renamed to `data_source_entity_id`
|
|
385
|
+
- Parameters `country_hint` and `language` are now passed as keyword arguments
|
|
386
|
+
- The keyword argument `response_hook` has been renamed to `raw_response_hook`
|
|
387
|
+
- `length` and `offset` attributes have been renamed to `grapheme_length` and `grapheme_offset` for the `SentenceSentiment`,
|
|
388
|
+
`CategorizedEntity`, `PiiEntity`, and `LinkedEntityMatch` models
|
|
389
|
+
|
|
390
|
+
**New features**
|
|
391
|
+
- Pass `country_hint="none"` to not use the default country hint of `"US"`.
|
|
392
|
+
|
|
393
|
+
**Dependency updates**
|
|
394
|
+
- Adopted [azure-core](https://pypi.org/project/azure-core/) version 1.3.0 or greater
|
|
395
|
+
|
|
396
|
+
## 1.0.0b2 (2020-02-11)
|
|
397
|
+
|
|
398
|
+
**Breaking changes**
|
|
399
|
+
|
|
400
|
+
- The single text, module-level operations `single_detect_language()`, `single_recognize_entities()`, `single_extract_key_phrases()`, `single_analyze_sentiment()`, `single_recognize_pii_entities()`, and `single_recognize_linked_entities()`
|
|
401
|
+
have been removed from the client library. Use the batching methods for optimal performance in production environments.
|
|
402
|
+
- To use an API key as the credential for authenticating the client, a new credential class `TextAnalyticsApiKeyCredential("<api_key>")` must be passed in for the `credential` parameter.
|
|
403
|
+
Passing the API key as a string is no longer supported.
|
|
404
|
+
- `detect_languages()` is renamed to `detect_language()`.
|
|
405
|
+
- The `TextAnalyticsError` model has been simplified to an object with only attributes `code`, `message`, and `target`.
|
|
406
|
+
- `NamedEntity` has been renamed to `CategorizedEntity` and its attributes `type` to `category` and `subtype` to `subcategory`.
|
|
407
|
+
- `RecognizePiiEntitiesResult` now contains on the object a list of `PiiEntity` instead of `NamedEntity`.
|
|
408
|
+
- `AnalyzeSentimentResult` attribute `document_scores` has been renamed to `sentiment_scores`.
|
|
409
|
+
- `SentenceSentiment` attribute `sentence_scores` has been renamed to `sentiment_scores`.
|
|
410
|
+
- `SentimentConfidenceScorePerLabel` has been renamed to `SentimentScorePerLabel`.
|
|
411
|
+
- `DetectLanguageResult` no longer has attribute `detected_languages`. Use `primary_language` to access the detected language in text.
|
|
412
|
+
|
|
413
|
+
**New features**
|
|
414
|
+
|
|
415
|
+
- Credential class `TextAnalyticsApiKeyCredential` provides an `update_key()` method which allows you to update the API key for long-lived clients.
|
|
416
|
+
|
|
417
|
+
**Fixes and improvements**
|
|
418
|
+
|
|
419
|
+
- `__repr__` has been added to all of the response objects.
|
|
420
|
+
- If you try to access a result attribute on a `DocumentError` object, an `AttributeError` is raised with a custom error message that provides the document ID and error of the invalid document.
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
## 1.0.0b1 (2020-01-09)
|
|
424
|
+
|
|
425
|
+
Version (1.0.0b1) is the first preview of our efforts to create a user-friendly and Pythonic client library for Azure Text Analytics. For more information about this, and preview releases of other Azure SDK libraries, please visit
|
|
426
|
+
https://azure.github.io/azure-sdk/releases/latest/python.html.
|
|
427
|
+
|
|
428
|
+
**Breaking changes: New API design**
|
|
429
|
+
|
|
430
|
+
- New namespace/package name:
|
|
431
|
+
- The namespace/package name for Azure Text Analytics client library has changed from `azure.cognitiveservices.language.textanalytics` to `azure.ai.textanalytics`
|
|
432
|
+
|
|
433
|
+
- New operations and naming:
|
|
434
|
+
- `detect_language` is renamed to `detect_languages`
|
|
435
|
+
- `entities` is renamed to `recognize_entities`
|
|
436
|
+
- `key_phrases` is renamed to `extract_key_phrases`
|
|
437
|
+
- `sentiment` is renamed to `analyze_sentiment`
|
|
438
|
+
- New operation `recognize_pii_entities` finds personally identifiable information entities in text
|
|
439
|
+
- New operation `recognize_linked_entities` provides links from a well-known knowledge base for each recognized entity
|
|
440
|
+
- New module-level operations `single_detect_language`, `single_recognize_entities`, `single_extract_key_phrases`, `single_analyze_sentiment`, `single_recognize_pii_entities`, and `single_recognize_linked_entities` perform
|
|
441
|
+
function on a single string instead of a batch of text documents and can be imported from the `azure.ai.textanalytics` namespace.
|
|
442
|
+
- New client and module-level async APIs added to subnamespace `azure.ai.textanalytics.aio`.
|
|
443
|
+
- `MultiLanguageInput` has been renamed to `TextDocumentInput`
|
|
444
|
+
- `LanguageInput` has been renamed to `DetectLanguageInput`
|
|
445
|
+
- `DocumentLanguage` has been renamed to `DetectLanguageResult`
|
|
446
|
+
- `DocumentEntities` has been renamed to `RecognizeEntitiesResult`
|
|
447
|
+
- `DocumentLinkedEntities` has been renamed to `RecognizeLinkedEntitiesResult`
|
|
448
|
+
- `DocumentKeyPhrases` has been renamed to `ExtractKeyPhrasesResult`
|
|
449
|
+
- `DocumentSentiment` has been renamed to `AnalyzeSentimentResult`
|
|
450
|
+
- `DocumentStatistics` has been renamed to `TextDocumentStatistics`
|
|
451
|
+
- `RequestStatistics` has been renamed to `TextDocumentBatchStatistics`
|
|
452
|
+
- `Entity` has been renamed to `NamedEntity`
|
|
453
|
+
- `Match` has been renamed to `LinkedEntityMatch`
|
|
454
|
+
- The batching methods' `documents` parameter has been renamed `inputs`
|
|
455
|
+
|
|
456
|
+
- New input types:
|
|
457
|
+
- `detect_languages` can take as input a `list[DetectLanguageInput]` or a `list[str]`. A list of dict-like objects in the same shape as `DetectLanguageInput` is still accepted as input.
|
|
458
|
+
- `recognize_entities`, `recognize_pii_entities`, `recognize_linked_entities`, `extract_key_phrases`, `analyze_sentiment` can take as input a `list[TextDocumentInput]` or `list[str]`.
|
|
459
|
+
A list of dict-like objects in the same shape as `TextDocumentInput` is still accepted as input.
|
|
460
|
+
|
|
461
|
+
- New parameters/keyword arguments:
|
|
462
|
+
- All operations now take a keyword argument `model_version` which allows the user to specify a string referencing the desired model version to be used for analysis. If no string specified, it will default to the latest, non-preview version.
|
|
463
|
+
- `detect_languages` now takes a parameter `country_hint` which allows you to specify the country hint for the entire batch. Any per-item country hints will take precedence over a whole batch hint.
|
|
464
|
+
- `recognize_entities`, `recognize_pii_entities`, `recognize_linked_entities`, `extract_key_phrases`, `analyze_sentiment` now take a parameter `language` which allows you to specify the language for the entire batch.
|
|
465
|
+
Any per-item specified language will take precedence over a whole batch hint.
|
|
466
|
+
- A `default_country_hint` or `default_language` keyword argument can be passed at client instantiation to set the default values for all operations.
|
|
467
|
+
- A `response_hook` keyword argument can be passed with a callback to use the raw response from the service. Additionally, values returned for `TextDocumentBatchStatistics` and `model_version` used must be retrieved using a response hook.
|
|
468
|
+
- `show_stats` and `model_version` parameters move to keyword only arguments.
|
|
469
|
+
|
|
470
|
+
- New return types
|
|
471
|
+
- The return types for the batching methods (`detect_languages`, `recognize_entities`, `recognize_pii_entities`, `recognize_linked_entities`, `extract_key_phrases`, `analyze_sentiment`) now return a heterogeneous list of
|
|
472
|
+
result objects and document errors in the order passed in with the request. To iterate over the list and filter for result or error, a boolean property on each object called `is_error` can be used to determine whether the returned response object at
|
|
473
|
+
that index is a result or an error:
|
|
474
|
+
- `detect_languages` now returns a List[Union[`DetectLanguageResult`, `DocumentError`]]
|
|
475
|
+
- `recognize_entities` now returns a List[Union[`RecognizeEntitiesResult`, `DocumentError`]]
|
|
476
|
+
- `recognize_pii_entities` now returns a List[Union[`RecognizePiiEntitiesResult`, `DocumentError`]]
|
|
477
|
+
- `recognize_linked_entities` now returns a List[Union[`RecognizeLinkedEntitiesResult`, `DocumentError`]]
|
|
478
|
+
- `extract_key_phrases` now returns a List[Union[`ExtractKeyPhrasesResult`, `DocumentError`]]
|
|
479
|
+
- `analyze_sentiment` now returns a List[Union[`AnalyzeSentimentResult`, `DocumentError`]]
|
|
480
|
+
- The module-level, single text operations will return a single result object or raise the error found on the document:
|
|
481
|
+
- `single_detect_languages` returns a `DetectLanguageResult`
|
|
482
|
+
- `single_recognize_entities` returns a `RecognizeEntitiesResult`
|
|
483
|
+
- `single_recognize_pii_entities` returns a `RecognizePiiEntitiesResult`
|
|
484
|
+
- `single_recognize_linked_entities` returns a `RecognizeLinkedEntitiesResult`
|
|
485
|
+
- `single_extract_key_phrases` returns a `ExtractKeyPhrasesResult`
|
|
486
|
+
- `single_analyze_sentiment` returns a `AnalyzeSentimentResult`
|
|
487
|
+
|
|
488
|
+
- New underlying REST pipeline implementation, based on the new `azure-core` library.
|
|
489
|
+
- Client and pipeline configuration is now available via keyword arguments at both the client level, and per-operation. See README for a full list of optional configuration arguments.
|
|
490
|
+
- Authentication using `azure-identity` credentials
|
|
491
|
+
- see the
|
|
492
|
+
[Azure Identity documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md)
|
|
493
|
+
for more information
|
|
494
|
+
- New error hierarchy:
|
|
495
|
+
- All service errors will now use the base type: `azure.core.exceptions.HttpResponseError`
|
|
496
|
+
- There is one exception type derived from this base type for authentication errors:
|
|
497
|
+
- `ClientAuthenticationError`: Authentication failed.
|
|
498
|
+
|
|
499
|
+
## 0.2.0 (2019-03-12)
|
|
500
|
+
|
|
501
|
+
**Features**
|
|
502
|
+
|
|
503
|
+
- Client class can be used as a context manager to keep the underlying HTTP session open for performance
|
|
504
|
+
- New method "entities"
|
|
505
|
+
- Model KeyPhraseBatchResultItem has a new parameter statistics
|
|
506
|
+
- Model KeyPhraseBatchResult has a new parameter statistics
|
|
507
|
+
- Model LanguageBatchResult has a new parameter statistics
|
|
508
|
+
- Model LanguageBatchResultItem has a new parameter statistics
|
|
509
|
+
- Model SentimentBatchResult has a new parameter statistics
|
|
510
|
+
|
|
511
|
+
**Breaking changes**
|
|
512
|
+
|
|
513
|
+
- TextAnalyticsAPI main client has been renamed TextAnalyticsClient
|
|
514
|
+
- TextAnalyticsClient parameter is no longer a region but a complete endpoint
|
|
515
|
+
|
|
516
|
+
**General Breaking changes**
|
|
517
|
+
|
|
518
|
+
This version uses a next-generation code generator that *might* introduce breaking changes.
|
|
519
|
+
|
|
520
|
+
- Model signatures now use only keyword-argument syntax. All positional arguments must be re-written as keyword-arguments.
|
|
521
|
+
To keep auto-completion in most cases, models are now generated for Python 2 and Python 3. Python 3 uses the "*" syntax for keyword-only arguments.
|
|
522
|
+
- Enum types now use the "str" mixin (class AzureEnum(str, Enum)) to improve the behavior when unrecognized enum values are encountered.
|
|
523
|
+
While this is not a breaking change, the distinctions are important, and are documented here:
|
|
524
|
+
https://docs.python.org/3/library/enum.html#others
|
|
525
|
+
At a glance:
|
|
526
|
+
|
|
527
|
+
- "is" should not be used at all.
|
|
528
|
+
- "format" will return the string value, where "%s" string formatting will return `NameOfEnum.stringvalue`. Format syntax should be preferred.
|
|
529
|
+
|
|
530
|
+
**Bugfixes**
|
|
531
|
+
|
|
532
|
+
- Compatibility of the sdist with wheel 0.31.0
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
## 0.1.0 (2018-01-12)
|
|
536
|
+
|
|
537
|
+
* Initial Release
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Copyright (c) Microsoft Corporation.
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|