Skip to content

Commit d2f7a74

Browse files
authored
[Text Analytics] Reset to 5.1 (Azure#22672)
Resets the code base for the Text Analytics library to the one used to release v5.1.0. The reset was done by checking out the library folder from the github tag for the v5.1.0 release. However, I updated the code base to use @azure/core-tracing@^1.0.0 too. This is needed because v6.0.0-beta.1 has been moved in Azure#22640 into a new package: @azure/ai-language-text.
1 parent 46ea9d1 commit d2f7a74

File tree

1,034 files changed

+131195
-173938
lines changed

Some content is hidden

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

1,034 files changed

+131195
-173938
lines changed

common/config/rush/pnpm-lock.yaml

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

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

Lines changed: 5 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,17 @@
11
# Release History
22

3-
## 6.0.0-beta.1 (2022-05-19)
3+
## 5.1.1 (Unreleased)
44

5-
This new major version beta introduces a full redesign of the Azure Text Analytics client library, supports the new Azure Cognitive Language Service API (version "2022-04-01-preview" and newer) and drops support for the Text Analytics service API. Application code must be updated to use the new client, please see the [Migration Guide](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/textanalytics/ai-text-analytics/MIGRATION_v5_v6.md) for detailed instructions.
5+
### Features Added
66

77
### Breaking Changes
88

9-
- This version targets Azure Cognitive Language Service API version `2022-04-01-preview` and newer. It _is not_ compatible with the Text Analytics service API. To continue to use the Text Analytics API version 3.1, please use major version 5 of the client library (`@azure/ai-text-analytics@^5.1.0`).
10-
- `TextAnalyticsClient` has been replaced by `TextAnalysisClient`.
11-
- The new `beginAnalyzeBatch` method replaces the previous `beginAnalyzeActions` and `beginAnalyzeHealthcareEntities` methods. The specification of actions and their results has changed to be a flat list instead of being an object where actions of the same kind are grouped into their own properties.
12-
- The new `analyze` method replaces the text analysis methods of the previous client. It provides a single method that can analyze documents using an action name. It replaces `analyzeSentiment`, `extractKeyPhrases`, `recognizeEntities`, `recognizePiiEntities`, `recognizeLinkedEntities`, and `detectLanguage`. The new method produces an `AnalyzeResult` that gets specialized to the type of results corresponding to the input action.
13-
- Previously, types were named such that they follow the naming convention of actions as verb phrases, e.g. `RecognizeEntitiesResult`. Actions are now renamed as nouns and so their corresponding types, so `RecognizeEntitiesResult` is now named `EntityRecognitionResult`. Please consult the migration guide for a full list of all renames.
14-
- In many output types, properties are now marked as read-only.
15-
- `SingleCategoryClassifyActionSuccessResult` is renamed to `CustomSingleLabelClassificationSuccessResult` and the `classification` property has been renamed to `classifications` and is now an array.
16-
- `statistics` and `modelVersion` has been removed from result arrays, e.g. `RecognizeEntitiesResultArray` has been replaced by `EntityRecognitionResult[]`.
17-
18-
### New Features
19-
20-
- Added support for healthcare analysis in the batching method (now `beginAnalyzeBatch`).
21-
- Added support for FHIR (a standard for health care data exchange) representation of healthcare documents in the healthcare analysis action. To use it, pass `4.0.1` to the `fhirVersion` parameter.
22-
- Added `restoreAnalyzeBatchPoller` to restore a poller for a batch analysis operation from a serialized poller state.
23-
- `byPage` method on `PagedAnalyzeBatchResult` now supports passing a `continuationToken` to a particular page of results and start fetching paging from that position.
24-
25-
## 5.2.0-beta.2 (2021-11-02)
26-
27-
### Features Added
28-
29-
- We are now targeting the service's v3.2-preview.2 API as the default instead of v3.2-preview.1.
30-
- Adding support for a three new actions in `beginAnalyzeActions`: `recognizeCustomEntities`, `singleCategoryClassify`, and `multiCategoryClassify`. The new actions allow you to use custom models to perform entity recognition and classification actions.
9+
### Bugs Fixed
3110

3211
### Other Changes
3312

34-
- `beginAnalyzeActions` supports actions to be named and the name is now accessible in each action result.
35-
- `beginAnalyzeActions` supports multiple actions of the same type so you can pass a list of any particular action type, e.g.
36-
37-
```typescript
38-
await client.beginAnalyzeActions(docs, { recognizePiiEntitiesActions: [
39-
{ modelVersion: "latest", actionName: "action1" },
40-
{ modelVersion: "2021-01-15", actionName: "action2" }]
41-
});
42-
```
43-
44-
## 5.2.0-beta.1 (2021-08-09)
45-
46-
### Features Added
47-
48-
- We are now targeting the service's v3.2-preview.1 API as the default instead of v3.1.
49-
- `beginAnalyzeActions` now supports extract summary actions.
13+
- Depends on the latest stable version of the @azure/core-tracing library.
14+
- Duplicate action are no longer eagerly checked by the client before sending a batch request.
5015

5116
## 5.1.0 (2021-07-07)
5217

@@ -55,8 +20,6 @@ This new major version beta introduces a full redesign of the Azure Text Analyti
5520
- We are now targeting the service's v3.1 API as the default instead of v3.1-preview.5.
5621
- `beginAnalyzeHealthcareEntities` now works with Azure Active Directory credentials.
5722
- `categoriesFilter` support was added to `RecognizePiiEntitiesAction`.
58-
- Updated our internal core package dependencies to their latest versions in order to add support for Opentelemetry 1.0.0 which is compatible with the latest versions of our other client libraries.
59-
- Changed TS compilation target to ES2017 in order to produce smaller bundles and use more native platform features
6023

6124
### Breaking Changes
6225

0 commit comments

Comments
 (0)