Overview
In the extraction model configuration, you decide which fields from the extracted data in the DocIntel are mapped to JSON. Only the fields defined in the configuration file are mapped and sent to the system.
Template
kind: document metadata: name: extraction/v1/documents/extraction-model spec: extractionType: Invoice types: - name: "Invoice" fields: - name: "Case_Id" example: "" type: "String" - name: "DocumentType" example: "" type: "String" - name: "RejectReason" example: "" type: "String"
Parameter | Description |
---|---|
Name | Determines the name of the field in JSON. |
Example | Adds an example of the field value. |
Type | Determines the datatype of the field. |
For example, for an Invoice extraction, one of the fields could be Document type and its parameters could be the following:
name: "DocumentType" |
The name of the field in the JSON is DocumentType. |
example: true |
An example of the document type. |
type: "String" |
The data type of the field is String. |