Skip to content

Commit bea659d

Browse files
abhahnAbigail Hartman
andauthored
Text Analytics v3.2 preview.1 (Azure#15159)
* Moved files from another branch * Responding to PR comments from an old PR * Updated version in example files * Added v3.2-preview.1 to releases in readme.md * Fixed enum mismatch in model validation' * Ran prettier on all json files * Updated case of rank and offset enum values * Updated case of rank and offset enum values * PR comments * Added another missing type * Reverted an unintentional change Co-authored-by: Abigail Hartman <[email protected]>
1 parent e3dbb82 commit bea659d

13 files changed

+4041
-0
lines changed

specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.2-preview.1/TextAnalytics.json

Lines changed: 3123 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"parameters": {
3+
"Ocp-Apim-Subscription-Key": "{API key}",
4+
"ApiVersion": "v3.2-preview.1",
5+
"Endpoint": "{Endpoint}",
6+
"jobId": "{Job ID}",
7+
"input": {
8+
"displayName": "Extracting Location & US Region",
9+
"analysisInput": {
10+
"documents": [
11+
{
12+
"id": "1",
13+
"language": "en",
14+
"text": "I had a wonderful trip to Seattle last week."
15+
},
16+
{
17+
"id": "2",
18+
"language": "en",
19+
"text": "I'm flying to NYC tomorrow. See you there."
20+
}
21+
]
22+
},
23+
"tasks": {
24+
"entityRecognitionTasks": [
25+
{
26+
"parameters": {
27+
"model-version": "latest"
28+
}
29+
}
30+
]
31+
}
32+
}
33+
},
34+
"responses": {
35+
"202": {
36+
"headers": {
37+
"Operation-Location": "{endpoint}/text/analytics/v3.2-preview.1/analyze/jobs/{jobId}"
38+
}
39+
}
40+
}
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"parameters": {
3+
"Ocp-Apim-Subscription-Key": "{API key}",
4+
"ApiVersion": "v3.2-preview.1",
5+
"Endpoint": "{Endpoint}",
6+
"jobId": "{Job ID}"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {},
11+
"body": {
12+
"createdDateTime": "2020-10-01T15:00:45Z",
13+
"displayName": "Extracting Location & US Region",
14+
"expirationDateTime": "2020-10-03T15:01:03Z",
15+
"jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18",
16+
"lastUpdateDateTime": "2020-10-01T15:01:03Z",
17+
"status": "succeeded",
18+
"tasks": {
19+
"completed": 2,
20+
"failed": 0,
21+
"inProgress": 0,
22+
"total": 2,
23+
"entityRecognitionTasks": [
24+
{
25+
"taskName": "Recognize Entities (2020-04-01)",
26+
"lastUpdateDateTime": "2020-10-01T15:01:03Z",
27+
"status": "succeeded",
28+
"results": {
29+
"documents": [
30+
{
31+
"entities": [
32+
{
33+
"category": "Event",
34+
"confidenceScore": 0.61,
35+
"length": 4,
36+
"offset": 18,
37+
"text": "trip"
38+
},
39+
{
40+
"category": "Location",
41+
"confidenceScore": 0.82,
42+
"length": 7,
43+
"offset": 26,
44+
"subcategory": "GPE",
45+
"text": "Seattle"
46+
},
47+
{
48+
"category": "DateTime",
49+
"confidenceScore": 0.8,
50+
"length": 9,
51+
"offset": 34,
52+
"subcategory": "DateRange",
53+
"text": "last week"
54+
}
55+
],
56+
"id": "1",
57+
"warnings": []
58+
},
59+
{
60+
"entities": [
61+
{
62+
"category": "Location",
63+
"confidenceScore": 0.52,
64+
"length": 3,
65+
"offset": 14,
66+
"subcategory": "GPE",
67+
"text": "NYC"
68+
},
69+
{
70+
"category": "DateTime",
71+
"confidenceScore": 0.8,
72+
"length": 8,
73+
"offset": 18,
74+
"subcategory": "Date",
75+
"text": "tomorrow"
76+
}
77+
],
78+
"id": "2",
79+
"warnings": []
80+
}
81+
],
82+
"errors": [],
83+
"modelVersion": "2020-04-01"
84+
}
85+
}
86+
]
87+
}
88+
}
89+
}
90+
}
91+
}
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"parameters": {
3+
"Ocp-Apim-Subscription-Key": "{API key}",
4+
"ApiVersion": "v3.2-preview.1",
5+
"Endpoint": "{Endpoint}",
6+
"input": {
7+
"documents": [
8+
{
9+
"id": "1",
10+
"language": "en",
11+
"text": "Microsoft was founded by Bill Gates and Paul Allen."
12+
},
13+
{
14+
"id": "2",
15+
"language": "en",
16+
"text": "Pike place market is my favorite Seattle attraction."
17+
}
18+
]
19+
}
20+
},
21+
"responses": {
22+
"200": {
23+
"headers": {},
24+
"body": {
25+
"documents": [
26+
{
27+
"entities": [
28+
{
29+
"category": "Organization",
30+
"confidenceScore": 0.84,
31+
"length": 9,
32+
"offset": 0,
33+
"text": "Microsoft"
34+
},
35+
{
36+
"category": "Person",
37+
"confidenceScore": 0.85,
38+
"length": 10,
39+
"offset": 25,
40+
"text": "Bill Gates"
41+
},
42+
{
43+
"category": "Person",
44+
"confidenceScore": 0.9,
45+
"length": 10,
46+
"offset": 40,
47+
"text": "Paul Allen"
48+
}
49+
],
50+
"id": "1",
51+
"warnings": []
52+
},
53+
{
54+
"entities": [
55+
{
56+
"category": "Location",
57+
"confidenceScore": 0.55,
58+
"length": 7,
59+
"offset": 33,
60+
"subcategory": "GPE",
61+
"text": "Seattle"
62+
}
63+
],
64+
"id": "2",
65+
"warnings": []
66+
}
67+
],
68+
"errors": [],
69+
"modelVersion": "2020-04-01"
70+
}
71+
}
72+
}
73+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
{
2+
"parameters": {
3+
"Ocp-Apim-Subscription-Key": "{API key}",
4+
"ApiVersion": "v3.2-preview.1",
5+
"Endpoint": "{Endpoint}",
6+
"input": {
7+
"documents": [
8+
{
9+
"id": "1",
10+
"language": "en",
11+
"text": "Microsoft was founded by Bill Gates and Paul Allen."
12+
},
13+
{
14+
"id": "2",
15+
"language": "en",
16+
"text": "Pike place market is my favorite Seattle attraction."
17+
}
18+
]
19+
}
20+
},
21+
"responses": {
22+
"200": {
23+
"headers": {},
24+
"body": {
25+
"documents": [
26+
{
27+
"entities": [
28+
{
29+
"dataSource": "Wikipedia",
30+
"id": "Bill Gates",
31+
"language": "en",
32+
"matches": [
33+
{
34+
"confidenceScore": 0.52,
35+
"length": 10,
36+
"offset": 25,
37+
"text": "Bill Gates"
38+
}
39+
],
40+
"name": "Bill Gates",
41+
"url": "https://en.wikipedia.org/wiki/Bill_Gates"
42+
},
43+
{
44+
"dataSource": "Wikipedia",
45+
"id": "Paul Allen",
46+
"language": "en",
47+
"matches": [
48+
{
49+
"confidenceScore": 0.54,
50+
"length": 10,
51+
"offset": 40,
52+
"text": "Paul Allen"
53+
}
54+
],
55+
"name": "Paul Allen",
56+
"url": "https://en.wikipedia.org/wiki/Paul_Allen"
57+
},
58+
{
59+
"dataSource": "Wikipedia",
60+
"id": "Microsoft",
61+
"language": "en",
62+
"matches": [
63+
{
64+
"confidenceScore": 0.49,
65+
"length": 9,
66+
"offset": 0,
67+
"text": "Microsoft"
68+
}
69+
],
70+
"name": "Microsoft",
71+
"url": "https://en.wikipedia.org/wiki/Microsoft"
72+
}
73+
],
74+
"id": "1",
75+
"warnings": []
76+
},
77+
{
78+
"entities": [
79+
{
80+
"dataSource": "Wikipedia",
81+
"id": "Pike Place Market",
82+
"language": "en",
83+
"matches": [
84+
{
85+
"confidenceScore": 0.86,
86+
"length": 17,
87+
"offset": 0,
88+
"text": "Pike place market"
89+
}
90+
],
91+
"name": "Pike Place Market",
92+
"url": "https://en.wikipedia.org/wiki/Pike_Place_Market"
93+
},
94+
{
95+
"dataSource": "Wikipedia",
96+
"id": "Seattle",
97+
"language": "en",
98+
"matches": [
99+
{
100+
"confidenceScore": 0.27,
101+
"length": 7,
102+
"offset": 33,
103+
"text": "Seattle"
104+
}
105+
],
106+
"name": "Seattle",
107+
"url": "https://en.wikipedia.org/wiki/Seattle"
108+
}
109+
],
110+
"id": "2",
111+
"warnings": []
112+
}
113+
],
114+
"errors": [],
115+
"modelVersion": "2020-02-01"
116+
}
117+
}
118+
}
119+
}

0 commit comments

Comments
 (0)