Skip to content

Commit 761a4e6

Browse files
authored
[Text Analytics] Merge feature branch for v5.1.0 to main (Azure#16121)
It consists of the following already-reviewed PRs: Azure#16114 Azure#16095 Azure#15995 Azure#15684 Azure#15649 Azure#15598 Azure#15554
1 parent 40dd9e4 commit 761a4e6

File tree

524 files changed

+40148
-14225
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

524 files changed

+40148
-14225
lines changed

sdk/textanalytics/ai-text-analytics/CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
# Release History
22

3-
## 5.1.0-beta.7 (Unreleased)
3+
## 5.1.0 (Unreleased)
4+
5+
### New Features
6+
7+
- We are now targeting the service's v3.1 API as the default instead of v3.1-preview.5.
48

59
### Breaking Changes
610

711
- `PiiEntityDomainType` was renamed to `PiiEntityDomain`.
12+
- `domain` property of `RecognizePiiEntitiesAction` was renamed to `domainFilter`.
13+
- `categoriesFilter` was added to `RecognizePiiEntitiesAction`.
14+
- `beginAnalyzeActions` is now limited to accept up to one action only per type.
815

916
## 5.1.0-beta.6 (2021-05-18)
1017

1118
### New Features
19+
1220
- With the dropping of support for Node.js versions that are no longer in LTS, the dependency on `@types/node` has been updated to version 12. Read our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
1321
- We are now targeting the service's v3.1-preview.5 API as the default instead of v3.1-preview.4.
1422
- `beginAnalyzeActions` adds support for analyze sentiment actions.

sdk/textanalytics/ai-text-analytics/README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[Azure TextAnalytics](https://azure.microsoft.com/services/cognitive-services/text-analytics/) is a cloud-based service that provides advanced natural language processing over raw text, and includes six main functions:
44

5-
**Note:** This SDK targets Azure Text Analytics service API version 3.1.0-preview.5.
5+
**Note:** This SDK targets Azure Text Analytics service API version 3.1.0.
66

77
- Language Detection
88
- Sentiment Analysis
@@ -254,10 +254,7 @@ There is a separate endpoint and operation for recognizing Personally Identifiab
254254

255255
```javascript
256256
const { TextAnalyticsClient, AzureKeyCredential } = require("@azure/ai-text-analytics");
257-
const client = new TextAnalyticsClient(
258-
"<endpoint>",
259-
new AzureKeyCredential("<API key>")
260-
);
257+
const client = new TextAnalyticsClient("<endpoint>", new AzureKeyCredential("<API key>"));
261258
const documents = [
262259
"The employee's SSN is 555-55-5555.",
263260
"The employee's phone number is (555) 555-5555."
@@ -501,11 +498,6 @@ async function main() {
501498
main();
502499
```
503500

504-
## Known Issues
505-
506-
- `beginAnalyzeHealthcareEntities` is still in gated preview and can not be used with AAD credentials. For more information, see [the Text Analytics for Health documentation](https://docs.microsoft.com/azure/cognitive-services/text-analytics/how-tos/text-analytics-for-health?tabs=ner#request-access-to-the-public-preview).
507-
- At time of this SDK release, the `modelVersion` option to `beginAnalyzeHealthcareEntities` is ignored by the service. The service always processes the operation using the "latest" model.
508-
509501
## Troubleshooting
510502

511503
### Logging

sdk/textanalytics/ai-text-analytics/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "client",
44
"author": "Microsoft Corporation",
55
"description": "An isomorphic client library for the Azure Text Analytics service.",
6-
"version": "5.1.0-beta.7",
6+
"version": "5.1.0",
77
"keywords": [
88
"node",
99
"azure",
@@ -104,6 +104,7 @@
104104
"@azure/dev-tool": "^1.0.0",
105105
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
106106
"@azure/identity": "2.0.0-beta.3",
107+
"@azure/test-utils": "^1.0.0",
107108
"@azure/test-utils-recorder": "^1.0.0",
108109
"@microsoft/api-extractor": "7.7.11",
109110
"@types/chai": "^4.1.6",

sdk/textanalytics/ai-text-analytics/recordings/browsers/aad_textanalyticsclient_fast_tests_analyzesentiment/recording_client_accepts_string_and_language.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/textanalytics/ai-text-analytics/recordings/browsers/aad_textanalyticsclient_fast_tests_analyzesentiment/recording_client_accepts_string_with_no_language.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/textanalytics/ai-text-analytics/recordings/browsers/aad_textanalyticsclient_fast_tests_analyzesentiment/recording_client_accepts_textdocumentinput.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)