Sample Script: Pass JSON Schema to API
The script below shows how to pass a JSON file with the extraction schema to the API when parsing a document.Sample Script: Include JSON Schema in Script
The script below shows how to define the extraction schema in the call when parsing a document.Extract Data Based on Document Type (Classification)
As part of the extraction process, you can classify documents and extract data based on the type of document it is. For example, you can extract different sets of data from Invoices, Receipts, and Waybills. To classify documents, use theenum
keyword to define the document types in your script. Here is an example: