-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
recording_client_accepts_string_with_a_language_specified.json
175 lines (175 loc) · 5.55 KB
/
recording_client_accepts_string_with_a_language_specified.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
{
"Entries": [
{
"RequestUri": "https://endpoint/language/:analyze-text?api-version=2022-05-01",
"RequestMethod": "POST",
"RequestHeaders": {
"Accept": "application/json",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "en-US",
"Authorization": "Sanitized",
"Connection": "keep-alive",
"Content-Length": "555",
"Content-Type": "application/json",
"Referer": "http://localhost:9876/",
"sec-ch-ua": "",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "",
"Sec-Fetch-Dest": "empty",
"Sec-Fetch-Mode": "cors",
"Sec-Fetch-Site": "same-site",
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36",
"x-ms-client-request-id": "d5f8e1b8-2bf8-4e42-98e8-fb8b4e2114ef",
"x-ms-useragent": "azsdk-js-ai-language-text/1.0.0 core-rest-pipeline/1.9.2 OS/Linuxx86_64"
},
"RequestBody": {
"kind": "EntityRecognition",
"analysisInput": {
"documents": [
{
"id": "0",
"text": "I had a wonderful trip to Seattle last week and even visited the Space Needle 2 times!",
"language": "en"
},
{
"id": "1",
"text": "Unfortunately, it rained during my entire trip to Seattle. I didn\u0027t even get to visit the Space Needle",
"language": "en"
},
{
"id": "2",
"text": "I went to see a movie on Saturday and it was perfectly average, nothing more or less than I expected.",
"language": "en"
},
{
"id": "3",
"text": "I didn\u0027t like the last book I read at all.",
"language": "en"
}
]
},
"parameters": {}
},
"StatusCode": 200,
"ResponseHeaders": {
"apim-request-id": "10800a1e-ce8c-4296-8a2d-a8174082f7a1",
"Content-Length": "1221",
"Content-Type": "application/json; charset=utf-8",
"csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4",
"Date": "Wed, 07 Sep 2022 04:20:44 GMT",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"X-Content-Type-Options": "nosniff",
"x-envoy-upstream-service-time": "32"
},
"ResponseBody": {
"kind": "EntityRecognitionResults",
"results": {
"documents": [
{
"id": "0",
"entities": [
{
"text": "trip",
"category": "Event",
"offset": 18,
"length": 4,
"confidenceScore": 0.61
},
{
"text": "Seattle",
"category": "Location",
"subcategory": "GPE",
"offset": 26,
"length": 7,
"confidenceScore": 1.0
},
{
"text": "last week",
"category": "DateTime",
"subcategory": "DateRange",
"offset": 34,
"length": 9,
"confidenceScore": 0.8
},
{
"text": "Space Needle",
"category": "Location",
"offset": 65,
"length": 12,
"confidenceScore": 0.96
},
{
"text": "2",
"category": "Quantity",
"subcategory": "Number",
"offset": 78,
"length": 1,
"confidenceScore": 0.8
}
],
"warnings": []
},
{
"id": "1",
"entities": [
{
"text": "trip",
"category": "Event",
"offset": 42,
"length": 4,
"confidenceScore": 0.82
},
{
"text": "Seattle",
"category": "Location",
"subcategory": "GPE",
"offset": 50,
"length": 7,
"confidenceScore": 1.0
},
{
"text": "Space Needle",
"category": "Location",
"offset": 90,
"length": 12,
"confidenceScore": 0.92
}
],
"warnings": []
},
{
"id": "2",
"entities": [
{
"text": "Saturday",
"category": "DateTime",
"subcategory": "Date",
"offset": 25,
"length": 8,
"confidenceScore": 0.8
}
],
"warnings": []
},
{
"id": "3",
"entities": [
{
"text": "book",
"category": "Product",
"offset": 23,
"length": 4,
"confidenceScore": 0.92
}
],
"warnings": []
}
],
"errors": [],
"modelVersion": "2021-06-01"
}
}
}
],
"Variables": {}
}