Skip to content

Create Adapter

textract_create_adapter R Documentation

Creates an adapter, which can be fine-tuned for enhanced performance on user provided documents

Description

Creates an adapter, which can be fine-tuned for enhanced performance on user provided documents. Takes an AdapterName and FeatureType. Currently the only supported feature type is QUERIES. You can also provide a Description, Tags, and a ClientRequestToken. You can choose whether or not the adapter should be AutoUpdated with the AutoUpdate argument. By default, AutoUpdate is set to DISABLED.

Usage

textract_create_adapter(AdapterName, ClientRequestToken, Description,
  FeatureTypes, AutoUpdate, Tags)

Arguments

AdapterName

[required] The name to be assigned to the adapter being created.

ClientRequestToken

Idempotent token is used to recognize the request. If the same token is used with multiple CreateAdapter requests, the same session is returned. This token is employed to avoid unintentionally creating the same session multiple times.

Description

The description to be assigned to the adapter being created.

FeatureTypes

[required] The type of feature that the adapter is being trained on. Currrenly, supported feature types are: QUERIES

AutoUpdate

Controls whether or not the adapter should automatically update.

Tags

A list of tags to be added to the adapter.

Value

A list with the following syntax:

list(
  AdapterId = "string"
)

Request syntax

svc$create_adapter(
  AdapterName = "string",
  ClientRequestToken = "string",
  Description = "string",
  FeatureTypes = list(
    "TABLES"|"FORMS"|"QUERIES"|"SIGNATURES"|"LAYOUT"
  ),
  AutoUpdate = "ENABLED"|"DISABLED",
  Tags = list(
    "string"
  )
)