Learn R Programming

daiR (version 1.0.0)

get_entities: Get entities

Description

Extracts entities Document AI (DAI) identified by a Document AI form parser processor.

Usage

get_entities(object, type = "sync")

Value

a list of dataframes, one per page

Arguments

object

either a HTTP response object from dai_sync() or the path to a JSON file from dai_async().

type

one of "sync" or "async", depending on the function used to process the original document.

Examples

Run this code
if (FALSE) {
entities <- get_entities(dai_sync("file.pdf"))

entities <- get_entities("file.json", type = "async")
}

Run the code above in your browser using DataLab