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%3A17%3A30Z&se=2026-07-27T09%3A32%3A30Z&sr=c&sp=r&sig=o8wcyrnq5vGPs%2FPOpdW4Di54u2%2F7k9KNwD3uGq4xE7w%3D)

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

Best Practices

  1. Select a row from the child table to be a Template Row
  1. Once the template row is annotated, click Continue to review CMD + Enter.

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

  3. Switch to the parent table as shown below and follow steps 1-2 to complete the annotations.

  4. In TDM, click Save Changes and continue with the next document.

For more information on how to annotate tables, see Table Identification. To learn how to train an Identification model, see Training an Identification Model