@@ -49,6 +49,9 @@ First, create a JSON file named `request_body.json` with the following content:
49
49
{
50
50
"description" : " Sample invoice analyzer" ,
51
51
"scenario" : " document" ,
52
+ "config" : {
53
+ "returnDetails" : true
54
+ },
52
55
"fieldSchema" : {
53
56
"fields" : {
54
57
"VendorName" : {
@@ -153,9 +156,6 @@ First, create a JSON file named `request_body.json` with the following content:
153
156
{
154
157
"description" : " Sample marketing video analyzer" ,
155
158
"scenario" : " videoShot" ,
156
- "config" : {
157
- "returnDetails" : true
158
- },
159
159
"fieldSchema" : {
160
160
"fields" : {
161
161
"Description" : {
@@ -278,12 +278,13 @@ The 200 (`OK`) JSON response includes a `status` field indicating the status of
278
278
279
279
``` json
280
280
{
281
- "id" : " f87e468b-d96b-488c-a646-33cc5823972f " ,
281
+ "id" : " bcf8c7c7-03ab-4204-b22c-2b34203ef5db " ,
282
282
"status" : " Succeeded" ,
283
283
"result" : {
284
284
"analyzerId" : " sample_invoice_analyzer" ,
285
285
"apiVersion" : " 2024-12-01-preview" ,
286
- "createdAt" : " 2024-11-09T08:36:31Z" ,
286
+ "createdAt" : " 2024-11-13T07:15:46Z" ,
287
+ "warnings" : [],
287
288
"contents" : [
288
289
{
289
290
"markdown" : " CONTOSO LTD.\n\n\n # INVOICE\n\n Contoso Headquarters..." ,
@@ -293,7 +294,7 @@ The 200 (`OK`) JSON response includes a `status` field indicating the status of
293
294
"valueString" : " CONTOSO LTD." ,
294
295
"spans" : [ { "offset" : 0 , "length" : 12 } ],
295
296
"confidence" : 0.941 ,
296
- "source" : " D(1,0.5729,0.6582,1 .3353,0.6582,1 .3353,0.8957,0.5729,0.8957)"
297
+ "source" : " D(1,0.5729,0.6582,2 .3353,0.6582,2 .3353,0.8957,0.5729,0.8957)"
297
298
},
298
299
"Items" : {
299
300
"type" : " array" ,
@@ -306,14 +307,13 @@ The 200 (`OK`) JSON response includes a `status` field indicating the status of
306
307
"valueString" : " Consulting Services" ,
307
308
"spans" : [ { "offset" : 909 , "length" : 19 } ],
308
309
"confidence" : 0.971 ,
309
- "source" : " D(1,1 .3264,5.673,1 .6413,5.673,1 .6413,5.8402,1 .3264,5.8402)"
310
+ "source" : " D(1,2 .3264,5.673,3 .6413,5.673,3 .6413,5.8402,2 .3264,5.8402)"
310
311
},
311
312
"Amount" : {
312
313
"type" : " number" ,
313
314
"valueNumber" : 60 ,
314
- "spans" : [ { "offset" : 995 , "length" : 6 }
315
- ],
316
- "confidence" : 0.988 ,
315
+ "spans" : [ { "offset" : 995 , "length" : 6 } ],
316
+ "confidence" : 0.989 ,
317
317
"source" : " D(1,7.4507,5.6684,7.9245,5.6684,7.9245,5.8323,7.4507,5.8323)"
318
318
}
319
319
}
@@ -330,8 +330,62 @@ The 200 (`OK`) JSON response includes a `status` field indicating the status of
330
330
"pageNumber" : 1 ,
331
331
"angle" : -0.0039 ,
332
332
"width" : 8.5 ,
333
- "height" : 11
333
+ "height" : 11 ,
334
+ "spans" : [ { "offset" : 0 , "length" : 1650 } ],
335
+ "words" : [
336
+ {
337
+ "content" : " CONTOSO" ,
338
+ "span" : { "offset" : 0 , "length" : 7 },
339
+ "confidence" : 0.997 ,
340
+ "source" : " D(1,0.5739,0.6582,1.7446,0.6595,1.7434,0.8952,0.5729,0.8915)"
341
+ }, ...
342
+ ],
343
+ "lines" : [
344
+ {
345
+ "content" : " CONTOSO LTD." ,
346
+ "source" : " D(1,0.5734,0.6563,2.335,0.6601,2.3345,0.8933,0.5729,0.8895)" ,
347
+ "span" : { "offset" : 0 , "length" : 12 }
348
+ }, ...
349
+ ]
334
350
}
351
+ ],
352
+ "paragraphs" : [
353
+ {
354
+ "content" : " CONTOSO LTD." ,
355
+ "source" : " D(1,0.5734,0.6563,2.335,0.6601,2.3345,0.8933,0.5729,0.8895)" ,
356
+ "span" : { "offset" : 0 , "length" : 12 }
357
+ }, ...
358
+ ],
359
+ "sections" : [
360
+ {
361
+ "span" : { "offset" : 0 , "length" : 1649 },
362
+ "elements" : [ " /sections/1" , " /sections/2" ]
363
+ },
364
+ {
365
+ "span" : { "offset" : 0 , "length" : 12 },
366
+ "elements" : [ " /paragraphs/0" ]
367
+ }, ...
368
+ ],
369
+ "tables" : [
370
+ {
371
+ "rowCount" : 2 ,
372
+ "columnCount" : 6 ,
373
+ "cells" : [
374
+ {
375
+ "kind" : " columnHeader" ,
376
+ "rowIndex" : 0 ,
377
+ "columnIndex" : 0 ,
378
+ "rowSpan" : 1 ,
379
+ "columnSpan" : 1 ,
380
+ "content" : " SALESPERSON" ,
381
+ "source" : " D(1,0.5389,4.5514,1.7505,4.5514,1.7505,4.8364,0.5389,4.8364)" ,
382
+ "span" : { "offset" : 512 , "length" : 11 },
383
+ "elements" : [ " /paragraphs/19" ]
384
+ }, ...
385
+ ],
386
+ "source" : " D(1,0.4885,4.5543,8.0163,4.5539,8.015,5.1207,0.4879,5.1209)" ,
387
+ "span" : { "offset" : 495 , "length" : 228 }
388
+ }, ...
335
389
]
336
390
}
337
391
]
@@ -349,6 +403,7 @@ The 200 (`OK`) JSON response includes a `status` field indicating the status of
349
403
"analyzerId" : " sample_chart_analyzer" ,
350
404
"apiVersion" : " 2024-12-01-preview" ,
351
405
"createdAt" : " 2024-11-09T08:41:00Z" ,
406
+ "warnings" : [],
352
407
"contents" : [
353
408
{
354
409
"markdown" : " \n " ,
@@ -389,6 +444,7 @@ The 200 (`OK`) JSON response includes a `status` field indicating the status of
389
444
"analyzerId" : " sample_chart_analyzer" ,
390
445
"apiVersion" : " 2024-12-01-preview" ,
391
446
"createdAt" : " 2024-11-09T08:42:58Z" ,
447
+ "warnings" : [],
392
448
"contents" : [
393
449
{
394
450
"kind" : " audioVisual" ,
@@ -449,7 +505,6 @@ The 200 (`OK`) JSON response includes a `status` field indicating the status of
449
505
# [ Video] ( #tab/video )
450
506
451
507
``` json
452
-
453
508
{
454
509
"id" : " 204fb777-e961-4d6d-a6b1-6e02c773d72c" ,
455
510
"status" : " Succeeded" ,
0 commit comments