Nested Tables

Nested Tables


Accessing this feature

Your access to the feature described in this article depends on your license package and pricing plan. To learn which features are available to your organization and how to add more, contact your Hyperscience representative.

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.

To learn more about semi-structured layouts see Creating Semi-structured layout.

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%3A02%3A00Z&se=2026-07-27T09%3A17%3A00Z&sr=c&sp=r&sig=PX5790Xq0SmddbTZoU0DAdxWwUxagBL2frugW8FHzAk%3D)

Supervision

.jpg?sv=2026-02-06&spr=https&st=2026-07-27T09%3A02%3A00Z&se=2026-07-27T09%3A17%3A00Z&sr=c&sp=r&sig=PX5790Xq0SmddbTZoU0DAdxWwUxagBL2frugW8FHzAk%3D)

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

Regardless of the experience, the required annotation order remains the same:

The difference is only in how the steps are presented:

Annotating nested tables is similar to annotating regular tables. Learn more in the section below.

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.
      • Select a row with multiline values for the best performance of the Copycat.
    • Use rows with longer values.
      • In the example below, the middle row has the longest values; therefore, we’re setting it as a template row.
        • Copycat populates the annotations to the rest of the rows.
        • Use W and E on your keyboard to switch between columns.
  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 as shown below and follow steps 1-2 to complete the annotations.

  1. Once the template row is annotated, review all rows and click Continue to Review CMD + Enter.
  2. In TDM, click Save Changes and continue with the next document.
    • In Supervision, click Submit Task to continue with the document processing.

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

A manual task that is created when the system’s confidence in a prediction is below the confidence threshold. Supervision allows a human to review and correct the output, ensuring data accuracy through human-in-the-loop input.

A tool used to annotate, manage, import, and export training documents. It is also used to train models by working directly with the training data (“ground truth”) obtained from each document in the training set.

The lead row in your table. It doesn’t need to be the first one, but it should be representative of the rows in your table. Hyperscience uses the Copycat tool to populate the annotation for the rest of the rows in your table. The Copycat is not always accurate, so make sure to double-check the annotations.

After you’ve annotated a single row from a table, you can use the copycat feature to copy the annotations to the remaining rows of the table. The copycat is not always accurate, so make sure to double-check the annotations before you submit.