Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[textanalytics] release prep #21522

Merged
merged 5 commits into from
Nov 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Release History

## 5.2.0b2 (Unreleased)
## 5.2.0b2 (2021-11-02)

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

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

### Breaking Changes

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

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

## 5.2.0b1 (2021-08-09)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@

DESCRIPTION:
This sample demonstrates how to classify documents into multiple custom categories. For example,
movie plot summaries can be categorized into multiple movie genres like Sci-Fi and Horror, or Comedy and Romance, etc.
Classifying documents is available as an action type through the begin_analyze_actions API.
movie plot summaries can be categorized into multiple movie genres like "Action" and "Thriller",
or "Comedy" and "Drama", etc. Classifying documents is available as an action type through
the begin_analyze_actions API.

To train a model to classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities
For information on regional support of custom features and how to train a model to
classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities

USAGE:
python sample_multi_category_classify_async.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
This sample demonstrates how to recognize custom entities in documents.
Recognizing custom entities is available as an action type through the begin_analyze_actions API.

To train a model to recognize your custom entities, see https://aka.ms/azsdk/textanalytics/customentityrecognition
For information on regional support of custom features and how to train a model to
recognize custom entities, see https://aka.ms/azsdk/textanalytics/customentityrecognition

USAGE:
python sample_recognize_custom_entities_async.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@

DESCRIPTION:
This sample demonstrates how to classify documents into a single custom category. For example,
movie plot summaries can be categorized into a single movie genre like Sci-Fi, Horror, Comedy, Romance, etc.
Classifying documents is available as an action type through the begin_analyze_actions API.
movie plot summaries can be categorized into a single movie genre like "Mystery", "Drama", "Thriller",
"Comedy", "Action", etc. Classifying documents is available as an action type through
the begin_analyze_actions API.

To train a model to classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities
For information on regional support of custom features and how to train a model to
classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities

USAGE:
python sample_single_category_classify_async.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@

DESCRIPTION:
This sample demonstrates how to classify documents into multiple custom categories. For example,
movie plot summaries can be categorized into multiple movie genres like Sci-Fi and Horror, or Comedy and Romance, etc.
Classifying documents is available as an action type through the begin_analyze_actions API.
movie plot summaries can be categorized into multiple movie genres like "Action" and "Thriller",
or "Comedy" and "Drama", etc. Classifying documents is available as an action type through
the begin_analyze_actions API.

To train a model to classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities
For information on regional support of custom features and how to train a model to
classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities

USAGE:
python sample_multi_category_classify.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
This sample demonstrates how to recognize custom entities in documents.
Recognizing custom entities is available as an action type through the begin_analyze_actions API.

To train a model to recognize your custom entities, see https://aka.ms/azsdk/textanalytics/customentityrecognition
For information on regional support of custom features and how to train a model to
recognize custom entities, see https://aka.ms/azsdk/textanalytics/customentityrecognition

USAGE:
python sample_recognize_custom_entities.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@

DESCRIPTION:
This sample demonstrates how to classify documents into a single custom category. For example,
movie plot summaries can be categorized into a single movie genre like Sci-Fi, Horror, Comedy, Romance, etc.
Classifying documents is available as an action type through the begin_analyze_actions API.
movie plot summaries can be categorized into a single movie genre like "Mystery", "Drama", "Thriller",
"Comedy", "Action", etc. Classifying documents is available as an action type through
the begin_analyze_actions API.

To train a model to classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities
For information on regional support of custom features and how to train a model to
classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities

USAGE:
python sample_single_category_classify.py
Expand Down
2 changes: 1 addition & 1 deletion sdk/textanalytics/azure-ai-textanalytics/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
'azure.ai',
]),
install_requires=[
"azure-core<2.0.0,>=1.16.0",
"azure-core<2.0.0,>=1.19.1",
"msrest>=0.6.21",
'azure-common~=1.1',
'six>=1.11.0',
Expand Down
6 changes: 3 additions & 3 deletions sdk/textanalytics/azure-ai-textanalytics/swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ perform-load: false
These settings apply only when `--tag=release_3_0` is specified on the command line.

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

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

```yaml $(tag) == 'release_3_2_preview.2'
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/71c9d235dab9206194691d083f0248c8613e2e17/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.2-preview.2/TextAnalytics.json
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.2-preview.2/TextAnalytics.json
namespace: azure.ai.textanalytics.v3_2_preview_2
output-folder: $(python-sdks-folder)/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2
```
Expand Down
2 changes: 1 addition & 1 deletion shared_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ backports.functools-lru-cache >= 1.6.4; python_version == "2.7"
#override azure-keyvault-keys azure-core<2.0.0,>=1.7.0
#override azure-keyvault-secrets azure-core<2.0.0,>=1.7.0
#override azure-ai-textanalytics msrest>=0.6.21
#override azure-ai-textanalytics azure-core<2.0.0,>=1.16.0
#override azure-ai-textanalytics azure-core<2.0.0,>=1.19.1
#override azure-ai-language-questionanswering azure-core<2.0.0,>=1.19.0
#override azure-ai-language-questionanswering msrest>=0.6.21
#override azure-search-documents azure-core<2.0.0,>=1.19.0
Expand Down