Skip to content

Commit 97fa3a6

Browse files
committed
Fixes for conversation PII
1 parent e3e3713 commit 97fa3a6

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

articles/ai-services/language-service/personally-identifiable-information/how-to-call-for-conversations.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,21 @@ When you get results from PII detection, you can stream the results to an applic
7777

7878
# [REST API](#tab/rest-api)
7979

80-
## Redaction Policy
80+
## Redaction Policy (version 2024-11-15-preview only)
8181

82-
You're able to define the `redactionPolicy` parameter to reflect the redaction policy to be used when redacting the document in the response. The policy field supports 3 policy types:
82+
In version 2024-11-15-preview, you're able to define the `redactionPolicy` parameter to reflect the redaction policy to be used when redacting the document in the response. The policy field supports 3 policy types:
8383

84-
- `DoNotRedact`
85-
- `MaskWithCharacter` (default)
86-
- `MaskWithEntityType`
84+
- `noMask`
85+
- `characterMask` (default)
86+
- `entityMask`
8787

88-
The `DoNotRedact` policy allows the user to return the response without the `redactedText` field.
88+
The `noMask` policy allows the user to return the response without the `redactedText` field.
8989

90-
The `MaskWithRedactionCharacter` policy allows the `redactedText` to be masked with a character, preserving the length and offset of the original text. This is the existing behavior.
90+
The `characterMask` policy allows the `redactedText` to be masked with a character, preserving the length and offset of the original text. This is the existing behavior.
9191

92-
There is also an optional field called `redactionCharacter` where you can input the character to be used in redaction if you're using the `MaskWithCharacter` policy
92+
There is also an optional field called `redactionCharacter` where you can input the character to be used in redaction if you're using the `characterMask` policy
9393

94-
The `MaskWithEntityType` policy allows you to mask the detected PII entity text with the detected entity type
94+
The `entityMask` policy allows you to mask the detected PII entity text with the detected entity type
9595

9696
Use the following example if you want to change the redaction policy.
9797

articles/ai-services/language-service/personally-identifiable-information/how-to-call.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ By default, this feature uses the latest available AI model on your text. You ca
3232

3333
When you submit documents to be processed, you can specify which of [the supported languages](language-support.md) they're written in. if you don't specify a language, extraction defaults to English. The API may return offsets in the response to support different [multilingual and emoji encodings](../concepts/multilingual-emoji-support.md).
3434

35-
### Redaction Policy
35+
### Redaction Policy (version 2024-11-5-preview only)
3636

37-
You're able to define the `redactionPolicy` parameter to reflect the redaction policy to be used when redacting the document in the response. The policy field supports 3 policy types:
37+
in version 2024-11-5-preview, you're able to define the `redactionPolicy` parameter to reflect the redaction policy to be used when redacting the document in the response. The policy field supports 3 policy types:
3838

3939
- `DoNotRedact`
4040
- `MaskWithCharacter` (default)

0 commit comments

Comments
 (0)