> For the complete documentation index, see [llms.txt](https://docs.imerit.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.imerit.net/labeling/labeling-tools/tools/nested-classifications.md).

# Nested Classifications

Ango Hub allows annotators to answer multiple, nested questions regarding individual labels, relations, 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 or relation 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 a tool or relation class, 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)

Enable the *Required* toggle on a nested classification if labelers must answer it before submitting the task. Required conditional classifications are enforced only when their parent answer makes them visible.

### 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. You can also expand an annotation or relation in the Objects panel and answer its questions there.

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

![](/files/-Mk6KB9fhIZXr9UDJDOA)

Relation questions are available wherever relations are supported, except in 3D MSFT projects and the DICOM series editor. When a required relation question is unanswered or an answer does not match its configured format, Ango Hub blocks submission and identifies the relation that needs attention.

![](/files/-Mk6KERsvoE26f3ZjcUX)
