Skip to main content

Introduction

In this tutorial, we will walk through an example of using DocParse to suggest properties for a document. This is useful when you want to either pick properties to extract automatically or have some properties to start with when using a human-in-the-loop approach. We will be working with a sample insurance document that contains a workers compensation reinsurance submission.
By the end of this tutorial, you will be able to generate a schema with properties like the one below for a document using the Aryn SDK.

Prerequisites

  1. Get your free Aryn API key by signing up on the Aryn Console at app.aryn.ai.
  2. Download the sample document or have your own handy.

Extracting a Schema with Suggest Properties

To extract a schema with suggested properties, you can use the suggest_properties field of the property_extraction_options dictionary in the partition_file function, like so:
Running this will return a dictionary with the elements and suggested properties.