Skip to content

Commit f9f1bda

Browse files
[textanalytics] release prep (Azure#21522)
* update release date * update sample descriptions * update swagger readme * bump azure-core
1 parent 4bafa41 commit f9f1bda

10 files changed

+31
-23
lines changed

sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 5.2.0b2 (Unreleased)
3+
## 5.2.0b2 (2021-11-02)
44

55
This version of the SDK defaults to the latest supported API version, which currently is `v3.2-preview.2`.
66

@@ -10,14 +10,12 @@ This version of the SDK defaults to the latest supported API version, which curr
1010
- Added support for Custom Multi Classification through the `begin_analyze_actions` API with the `MultiCategoryClassifyAction` and `MultiCategoryClassifyActionResult` types.
1111
- Multiple of the same action type is now supported with `begin_analyze_actions`.
1212

13-
### Breaking Changes
14-
1513
### Bugs Fixed
1614
- Restarting a long-running operation from a saved state is now supported for the `begin_analyze_actions` and `begin_recognize_healthcare_entities` methods.
1715
- In the event of an action level error, available partial results are now returned for any successful actions in `begin_analyze_actions`.
1816

1917
### Other Changes
20-
- Package requires [azure-core](https://pypi.org/project/azure-core/) version 1.16.0 or greater
18+
- Package requires [azure-core](https://pypi.org/project/azure-core/) version 1.19.1 or greater
2119

2220
## 5.2.0b1 (2021-08-09)
2321

sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_multi_category_classify_async.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111
1212
DESCRIPTION:
1313
This sample demonstrates how to classify documents into multiple custom categories. For example,
14-
movie plot summaries can be categorized into multiple movie genres like Sci-Fi and Horror, or Comedy and Romance, etc.
15-
Classifying documents is available as an action type through the begin_analyze_actions API.
14+
movie plot summaries can be categorized into multiple movie genres like "Action" and "Thriller",
15+
or "Comedy" and "Drama", etc. Classifying documents is available as an action type through
16+
the begin_analyze_actions API.
1617
17-
To train a model to classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities
18+
For information on regional support of custom features and how to train a model to
19+
classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities
1820
1921
USAGE:
2022
python sample_multi_category_classify_async.py

sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_custom_entities_async.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
This sample demonstrates how to recognize custom entities in documents.
1414
Recognizing custom entities is available as an action type through the begin_analyze_actions API.
1515
16-
To train a model to recognize your custom entities, see https://aka.ms/azsdk/textanalytics/customentityrecognition
16+
For information on regional support of custom features and how to train a model to
17+
recognize custom entities, see https://aka.ms/azsdk/textanalytics/customentityrecognition
1718
1819
USAGE:
1920
python sample_recognize_custom_entities_async.py

sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_single_category_classify_async.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111
1212
DESCRIPTION:
1313
This sample demonstrates how to classify documents into a single custom category. For example,
14-
movie plot summaries can be categorized into a single movie genre like Sci-Fi, Horror, Comedy, Romance, etc.
15-
Classifying documents is available as an action type through the begin_analyze_actions API.
14+
movie plot summaries can be categorized into a single movie genre like "Mystery", "Drama", "Thriller",
15+
"Comedy", "Action", etc. Classifying documents is available as an action type through
16+
the begin_analyze_actions API.
1617
17-
To train a model to classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities
18+
For information on regional support of custom features and how to train a model to
19+
classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities
1820
1921
USAGE:
2022
python sample_single_category_classify_async.py

sdk/textanalytics/azure-ai-textanalytics/samples/sample_multi_category_classify.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111
1212
DESCRIPTION:
1313
This sample demonstrates how to classify documents into multiple custom categories. For example,
14-
movie plot summaries can be categorized into multiple movie genres like Sci-Fi and Horror, or Comedy and Romance, etc.
15-
Classifying documents is available as an action type through the begin_analyze_actions API.
14+
movie plot summaries can be categorized into multiple movie genres like "Action" and "Thriller",
15+
or "Comedy" and "Drama", etc. Classifying documents is available as an action type through
16+
the begin_analyze_actions API.
1617
17-
To train a model to classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities
18+
For information on regional support of custom features and how to train a model to
19+
classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities
1820
1921
USAGE:
2022
python sample_multi_category_classify.py

sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_custom_entities.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
This sample demonstrates how to recognize custom entities in documents.
1414
Recognizing custom entities is available as an action type through the begin_analyze_actions API.
1515
16-
To train a model to recognize your custom entities, see https://aka.ms/azsdk/textanalytics/customentityrecognition
16+
For information on regional support of custom features and how to train a model to
17+
recognize custom entities, see https://aka.ms/azsdk/textanalytics/customentityrecognition
1718
1819
USAGE:
1920
python sample_recognize_custom_entities.py

sdk/textanalytics/azure-ai-textanalytics/samples/sample_single_category_classify.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111
1212
DESCRIPTION:
1313
This sample demonstrates how to classify documents into a single custom category. For example,
14-
movie plot summaries can be categorized into a single movie genre like Sci-Fi, Horror, Comedy, Romance, etc.
15-
Classifying documents is available as an action type through the begin_analyze_actions API.
14+
movie plot summaries can be categorized into a single movie genre like "Mystery", "Drama", "Thriller",
15+
"Comedy", "Action", etc. Classifying documents is available as an action type through
16+
the begin_analyze_actions API.
1617
17-
To train a model to classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities
18+
For information on regional support of custom features and how to train a model to
19+
classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities
1820
1921
USAGE:
2022
python sample_single_category_classify.py

sdk/textanalytics/azure-ai-textanalytics/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
'azure.ai',
8181
]),
8282
install_requires=[
83-
"azure-core<2.0.0,>=1.16.0",
83+
"azure-core<2.0.0,>=1.19.1",
8484
"msrest>=0.6.21",
8585
'azure-common~=1.1',
8686
'six>=1.11.0',

sdk/textanalytics/azure-ai-textanalytics/swagger/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ perform-load: false
4646
These settings apply only when `--tag=release_3_0` is specified on the command line.
4747

4848
```yaml $(tag) == 'release_3_0'
49-
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/cognitiveservices/data-plane/TextAnalytics/stable/v3.0/TextAnalytics.json
49+
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/cognitiveservices/data-plane/TextAnalytics/stable/v3.0/TextAnalytics.json
5050
namespace: azure.ai.textanalytics.v3_0
5151
output-folder: $(python-sdks-folder)/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0
5252
```
@@ -56,7 +56,7 @@ output-folder: $(python-sdks-folder)/textanalytics/azure-ai-textanalytics/azure/
5656
These settings apply only when `--tag=release_3_1` is specified on the command line.
5757

5858
```yaml $(tag) == 'release_3_1'
59-
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/cognitiveservices/data-plane/TextAnalytics/stable/v3.1/TextAnalytics.json
59+
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/cognitiveservices/data-plane/TextAnalytics/stable/v3.1/TextAnalytics.json
6060
namespace: azure.ai.textanalytics.v3_1
6161
output-folder: $(python-sdks-folder)/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1
6262
```
@@ -66,7 +66,7 @@ output-folder: $(python-sdks-folder)/textanalytics/azure-ai-textanalytics/azure/
6666
These settings apply only when `--tag=release_3_2_preview.2` is specified on the command line.
6767

6868
```yaml $(tag) == 'release_3_2_preview.2'
69-
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/71c9d235dab9206194691d083f0248c8613e2e17/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.2-preview.2/TextAnalytics.json
69+
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.2-preview.2/TextAnalytics.json
7070
namespace: azure.ai.textanalytics.v3_2_preview_2
7171
output-folder: $(python-sdks-folder)/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2
7272
```

shared_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ backports.functools-lru-cache >= 1.6.4; python_version == "2.7"
150150
#override azure-keyvault-keys azure-core<2.0.0,>=1.7.0
151151
#override azure-keyvault-secrets azure-core<2.0.0,>=1.7.0
152152
#override azure-ai-textanalytics msrest>=0.6.21
153-
#override azure-ai-textanalytics azure-core<2.0.0,>=1.16.0
153+
#override azure-ai-textanalytics azure-core<2.0.0,>=1.19.1
154154
#override azure-ai-language-questionanswering azure-core<2.0.0,>=1.19.0
155155
#override azure-ai-language-questionanswering msrest>=0.6.21
156156
#override azure-search-documents azure-core<2.0.0,>=1.19.0

0 commit comments

Comments
 (0)