Feature

# Example: block feature (does not require transcription)
-d features[0][type]="block" \
-d features[0][label]="barcode" \

# Example: text feature (requires transcription)
-d features[1][type]="text" \
-d features[1][label]="merchantName" \

# Example: related key ("Order Number:") and value ("#19283")
-d features[2][type]="text" \
-d features[2][label]="orderNo.key" \
-d features[3][type]="text" \
-d features[3][label]="orderNo.value" \

# Example: table structure with annotated table, headers, rows, and values
-d features[4][type]="block" \
-d features[4][label]="item.table" \
-d features[4][features][0][type]="block" \
-d features[4][features][0][label]="item.header" \
-d features[4][features][0][features][0][type]="text" \
-d features[4][features][0][features][0][label]="item.description.key" \
-d features[4][features][0][features][1][type]="text" \
-d features[4][features][0][features][1][label]="item.quantity.key" \
-d features[4][features][0][features][2][type]="text" \
-d features[4][features][0][features][2][label]="item.price.key" \
-d features[4][features][1][type]="block" \
-d features[4][features][1][label]="item.row" \
-d features[4][features][1][features][0][type]="text" \
-d features[4][features][1][features][0][label]="item.description.value" \
-d features[4][features][1][features][1][type]="text" \
-d features[4][features][1][features][1][label]="item.quantity.value" \
-d features[4][features][1][features][2][type]="text" \
-d features[4][features][1][features][2][label]="item.price.value"
[
  // Example: block feature (does not require transcription)
  {
    type: "block",
    label: "barcode",
  },

  // Example: text feature (requires transcription)
  {
    type: "text",
    label: "merchantName",
  },

  // Example: related key ("Order Number:") and value ("#19283")
  {
    type: "text",
    label: "orderNo.key",
  },
  {
    type: "text",
    label: "orderNo.value",
  },

  // Example: table structure with annotated table, headers, rows, and values
  {
    type: "block",
    label: "item.table",
    features: [
      {
        type: "block",
        label: "item.header",
        features: [
          {
            type: "text",
            label: "item.description.key",
          },
          {
            type: "text",
            label: "item.quantity.key",
          },
          {
            type: "text",
            label: "item.price.key",
          },
        ],
      },
      {
        type: "block",
        label: "item.row",
        features: [
          {
            type: "text",
            label: "item.description.value",
          },
          {
            type: "text",
            label: "item.quantity.value",
          },
          {
            type: "text",
            label: "item.price.value",
          },
        ],
      },
    ],
  }
]

Features describe the types of content in the document that should be annotated.

Parameter

Type

Description

type

string

The specified FeatureType. See below for details.

label (optional)

string

Label for the annotation. It is required for block and text features.

title (optional)

string

It is required for group features.

features (optional)

object array

A list of DocumentTranscriptionFeature. Additional features that belong inside this feature. For example a line of text feature will have word features contained within the line.

flags (optional)

string array

A list of ContentFlag. See below for details.

select (optional)

object

See FeatureSelectParams below for details.