-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprebuilt-layout.ts
More file actions
53 lines (46 loc) · 1.12 KB
/
Copy pathprebuilt-layout.ts
File metadata and controls
53 lines (46 loc) · 1.12 KB
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
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/**
* @azsdk-util
* @azsdk-skip-javascript
*/
// Model: prebuilt-layout
// Description: Extract text and layout information from documents.
// API Version: 2023-07-31
// Created: Thu Apr 06 2023
import * as fr from "@azure/ai-form-recognizer";
/**
* Extract text and layout information from documents.
*/
export const PrebuiltLayoutModel = fr.createModelFromSchema(
modelInfo()
) as fr.DocumentModel<PrebuiltLayoutResult>;
export interface PrebuiltLayoutResult extends fr.AnalyzeResultCommon {
/**
* Extracted pages.
*/
pages?: fr.DocumentPage[];
/**
* Extracted document paragraphs.
*/
paragraphs?: fr.DocumentParagraph[];
/**
* Extracted font styles.
*/
styles?: fr.DocumentStyle[];
/**
* Extracted tables.
*/
tables?: fr.DocumentTable[];
}
/**
* The raw model schema.
*/
function modelInfo() {
return {
modelId: "prebuilt-layout",
description: "Extract text and layout information from documents.",
createdOn: "2023-02-28T00:00:00.000Z",
apiVersion: "2023-07-31",
} as const;
}