Implement text analysis solutions 4.1 Apply language model text analysis
A legal team wants Azure Language to detect and redact PII in Word and PDF contracts…
Study guide skill: Configure detection of sentiment, tone, safety issues, and sensitive content
Question B7-013
A legal team wants Azure Language to detect and redact PII in Word and PDF contracts while keeping them as files, using the native document PII feature (its API version is in preview). Which two statements are correct? (Choose two.)
Select 2 answers.
Answer: D, E
Native document support works asynchronously: you POST the request, GET the status, and the processed documents land in your Blob Storage target container. Digital images with embedded text aren't supported, and native support removes the need to convert documents to text first. The prerequisites call for a single-service Language resource, not a multi-service Foundry resource.
Deep dive
How it works
Azure Language native document support lets PII detection work on files directly, Word (docx), PDF (including scanned PDFs) and plain text, with no text preprocessing step. Redacted output comes back as files.
The workflow is asynchronous:
- Put the source documents in an Azure Blob Storage source container, and create a target container for results.
- POST the job, with the document locations in the request body.
- GET the job status with the operation location until it completes.
- Read the processed, redacted documents from the target container.
A few limits worth knowing:
- Text within images: digital images with embedded text aren't supported, so a name inside a scanned stamp image isn't detected.
- Tables in scanned documents aren't supported.
- Per request: up to 40 documents and 10 MB total content.
For the resource, the prerequisites call for a single-service Language resource, not a multi-service Foundry resource.
The other options, and when you'd use them
- Convert each contract to plain text first: Native document support eliminates the need for text preprocessing.
- Redacted file in the POST response body: It's asynchronous. The POST submits the job, a GET retrieves status, and results land in the Blob Storage target container.
- A multi-service Foundry resource is required: The opposite. The prerequisites specify a single-service Language resource, not a multi-service Foundry resource.
Exam tip
Native document PII = async POST + GET, files in a Blob target container, docx/pdf/txt, single-service Language resource. Text inside images isn't detected.
References
Last reviewed: