-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for API version 2024-11-15-preview for Language AnalyzeDo…
…cuments (#31088) * Add Changes for Language - Documents API * Another update * update * fix * add examples * typespec changes * add excludeEntities parameter * tsv * small change * one more update * Update for query * run tsv * typo * remove v2023_11_15_preview --------- Co-authored-by: Bidisha Chakraborty <[email protected]>
- Loading branch information
Showing
12 changed files
with
4,631 additions
and
33 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
...nts/examples/2024-11-15-preview/SuccessfulAnalyzeDocumentsJobStatusTaskStatusRequest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"operationId": "AnalyzeDocumentsJobStatus", | ||
"title": "SuccessfulAnalyzeDocumentsJobStatusTaskStatusRequest", | ||
"parameters": { | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"api-version": "2024-11-15-preview", | ||
"Endpoint": "{Endpoint}", | ||
"jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"createdDateTime": "2023-12-30T15:00:45Z", | ||
"displayName": "Extracting Location & US Region", | ||
"expirationDateTime": "2020-10-03T15:01:03Z", | ||
"jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18", | ||
"lastUpdatedDateTime": "2023-12-30T15:01:03Z", | ||
"status": "succeeded", | ||
"tasks": { | ||
"completed": 2, | ||
"failed": 0, | ||
"inProgress": 0, | ||
"total": 2, | ||
"items": [ | ||
{ | ||
"kind": "PiiEntityRecognitionLROResults", | ||
"taskName": "PII Redaction Task 1", | ||
"lastUpdateDateTime": "2020-10-01T15:01:03Z", | ||
"status": "succeeded", | ||
"results": { | ||
"documents": [ | ||
{ | ||
"source": { | ||
"location": "https://myblob.blob.core.windows.net/Container/document.txt", | ||
"kind": "AzureBlob" | ||
}, | ||
"target": [ | ||
{ | ||
"location": "https://myblob.blob.core.windows.net/Container/0af5def0-5855-41b2-9e75-0a559fb6f545/PiiEntityRecognition/1/document.txt", | ||
"kind": "AzureBlob" | ||
}, | ||
{ | ||
"location": "https://myblob.blob.core.windows.net/Container/0af5def0-5855-41b2-9e75-0a559fb6f545/PiiEntityRecognition/1/document.json", | ||
"kind": "AzureBlob" | ||
} | ||
], | ||
"id": "1", | ||
"warnings": [] | ||
} | ||
], | ||
"errors": [], | ||
"modelVersion": "2023-09-01" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...yzeDocuments/examples/2024-11-15-preview/SuccessfulAnalyzeDocumentsJobsCancelRequest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"operationId": "AnalyzeDocumentsCancelJob", | ||
"title": "SuccessfulAnalyzeDocumentsJobsCancelRequest", | ||
"parameters": { | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"api-version": "2024-11-15-preview", | ||
"Endpoint": "{Endpoint}", | ||
"jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Operation-Location": "{Endpoint}/language/analyze-documents/jobs/{jobId}?api-version=2024-11-15-preview" | ||
} | ||
} | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
...ocuments/examples/2024-11-15-preview/SuccessfulAnalyzeDocumentsJobsTaskSubmitRequest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"operationId": "AnalyzeDocumentsSubmitJob", | ||
"title": "SuccessfulAnalyzeDocumentsJobsTaskSubmitRequest", | ||
"parameters": { | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"api-version": "2024-11-15-preview", | ||
"Endpoint": "{Endpoint}", | ||
"jobId": "{Job ID}", | ||
"body": { | ||
"displayName": "Redact PII from documents example", | ||
"analysisInput": { | ||
"documents": [ | ||
{ | ||
"id": "1", | ||
"language": "en", | ||
"source": { | ||
"location": "https://myblob.blob.core.windows.net/Container/document.txt", | ||
"kind": "AzureBlob" | ||
}, | ||
"target": { | ||
"location": "https://myblob.blob.core.windows.net/Container", | ||
"kind": "AzureBlob" | ||
} | ||
} | ||
] | ||
}, | ||
"tasks": [ | ||
{ | ||
"kind": "PiiEntityRecognition", | ||
"taskName": "Redact PII Task 1", | ||
"parameters": { | ||
"redactionPolicy": { | ||
"policyKind": "entityMask" | ||
}, | ||
"piiCategories": [ | ||
"Person", | ||
"Organization" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Operation-Location": "{endpoint}/language/analyze-documents/jobs/{jobId}?api-version=2024-11-15-preview" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.