-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Initial PR for - cognitiveservices text analytics v3.1 preview.4 #12338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
ctufts
wants to merge
14
commits into
master
from
dev-cognitiveservices-TextAnalytics-v3.1-preview.4
Closed
Changes from 9 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
2361b1a
Adds base for updating TextAnalytics from version preview/v3.1-previe…
ctufts 9e54b57
Updates readme
ctufts 2efffff
Updates API version in new specs and examples
ctufts 9339f1b
add entity linking task (#12366)
mikaelsitruk 33860f0
Opinion Mining API changes for Preview.4 (#12344)
josuhazure 9c25f40
Analyze: made task results optional (#12373)
abhahn fafa829
add stringtype parameter to entitylinking task (#12467)
mikaelsitruk 30bd84d
TA v3.1-preview.4 - updated examples and definitions for TA for Healt…
ctufts 87f79f1
PII Types for 3.1-Preview.4 (#12392)
thediris d7ba41b
Health descritpion and naming updates (#12616)
ctufts 42bf72a
TA v3.1-preview.4 - Minor syntax changes to address comments on PR 12…
ctufts 2bd1245
[text analytics] Fixed Swagger validation issues for v3.1-preview.4 (…
abhahn 8bf86ad
Added Extensible Enum for Health Relation Types - Dev cognitiveservic…
ctufts a22b3f0
ran npm prettier check and fixed spelling error (#12947)
ctufts File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
2,448 changes: 2,448 additions & 0 deletions
2,448
...tion/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.4/TextAnalytics.json
Large diffs are not rendered by default.
Oops, something went wrong.
62 changes: 62 additions & 0 deletions
62
...es/data-plane/TextAnalytics/preview/v3.1-preview.4/examples/SuccessfulAnalyzeRequest.json
This file contains hidden or 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,62 @@ | ||
| { | ||
| "parameters": { | ||
| "Ocp-Apim-Subscription-Key": "{API key}", | ||
| "Endpoint": "{Endpoint}", | ||
| "jobId": "{Job ID}", | ||
| "input": { | ||
| "displayName": "Extracting Location & US Region", | ||
| "analysisInput": { | ||
| "documents": [ | ||
| { | ||
| "id": "1", | ||
| "language": "en", | ||
| "text": "I had a wonderful trip to Seattle last week." | ||
| }, | ||
| { | ||
| "id": "2", | ||
| "language": "en", | ||
| "text": "I'm flying to NYC tomorrow. See you there." | ||
| } | ||
| ] | ||
| }, | ||
| "tasks": { | ||
| "entityRecognitionTasks": [ | ||
| { | ||
| "parameters": { | ||
| "model-version": "latest" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "202": { | ||
| "headers": { | ||
| "Operation-Location": "{endpoint}/text/analytics/v3.1-preview.4/analyze/jobs/{jobId}" | ||
| } | ||
| }, | ||
| "400": { | ||
| "headers": {}, | ||
| "body": { | ||
| "error": { | ||
| "code": "InvalidRequest", | ||
| "message": "Invalid Request.", | ||
| "innererror": { | ||
| "code": "MissingInputRecords", | ||
| "message": "Missing input records." | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "500": { | ||
| "headers": {}, | ||
| "body": { | ||
| "error": { | ||
| "code": "InternalServerError", | ||
| "message": "Internal Server Error" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
112 changes: 112 additions & 0 deletions
112
...a-plane/TextAnalytics/preview/v3.1-preview.4/examples/SuccessfulAnalyzeStatusRequest.json
This file contains hidden or 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,112 @@ | ||
| { | ||
| "parameters": { | ||
| "Ocp-Apim-Subscription-Key": "{API key}", | ||
| "Endpoint": "{Endpoint}", | ||
| "jobId": "{Job ID}" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "headers": {}, | ||
| "body": { | ||
| "createdDateTime": "2020-10-01T15:00:45Z", | ||
| "displayName": "Extracting Location & US Region", | ||
| "expirationDateTime": "2020-10-03T15:01:03Z", | ||
| "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18", | ||
| "lastUpdateDateTime": "2020-10-01T15:01:03Z", | ||
| "status": "succeeded", | ||
| "tasks": { | ||
| "completed": 2, | ||
| "failed": 0, | ||
| "inProgress": 0, | ||
| "total": 2, | ||
| "entityRecognitionTasks": [ | ||
| { | ||
| "name": "Recognize Entities (2020-04-01)", | ||
| "lastUpdateDateTime": "2020-10-01T15:01:03Z", | ||
| "status": "succeeded", | ||
| "results": { | ||
| "documents": [ | ||
| { | ||
| "entities": [ | ||
| { | ||
| "category": "Event", | ||
| "confidenceScore": 0.61, | ||
| "length": 4, | ||
| "offset": 18, | ||
| "text": "trip" | ||
| }, | ||
| { | ||
| "category": "Location", | ||
| "confidenceScore": 0.82, | ||
| "length": 7, | ||
| "offset": 26, | ||
| "subcategory": "GPE", | ||
| "text": "Seattle" | ||
| }, | ||
| { | ||
| "category": "DateTime", | ||
| "confidenceScore": 0.8, | ||
| "length": 9, | ||
| "offset": 34, | ||
| "subcategory": "DateRange", | ||
| "text": "last week" | ||
| } | ||
| ], | ||
| "id": "1", | ||
| "warnings": [] | ||
| }, | ||
| { | ||
| "entities": [ | ||
| { | ||
| "category": "Location", | ||
| "confidenceScore": 0.52, | ||
| "length": 3, | ||
| "offset": 14, | ||
| "subcategory": "GPE", | ||
| "text": "NYC" | ||
| }, | ||
| { | ||
| "category": "DateTime", | ||
| "confidenceScore": 0.8, | ||
| "length": 8, | ||
| "offset": 18, | ||
| "subcategory": "Date", | ||
| "text": "tomorrow" | ||
| } | ||
| ], | ||
| "id": "2", | ||
| "warnings": [] | ||
| } | ||
| ], | ||
| "errors": [], | ||
| "modelVersion": "2020-04-01" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "404": { | ||
| "headers": {}, | ||
| "body": { | ||
| "error": { | ||
| "code": "NotFound", | ||
| "message": "Not Found", | ||
| "innererror": { | ||
| "code": "JobIdNotFound", | ||
| "message": "Job ID not found." | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "500": { | ||
| "headers": {}, | ||
| "body": { | ||
| "error": { | ||
| "code": "InternalServerError", | ||
| "message": "Internal Server Error" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
94 changes: 94 additions & 0 deletions
94
...s/data-plane/TextAnalytics/preview/v3.1-preview.4/examples/SuccessfulEntitiesRequest.json
This file contains hidden or 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,94 @@ | ||
| { | ||
| "parameters": { | ||
| "Ocp-Apim-Subscription-Key": "{API key}", | ||
| "Endpoint": "{Endpoint}", | ||
| "input": { | ||
| "documents": [ | ||
| { | ||
| "id": "1", | ||
| "language": "en", | ||
| "text": "Microsoft was founded by Bill Gates and Paul Allen." | ||
| }, | ||
| { | ||
| "id": "2", | ||
| "language": "en", | ||
| "text": "Pike place market is my favorite Seattle attraction." | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "headers": {}, | ||
| "body": { | ||
| "documents": [ | ||
| { | ||
| "entities": [ | ||
| { | ||
| "category": "Organization", | ||
| "confidenceScore": 0.84, | ||
| "length": 9, | ||
| "offset": 0, | ||
| "text": "Microsoft" | ||
| }, | ||
| { | ||
| "category": "Person", | ||
| "confidenceScore": 0.85, | ||
| "length": 10, | ||
| "offset": 25, | ||
| "text": "Bill Gates" | ||
| }, | ||
| { | ||
| "category": "Person", | ||
| "confidenceScore": 0.9, | ||
| "length": 10, | ||
| "offset": 40, | ||
| "text": "Paul Allen" | ||
| } | ||
| ], | ||
| "id": "1", | ||
| "warnings": [] | ||
| }, | ||
| { | ||
| "entities": [ | ||
| { | ||
| "category": "Location", | ||
| "confidenceScore": 0.55, | ||
| "length": 7, | ||
| "offset": 33, | ||
| "subcategory": "GPE", | ||
| "text": "Seattle" | ||
| } | ||
| ], | ||
| "id": "2", | ||
| "warnings": [] | ||
| } | ||
| ], | ||
| "errors": [], | ||
| "modelVersion": "2020-04-01" | ||
| } | ||
| }, | ||
| "400": { | ||
| "headers": {}, | ||
| "body": { | ||
| "error": { | ||
| "code": "InvalidRequest", | ||
| "message": "Invalid Request.", | ||
| "innererror": { | ||
| "code": "MissingInputRecords", | ||
| "message": "Missing input records." | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "500": { | ||
| "headers": {}, | ||
| "body": { | ||
| "error": { | ||
| "code": "InternalServerError", | ||
| "message": "Internal Server Error" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.