# Defining labels

## Overview

Creating high-quality training data requires clean and well-thought labels.&#x20;

AnnoStation supports the following two types of labels:

| Type         | Description                                                                                                                                                                                                                                                                                                                                                  |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Segmentation | Segmentation is typically used to train the model to recognize the precise shape of an object. It is used to label *each pixel* of an image with a corresponding ***class*** of what is being represented.                                                                                                                                                   |
| Vector       | <p>Vector is often used to detect a certain object within an image. It is used to label the outline of shapes of an object with a corresponding <em><strong>class</strong></em> of what is being represented.</p><p>AnnoStation supports the following types of vector objects:</p><ul><li>Point</li><li>Bounding Box</li><li>Polygon</li><li>Path</li></ul> |

For vector labels, you can also define [custom attributes](/mastering-annostation/projectsetup/labels.md#custom-attributes) for additional classification.

## Create a new label

1. Go to the `Annotation Labels` tab.
2. Click on **Add label**.
3. Provide a name and choose a color.&#x20;
4. Select if the label is **Segmentation** or **Vector**.
   * For vector labels, you can define custom attributes.&#x20;
5. Select **Create Label**.

### Custom attributes

When you want to classify an annotated object, using custom attributes is a powerful way.&#x20;

AnnoStation supports the following types of custom attributes:

| Type         | Description                                                                                                                                                                                             |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Single Text  | <ul><li>Annotators classify an object using free texts.</li></ul>                                                                                                                                       |
| Radio button | <ul><li>Annotators choose between a set of options.</li><li>Annotators can choose one option.</li><li>You can include "Other" as an option, and Annotators can type a short answer.</li></ul>           |
| Checkbox     | <ul><li>Annotators choose between a set of options.</li><li>Annotators can choose more than one option.</li><li>You can include "Other" as an option, and Annotators can type a short answer.</li></ul> |
| Dropdown     | <p></p><ul><li>Annotators choose between a set of options.</li><li>Annotators can choose one option.</li><li>You can include "Other" as an option, and Annotators can type a short answer.</li></ul>    |

**To add custom attributes:**

1. Against vector labels, select **Add attribute.**
2. Provide a name of the attribute, and select the type.
3. Add response options (if applicable for your attribute type).
4. Include "Other" as an option if desired by selecting **Write-in Choice.**
5. To add more attribute, click **Add attribute**.&#x20;

## Modify Labels

You can modify labels, however make sure you are certain about the action as it will impact all existing annotation associated with the label.

To modify a label, go to the label you want to modify, and select the pencil icon on the left.

{% hint style="info" %}

* Changing the name or color will update the existing annotations.
* Deleting attributes or options will remove existing attributes or values.
* Changing the type of an attribute may result in removing existing values if it is not possible to preserve.
  {% endhint %}

## Delete Labels

You can delete labels, however make sure you are certain about the action as it will delete all existing annotations associated with the label and it cannot be reversed.&#x20;

To delete a label, go to the label you want to delete, and select the trash bin icon on the left.


---

# 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.annostation.orni.co.jp/mastering-annostation/projectsetup/labels.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.
