parze 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,7 +49,6 @@ Parse a document into structured text.
|
|
|
49
49
|
- `options` (object, optional):
|
|
50
50
|
- `outputFormat`: "structured" | "markdown" | "json"
|
|
51
51
|
- `preserveTables`: boolean
|
|
52
|
-
- `preserveLayout`: boolean
|
|
53
52
|
- `extractionMode`: "auto" | "ocr_only" | "llm_only" | "identity_doc"
|
|
54
53
|
|
|
55
54
|
**Returns:** Promise with parsed text and metadata
|
|
@@ -70,7 +69,6 @@ Extract structured data from a file. Parse runs internally.
|
|
|
70
69
|
- `extractionSchema` (object): Schema defining fields to extract
|
|
71
70
|
- `options` (object, optional):
|
|
72
71
|
- `preserveTables`: boolean
|
|
73
|
-
- `preserveLayout`: boolean
|
|
74
72
|
- `extractionMode`: "auto" | "ocr_only" | "llm_only" | "identity_doc"
|
|
75
73
|
|
|
76
74
|
**Returns:** Promise with extracted data and confidence scores
|
package/dist/index.d.ts
CHANGED
|
@@ -5,12 +5,10 @@ export interface ParzeClientOptions {
|
|
|
5
5
|
export interface ParseOptions {
|
|
6
6
|
outputFormat?: 'structured' | 'markdown' | 'json';
|
|
7
7
|
preserveTables?: boolean;
|
|
8
|
-
preserveLayout?: boolean;
|
|
9
8
|
extractionMode?: 'auto' | 'ocr_only' | 'llm_only' | 'identity_doc';
|
|
10
9
|
}
|
|
11
10
|
export interface ExtractFileOptions {
|
|
12
11
|
preserveTables?: boolean;
|
|
13
|
-
preserveLayout?: boolean;
|
|
14
12
|
extractionMode?: 'auto' | 'ocr_only' | 'llm_only' | 'identity_doc';
|
|
15
13
|
}
|
|
16
14
|
export declare class ParzeClient {
|
package/dist/index.js
CHANGED
|
@@ -58,8 +58,6 @@ class ParzeClient {
|
|
|
58
58
|
form.append('output_format', options.outputFormat);
|
|
59
59
|
if ((options === null || options === void 0 ? void 0 : options.preserveTables) !== undefined)
|
|
60
60
|
form.append('preserve_tables', String(options.preserveTables));
|
|
61
|
-
if ((options === null || options === void 0 ? void 0 : options.preserveLayout) !== undefined)
|
|
62
|
-
form.append('preserve_layout', String(options.preserveLayout));
|
|
63
61
|
if (options === null || options === void 0 ? void 0 : options.extractionMode)
|
|
64
62
|
form.append('extraction_mode', options.extractionMode);
|
|
65
63
|
const response = await this.http.post('/parse', form, {
|
|
@@ -81,8 +79,6 @@ class ParzeClient {
|
|
|
81
79
|
form.append('extraction_schema', JSON.stringify(extractionSchema));
|
|
82
80
|
if ((options === null || options === void 0 ? void 0 : options.preserveTables) !== undefined)
|
|
83
81
|
form.append('preserve_tables', String(options.preserveTables));
|
|
84
|
-
if ((options === null || options === void 0 ? void 0 : options.preserveLayout) !== undefined)
|
|
85
|
-
form.append('preserve_layout', String(options.preserveLayout));
|
|
86
82
|
if (options === null || options === void 0 ? void 0 : options.extractionMode)
|
|
87
83
|
form.append('extraction_mode', options.extractionMode);
|
|
88
84
|
const response = await this.http.post('/extract', form, {
|