-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mharder/tsp-client-94
- Loading branch information
Showing
10 changed files
with
4,714 additions
and
4 deletions.
There are no files selected for viewing
2,235 changes: 2,235 additions & 0 deletions
2,235
dev/cognitiveservices/data-plane/Language/analyzedocuments.json
Large diffs are not rendered by default.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
...data-plane/Language/examples/analyzedocuments/SuccessfulAnalyzeTextJobsCancelRequest.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,15 @@ | ||
{ | ||
"parameters": { | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"api-version": "2023-11-15-preview", | ||
"Endpoint": "{Endpoint}", | ||
"jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Operation-Location": "{Endpoint}/language/analyze-documents/jobs/{jobId}?api-version=2023-11-15-preview" | ||
} | ||
} | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
...nitiveservices/data-plane/Language/examples/analyzedocuments/SuccessfulPiiTaskResult.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,59 @@ | ||
{ | ||
"parameters": { | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"api-version": "2023-11-15-preview", | ||
"Endpoint": "{Endpoint}", | ||
"jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"createdDateTime": "2020-10-01T15:00:45Z", | ||
"displayName": "Redact PII Example", | ||
"expirationDateTime": "2020-10-03T15:01:03Z", | ||
"jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18", | ||
"lastUpdatedDateTime": "2020-10-01T15:01:03Z", | ||
"status": "succeeded", | ||
"tasks": { | ||
"completed": 1, | ||
"failed": 0, | ||
"inProgress": 0, | ||
"total": 1, | ||
"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.json", | ||
"kind": "AzureBlob" | ||
} | ||
], | ||
"id": "1", | ||
"warnings": [] | ||
} | ||
], | ||
"errors": [], | ||
"modelVersion": "2023-09-01" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...nitiveservices/data-plane/Language/examples/analyzedocuments/SuccessfulPiiTaskSubmit.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,44 @@ | ||
{ | ||
"parameters": { | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"api-version": "2023-11-15-preview", | ||
"Endpoint": "{Endpoint}", | ||
"jobId": "{Job ID}", | ||
"body": { | ||
"displayName": "Redact PII Example", | ||
"analysisInput": { | ||
"documents": [ | ||
{ | ||
"id": "1", | ||
"language": "en", | ||
"source": { | ||
"location": "https://myblob.blob.core.windows.net/Container/document.txt", | ||
"kind": "AzureBlob", | ||
"managedIdentityClientId": "edaa610c-d7e8-4ba2-823a-97d871d661fb" | ||
}, | ||
"target": { | ||
"location": "https://myblob.blob.core.windows.net/Container", | ||
"kind": "AzureBlob" | ||
} | ||
} | ||
] | ||
}, | ||
"tasks": [ | ||
{ | ||
"kind": "PiiEntityRecognition", | ||
"taskName": "Redact PII Task 1", | ||
"parameters": { | ||
"redactionCharacter": "-" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Operation-Location": "{endpoint}/language/analyze-documents/jobs/{jobId}?api-version=2023-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
Oops, something went wrong.