Nested Tables

Nested Tables


A nested table is a data structure that represents a table within another table. It creates a hierarchical relationship (a “nested” structure) where child table rows inherit context from parent table rows.

Nested tables are used to extract data from documents with complex table structures, where detailed rows (child rows) belong to higher-level summary or grouping rows (parent rows).

Hyperscience currently supports:

Elements

A nested table consists of two elements:

How nested tables are processed

Nested tables are processed hierarchically. All child table rows must be annotated first, across all parent tables, before any parent table rows are annotated. This order is required because:

Creating a layout with nested tables

In the Layout Editor, add a new table by clicking the Add Table button at the bottom of the Tables card.

Define a nested table by adding a child table.

Annotating nested tables

You can annotate nested tables in Supervision and in Training Data Management (TDM).

Training Data Management

To start the annotation process in TDM:

  1. Go to Models > Identification
  2. Find the name of your layout and click on it. The Field ID model management tab will open by default.
  3. Switch between tabs to open model management for Table ID.

Annotation process

When a document contains nested tables, the system will first prompt you to annotate the child table.

Only after all child tables are completed will the system allow you to proceed to the parent table annotation.

The number on the left displays the consecutive number of the parent row (e.g., 1, 2, 3), while the number on the right is a combination of the consecutive number of the child row and the child row’s parent row (e.g., 1-1, 2-1, 3-1), as shown in the screenshot below:

.png?sv=2026-02-06&spr=https&st=2026-07-27T09%3A19%3A18Z&se=2026-07-27T09%3A34%3A18Z&sr=c&sp=r&sig=WjIPj78o7ARaG0GTYdmtY7MgGw4hxPNArW2mbNNyxXw%3D)

Supervision

.jpg?sv=2026-02-06&spr=https&st=2026-07-27T09%3A19%3A18Z&se=2026-07-27T09%3A34%3A18Z&sr=c&sp=r&sig=WjIPj78o7ARaG0GTYdmtY7MgGw4hxPNArW2mbNNyxXw%3D)

The annotation logic for nested tables is the same in Supervision and TDM.

The difference is only in how the steps are presented:

Annotating nested tables is similar to annotating regular tables.

Best Practices

  1. Select a row from the child table to be a Template Row

    • We recommend selecting a row where all data is present.
    • Use rows with longer values for the best performance of the Copycat.
  2. Once the template row is annotated, click Continue to review CMD + Enter.

  3. Make sure to press the ESC button on your keyboard to review all rows.

  4. Switch to the parent table and complete the annotations.

  5. In Supervision, click Continue to next table CMD + Enter.

  6. Once everything is annotated, you can click Save Changes or Submit Task to continue with the processing.