@azure/ai-text-analytics 6.0.0-alpha.20220516.1 → 6.0.0-beta.1
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.
- package/LICENSE +21 -0
- package/MIGRATION_v5_v6.md +373 -0
- package/dist/index.js +183 -183
- package/dist/index.js.map +1 -1
- package/dist-esm/src/generated/models/index.js +183 -183
- package/dist-esm/src/generated/models/index.js.map +1 -1
- package/dist-esm/src/index.js +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/package.json +12 -11
- package/types/ai-text-analytics.d.ts +24 -24
- package/CHANGELOG.md +0 -172
package/CHANGELOG.md
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
# Release History
|
|
2
|
-
|
|
3
|
-
## 6.0.0-beta.1 (Unreleased)
|
|
4
|
-
|
|
5
|
-
### Features Added
|
|
6
|
-
|
|
7
|
-
### Breaking Changes
|
|
8
|
-
|
|
9
|
-
### Bugs Fixed
|
|
10
|
-
|
|
11
|
-
### Other Changes
|
|
12
|
-
|
|
13
|
-
## 5.2.0-beta.2 (2021-11-02)
|
|
14
|
-
|
|
15
|
-
### Features Added
|
|
16
|
-
|
|
17
|
-
- We are now targeting the service's v3.2-preview.2 API as the default instead of v3.2-preview.1.
|
|
18
|
-
- 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.
|
|
19
|
-
|
|
20
|
-
### Other Changes
|
|
21
|
-
|
|
22
|
-
- `beginAnalyzeActions` supports actions to be named and the name is now accessible in each action result.
|
|
23
|
-
- `beginAnalyzeActions` supports multiple actions of the same type so you can pass a list of any particular action type, e.g.
|
|
24
|
-
|
|
25
|
-
```typescript
|
|
26
|
-
await client.beginAnalyzeActions(docs, { recognizePiiEntitiesActions: [
|
|
27
|
-
{ modelVersion: "latest", actionName: "action1" },
|
|
28
|
-
{ modelVersion: "2021-01-15", actionName: "action2" }]
|
|
29
|
-
});
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## 5.2.0-beta.1 (2021-08-09)
|
|
33
|
-
|
|
34
|
-
### Features Added
|
|
35
|
-
|
|
36
|
-
- We are now targeting the service's v3.2-preview.1 API as the default instead of v3.1.
|
|
37
|
-
- `beginAnalyzeActions` now supports extract summary actions.
|
|
38
|
-
|
|
39
|
-
## 5.1.0 (2021-07-07)
|
|
40
|
-
|
|
41
|
-
### New Features
|
|
42
|
-
|
|
43
|
-
- We are now targeting the service's v3.1 API as the default instead of v3.1-preview.5.
|
|
44
|
-
- `beginAnalyzeHealthcareEntities` now works with Azure Active Directory credentials.
|
|
45
|
-
- `categoriesFilter` support was added to `RecognizePiiEntitiesAction`.
|
|
46
|
-
- 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.
|
|
47
|
-
- Changed TS compilation target to ES2017 in order to produce smaller bundles and use more native platform features
|
|
48
|
-
|
|
49
|
-
### Breaking Changes
|
|
50
|
-
|
|
51
|
-
- `PiiEntityDomainType` was renamed to `PiiEntityDomain`.
|
|
52
|
-
- `domain` property of `RecognizePiiEntitiesAction` was renamed to `domainFilter`.
|
|
53
|
-
- `beginAnalyzeActions` is now limited to accept up to one action only per type.
|
|
54
|
-
|
|
55
|
-
## 5.1.0-beta.6 (2021-05-18)
|
|
56
|
-
|
|
57
|
-
### New Features
|
|
58
|
-
|
|
59
|
-
- 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.
|
|
60
|
-
- We are now targeting the service's v3.1-preview.5 API as the default instead of v3.1-preview.4.
|
|
61
|
-
- `beginAnalyzeActions` adds support for analyze sentiment actions.
|
|
62
|
-
- `disableServiceLogs` parameter is added to most actions in `beginAnalyzeActions` that controls service-side logging.
|
|
63
|
-
|
|
64
|
-
### Breaking Changes
|
|
65
|
-
|
|
66
|
-
- `beginAnalyzeBatchActions` was renamed to `beginAnalyzeActions`.
|
|
67
|
-
- `TextElements_v8` is renamed to `TextElement_v8` in model `StringIndexType`.
|
|
68
|
-
|
|
69
|
-
### Key Bug Fixes
|
|
70
|
-
|
|
71
|
-
- Results of entity linking actions were not returned correctly by `beginAnalyzeActions` and that is now fixed.
|
|
72
|
-
|
|
73
|
-
## 5.1.0-beta.5 (2021-03-11)
|
|
74
|
-
|
|
75
|
-
- We are now targeting the service's v3.1-preview.4 API as the default instead of v3.1-preview.3.
|
|
76
|
-
- [Breaking] Aspects in opinions mining are now called targets and each individual opinion is now called an assessment. The new naming simplifies the naming of different parts of the response.
|
|
77
|
-
- `beginAnalyzeBatchActions` can now process recognize linked entities actions.
|
|
78
|
-
- `beginAnalyzeHealthcareEntities` returns `entityRelations` per document, a list of relations between healthcare entities.
|
|
79
|
-
- `beginAnalyzeHealthcareEntities` entities now include `assertions` instead of `isNegated` which gives more context about the respective entity.
|
|
80
|
-
- [Breaking] `beginAnalyzeHealthcareEntities` no longer returns `relatedEntities`.
|
|
81
|
-
- `recognizePiiEntities` takes a new option, `categoriesFilter`, that specifies a list of Pii categories to return.
|
|
82
|
-
- [Breaking] `statistics` is no longer part of `PagedAnalyzeBatchActionsResult`.
|
|
83
|
-
|
|
84
|
-
## 5.1.0-beta.4 (2021-02-10)
|
|
85
|
-
|
|
86
|
-
- [Breaking] `beginAnalyzeHealthcare` is renamed to `beginAnalyzeHealthcareEntities`.
|
|
87
|
-
- [Breaking] `beginAnalyze` is renamed to `beginAnalyzeBatchActions`.
|
|
88
|
-
- A new option to control how the offset is calculated by the service, `stringIndexType`, is added to `analyzeSentiment`, `recognizeEntities`, `recognizePiiEntities`, and `beginAnalyzeHealthcareEntities`. Furthermore, `stringIndexType` is added to task types `RecognizeEntitiesAction` and `RecognizePiiEntitiesAction`, which are the types of input actions to the `beginAnalyzeBatchActions` method. For more information, see [the Text Analytics documentation](https://docs.microsoft.com/azure/cognitive-services/text-analytics/concepts/text-offsets#offsets-in-api-version-31-preview).
|
|
89
|
-
- [Breaking] The healthcare entities returned by `beginAnalyzeHealthcare` are now organized as a directed graph where the edges represent a certain type of healthcare relationship between the source and target entities. Edges are stored in the `relatedEntities` property.
|
|
90
|
-
- [Breaking] The `links` property of `HealthcareEntity` is renamed to `dataSources`, a list of objects representing medical databases, where each object has `name` and `entityId` properties.
|
|
91
|
-
- The poller for the `beginAnalyzeBatchActions` long-running operation gained the ability to return certain metadata information about the currently running operation (e.g., when the operation was created, will be expired, and last time it was updated, and also how many actions completed and failed so far). Also, the poller for `beginAnalyzeHealthcareEntities` gained a similar ability.
|
|
92
|
-
- [Breaking] the words "operation" and "action" are used consistently in our names and documentation instead of "job" and "task" respectively.
|
|
93
|
-
|
|
94
|
-
## 5.1.0-beta.3 (2020-11-23)
|
|
95
|
-
|
|
96
|
-
- We are now targeting the service's v3.1-preview.3 API as the default instead of v3.1-preview.2.
|
|
97
|
-
- We introduced the `beginAnalyze` API which supports long-running batch process of Named Entity Recognition, Personally identifiable Information, and Key Phrase Extraction.
|
|
98
|
-
- We now have added support for the recognition of healthcare entities with the introduction of the `beginAnalyzeHealthcare` 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. Note that since this is a gated preview, AAD is not supported. 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).
|
|
99
|
-
|
|
100
|
-
## 5.1.0-beta.2 (2020-10-06)
|
|
101
|
-
|
|
102
|
-
- [Breaking] The `length` property is removed from `SentenceSentiment`, `Entity`, `Match`, `PiiEntity`, and `CategorizedEntity` because the length information can be accessed from the text property itself using the string's length property.
|
|
103
|
-
|
|
104
|
-
## 5.1.0-beta.1 (2020-09-17)
|
|
105
|
-
|
|
106
|
-
- We are now targeting the service's v3.1-preview.2 API as the default instead of v3.0.
|
|
107
|
-
- We now have added support for opinion mining feature of Sentiment Analysis. To get this support, pass `includeOpinionMining` as True when calling the `analyzeSentiment` endpoint.
|
|
108
|
-
- We have added the `recognizePiiEntities` API which returns entities containing personal information for a batch of documents and also returns the redacted text.
|
|
109
|
-
- The `length` and `offset` properties are added to the `SentenceSentiment`, `Entity`, `Match`, `PiiEntity` and `CategorizedEntity` interfaces to represent the length of the sentence's text and its offset from the start of the document. The unit of distance used is UTF-16 code points.
|
|
110
|
-
- The `text` property of the `SentenceSentiment` interface is no longer marked as optional because the service has always returned it. This interface is used exclusively as an output type so this change does not break existing code.
|
|
111
|
-
- `bingEntitySearchApiId` property is now returned for entities returned by `recognizeLinkedEntities` API and is added to the `LinkedEntity` interface. This property is to be used in conjunction with the Bing Entity Search API to fetch additional relevant information about the returned entity.
|
|
112
|
-
|
|
113
|
-
## 5.0.1 (2020-08-18)
|
|
114
|
-
|
|
115
|
-
- Handles REST exceptions with code InvalidDocumentBatch in a way that maintains backward compatibility.
|
|
116
|
-
|
|
117
|
-
## 5.0.0 (2020-07-27)
|
|
118
|
-
|
|
119
|
-
- Updated the package version to be 5.0.0 instead of 1.0.0 in order to reduce confusion with older versions of the Azure Text Analytics SDKs.
|
|
120
|
-
|
|
121
|
-
## 1.0.0 (2020-06-09)
|
|
122
|
-
|
|
123
|
-
- This release marks the general availability of the `@azure/ai-text-analytics` package.
|
|
124
|
-
|
|
125
|
-
## 1.0.0-preview.5 (2020-05-26)
|
|
126
|
-
|
|
127
|
-
- [Breaking] Renamed all result array types that extend JavaScript's base `Array` class to end with the word `Array` instead of `Collection` (e.g. `AnalyzeSentimentResultCollection` is now `AnalyzeSentimentResultArray`)
|
|
128
|
-
- [Breaking] Renamed `score` to `confidenceScore` in the `Match`, `Entity`, and `DetectedLanguage` types.
|
|
129
|
-
- [Breaking] Removed the `graphemeOffset` and `graphemeLength` properties of the `Match`, `Entity`, and `SentenceSentiment` types.
|
|
130
|
-
- [Breaking] Renamed the `graphemeCount` property of `TextDocumentStatistics` back to `characterCount`
|
|
131
|
-
- Added a `text` property to `SentenceSentiment` that contains the sentence text
|
|
132
|
-
- [Breaking] Removed the `warnings` property of `SentenceSentiment`.
|
|
133
|
-
- Added `warnings` property to every document response object containing a list of `TextAnalyticsWarning` objects relevant to the corresponding document.
|
|
134
|
-
- Migrated to using the Text Analytics v3.0 (General Availability) service endpoint.
|
|
135
|
-
|
|
136
|
-
## 1.0.0-preview.4 (2020-04-07)
|
|
137
|
-
|
|
138
|
-
- Renamed the first parameter of all operation methods from `inputs` to `documents`
|
|
139
|
-
- [Breaking] Removed PII entity detection methods from `TextAnalyticsClient` as well as all associated samples and documentation
|
|
140
|
-
- [Breaking] Replaced `TextAnalyticsApiKeyCredential` with `AzureKeyCredential` (re-exported through this package from `@azure/core-auth`).
|
|
141
|
-
- `TextAnalyticsClient` methods now throw an error when the `documents` parameter is not an array or empty before sending a request to the Text Analytics service.
|
|
142
|
-
|
|
143
|
-
## 1.0.0-preview.3 (2020-03-10)
|
|
144
|
-
|
|
145
|
-
- [Breaking] Renamed `id` to `dataSourceEntityId` in the `LinkedEntity` type.
|
|
146
|
-
- Added special handling for the string `"none"` as the `countryHint` parameter of the `TextAnalyticsClient.detectLanguage`. `"none"` is now treated the same as the empty string, and indicates that the default language detection model should be used.
|
|
147
|
-
- [Breaking] Renamed `offset` to `graphemeOffset` and `length` to `graphemeLength` in fields of response objects as appropriate in order to make it clear that the offsets and lengths are in units of Unicode graphemes.
|
|
148
|
-
- [Breaking] Renamed `sentimentScores` on both `DocumentSentiment` and `SentenceSentiment` to `confidenceScores`, and renamed the type `SentimentScorePerLabel` to `SentimentConfidenceScores`.
|
|
149
|
-
- [Breaking] Renamed `characterCount` to `graphemeCount` in the `DocumentStatistics` interface, to align with the change to using `grapheme` in the lengths/offsets of response objects.
|
|
150
|
-
|
|
151
|
-
## 1.0.0-preview.2 (2020-02-11)
|
|
152
|
-
|
|
153
|
-
- Added support for rotating API keys via the `TextAnalyticsApiKeyCredential.updateKey` method.
|
|
154
|
-
- Added a discriminant type for `TextAnalyticsResult.error` to allow for easy differentiation between success and error types using `if (result.error) { ... }` in both TypeScript and JavaScript.
|
|
155
|
-
- [Breaking] Removed the `Entity` type and added new return types `CategorizedEntity` and `PiiEntity` for the `recognizeEntities` and `recognizePiiEntities` methods respectively. These types are equivalent to the previous `Entity` type.
|
|
156
|
-
- [Breaking] Removed the `detectedLanguages` property from `DetectLanguageResult`, as the service currently only returns one language.
|
|
157
|
-
- [Breaking] Renamed the `detectLanguages` method to `detectLanguage`, as the `detectedLanguages` property was removed from the `DetectLanguageResult` return type.
|
|
158
|
-
- [Breaking] Renamed `documentScores` and `sentenceScores` on the `DocumentSentiment` and `SentenceSentiment` types both to `sentimentScores`.
|
|
159
|
-
- [Breaking] Renamed `type` and `subtype` to `category` and `subcategory` respectively in the `CategorizedEntity` and `PiiEntity` types.
|
|
160
|
-
- [Breaking] Renamed `DocumentSentimentValue` and `SentenceSentimentValue` to `DocumentSentimentLabel` and `SentenceSentimentLabel` respectively.
|
|
161
|
-
- [Breaking] Renamed `SentimentConfidenceScorePerLabel` to `SentimentScorePerLabel`.
|
|
162
|
-
- [Breaking] Refactored `TextAnalyticsError` to flatten the error hierarchy and remove `innerError`. The new error model has properties for `code`, `message`, and an optional `target` only. The `code` property of `TextAnalyticsError` can now contain all of the codes from the previous `InnerErrorCodeValue` as well as those from the top-level `ErrorCodeValue`.
|
|
163
|
-
|
|
164
|
-
## 1.0.0-preview.1 (2020-01-09)
|
|
165
|
-
|
|
166
|
-
- This release is a preview of our efforts to create a client library that is user friendly and
|
|
167
|
-
idiomatic to the JavaScript ecosystem. The reasons for most of the changes in this update can be found in the
|
|
168
|
-
[Azure SDK Design Guidelines for TypeScript](https://azure.github.io/azure-sdk/typescript_introduction.html).
|
|
169
|
-
- Differences from previous public package `@azure/cognitiveservices-textanalytics`
|
|
170
|
-
- Package name changed from `@azure/cognitiveservices-textanalytics` to `@azure/ai-text-analytics`.
|
|
171
|
-
- Package targets version `3.0` of the service API.
|
|
172
|
-
- Supports authentication via `@azure/identity`.
|