You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md
+2
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,10 @@
2
2
3
3
## 5.0.1 (Unreleased)
4
4
5
+
**New features**
5
6
- We are now targeting the service's v3.1-preview.1 API as the default. If you would like to still use version v3.0 of the service,
6
7
pass in `v3.0` to the kwarg `api_version` when creating your TextAnalyticsClient
8
+
- We have added an API `recognize_pii_entities` which returns entities containing personal information for a batch of documents. Only available for API version v3.1-preview.1 and up.
@@ -290,6 +292,35 @@ The returned response is a heterogeneous list of result and error objects: list[
290
292
Please refer to the service documentation for a conceptual discussion of [entity linking][linked_entity_recognition]
291
293
and [supported types][linked_entities_categories].
292
294
295
+
### Recognize PII entities
296
+
[recognize_pii_entities][recognize_pii_entities] recognizes and categorizes Personally Identifiable Information (PII) entities in its input text, such as
297
+
Social Security Numbers, bank account information, credit card numbers, and more. This endpoint is only available for v3.1-preview.1 and up.
298
+
299
+
```python
300
+
from azure.core.credentials import AzureKeyCredential
301
+
from azure.ai.textanalytics import TextAnalyticsClient, ApiVersion
The returned response is a heterogeneous list of result and error objects: list[[RecognizePiiEntitiesResult][recognize_pii_entities_result], [DocumentError][document_error]]
321
+
322
+
Please refer to the service documentation for [supported PII entity types][pii_entity_categories].
323
+
293
324
### Extract key phrases
294
325
[extract_key_phrases][extract_key_phrases] determines the main talking points in its input text. For example, for the input text "The food was delicious and there were wonderful staff", the API returns: "food" and "wonderful staff".
295
326
@@ -412,6 +443,7 @@ Authenticate the client with a Cognitive Services/Text Analytics API key or a to
0 commit comments