# Nested Classifications

Ango Hub allows annotators to answer multiple, nested questions regarding individual labels or top-level classifications.

![](/files/-Mk6JA0Da1QyOlhwak7w)

In the example above, we ask annotators to draw a polygon. Then, they answer questions related to the polygon they’ve just drawn. Each question’s answer determines which question will be asked next.

Here, if annotators select the “clothing” answer, they will be shown a question asking what type of clothing it is. If then they select “shirt” they will be asked the shirt’s gender, and so on.

You may nest classifications under existing classifications conditionally (i.e. to appear once a user selected a specific answer) or unconditionally (the nested classification appears regardless of what answer the user picks.)

## Setting Up Nested Classifications on Ango Hub <a href="#how-to-nest-classifications-in-your-project" id="how-to-nest-classifications-in-your-project"></a>

From the project’s *Settings* tab, enter the *Category Schema* section.

Click on the label on which you’d like to ask nested questions. In our example, we expand a “Vehicle” bounding box.

![](/files/-Mk6QHiKL3B4LgliM97-)

Click on the *Add Classification* button towards the bottom.

If you are adding a nested classification to an "Tool" class (e.g. bounding box, polygon), you will be prompted to select the type of classification you need.

If you are adding a nested classification to another classification, you will be prompted to select the classification answer that should be selected by the user for the nested classification to trigger. ([More on classification in Ango Hub](/labeling/labeling-tools/classification-tools.md).)

If you are nesting a classification under an existing classification, and if you wish for the nested classification to appear regardless of the answer picked by the user, pick the *Any* option from the dropdown:

<figure><img src="/files/b8njLs4JodFLe07qyQWq" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you are adding a classification to a *Text*-type classification tool, the nested classification will be displayed regardless of the text being input as soon as the user starts entering text.
{% endhint %}

{% hint style="info" %}
The *Add Classification* button will not appear for classifications if no options have been added.
{% endhint %}

A new labeling tool will appear. Fill up its title and description as before, and add options if available.

![](/files/-Mk6K-r_8_INje2MLXpN)

From here, if you click on *Add Classification* again, you can nest a further question. For example, we can show annotators a free text tool if they answer “Other.”

![](/files/-Mk6K2qgzcXcWNr4Pd2H)

As with all other label tools, enable the *Required* toggle if you want to force labelers to create a bounding box for each asset. When the toggle is disabled, labelers will be able to save and move to the next asset without creating the bounding box.

### How to Answer Nested Questions <a href="#how-to-answer-nested-questions" id="how-to-answer-nested-questions"></a>

In the [labeling editor](/labeling/labeling-editor-interface.md), right-click on the annotation where you’d like to answer the nested questions. Audio, image, PDF, and Text (NER) all support this functionality.

A contextual menu will appear. Clicking on it will expand the questions if available.

![](/files/-Mk6KB9fhIZXr9UDJDOA)

It is also possible to answer questions from the “Objects” panel in the same way.

![](/files/-Mk6KERsvoE26f3ZjcUX)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.imerit.net/labeling/labeling-tools/tools/nested-classifications.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
