Skip to content
Closed
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

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": {
Comment thread
ctufts marked this conversation as resolved.
"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"
}
}
}
}
}
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"
}
}
}
}
}
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"
}
}
}
}
}
Loading