> ## Documentation Index
> Fetch the complete documentation index at: https://docs.labelbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Text

> Guide for labeling text data.

When creating a project, select **Text**.

<Frame>
  <img src="https://mintcdn.com/labelbox-1db23ff4/lnhxZSTssM0QD0kK/images/docs/bd371fc-image.png?fit=max&auto=format&n=lnhxZSTssM0QD0kK&q=85&s=2247397143cd1edd908c0ccbaa20c6b1" alt="" width="207" height="73" data-path="images/docs/bd371fc-image.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/labelbox-1db23ff4/T1oXpPwyFqmEM-1B/images/docs/57ebd6e-99124f3-text_UI_screenshot.jpg?fit=max&auto=format&n=T1oXpPwyFqmEM-1B&q=85&s=d91a555486b169577d869e7cb85efa50" alt="" width="3744" height="1737" data-path="images/docs/57ebd6e-99124f3-text_UI_screenshot.jpg" />
</Frame>

## Import text data

To learn how to text data to Labelbox, visit our docs on [Importing text data](/reference/import-text-data).

<Info>
  ### Data row size limit

  To view the maximum size allowed for a data row, visit our [limits](/docs/limits) page.
</Info>

## Supported annotation types

Below are all of the annotation types you may include in your ontology when you are labeling text data. Classification-type annotations can be applied at the global level and/or nested within an object-type annotation.

| Feature                           | Import annotations                                                                        | Export annotations                                                         |
| --------------------------------- | ----------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| **Entity**                        | [See payload](/reference/import-text-annotations#entity)                                  | [See payload](/reference/export-text-annotations#text-entity-named-entity) |
| **Relationships**                 | [See payload](/reference/import-text-annotations#relationship)                            | [See payload](/reference/export-text-annotations#relationship)             |
| **Radio classification**          | [See payload](/reference/import-text-annotations#classification---radio-single-choice)    | [See payload](/reference/export-text-annotations#radio)                    |
| **Checklist classification**      | [See payload](/reference/import-text-annotations#classification---checklist-multi-choice) | [See payload](/reference/export-text-annotations#checklist)                |
| **Free-form text classification** | [See payload](/reference/import-text-annotations#classification---free-form-text)         | [See payload](/reference/export-text-annotations#free-form-text)           |

### Text entity

Create an entity by clicking the desired starting character and dragging to select a sequence of characters in the unstructured text.

<Frame>
  <img src="https://mintcdn.com/labelbox-1db23ff4/_mv5eJ1aW03aS2X9/images/docs/d49a552-headline_clean.gif?s=bd1b99f0ea71255cf2263b13da84e6a4" alt="" width="1448" height="466" data-path="images/docs/d49a552-headline_clean.gif" />
</Frame>

The characters in a text file are not restricted to a single annotation. Therefore, entity annotations can overlap completely or partially.

<Frame>
  <img src="https://mintcdn.com/labelbox-1db23ff4/lnhxZSTssM0QD0kK/images/docs/cdcbfb2-overlap.gif?s=180251699fef5ee8476786e54ddb4404" alt="" width="1448" height="466" data-path="images/docs/cdcbfb2-overlap.gif" />
</Frame>

#### Full word selection

When labeling text, you can hover over and annotate full words with one click rather than dragging your cursor and labeling character by character. This feature allows for vastly more efficient labeling and decreases the likelihood of labeling errors.

To toggle between **Word** and **Character** mode, click on the **Settings** icon in the text editor and select an option. You can also toggle between approaches using the hotkeys `Shift` + `W` for **Word** mode and `Shift` + `C` for **Character** mode. The default setting for all users is **Word** mode.

<Frame caption="Toggle between word and character modes in the text editor.">
  <img src="https://mintcdn.com/labelbox-1db23ff4/sVOsXQe1Ox1EwD0L/images/docs/66dfd98-Screen_Shot_2023-03-31_at_3.34.35_PM.png?fit=max&auto=format&n=sVOsXQe1Ox1EwD0L&q=85&s=03e5ec25fe6ccc4e35c17a5c1549e6d6" width="927" height="401" data-path="images/docs/66dfd98-Screen_Shot_2023-03-31_at_3.34.35_PM.png" />
</Frame>

### Relationship

With annotation relationships, you can create and define relationships between entity annotations in the text editor. You can then use these annotation relationships to consolidate labeling workflows and potentially reduce the number of language models needed.

Follow these steps to create a relationship between two entity annotations:

1. In the editor, create two entity annotations.

<Frame>
  <img src="https://mintcdn.com/labelbox-1db23ff4/Y2wXEmSLwSvn6HCD/images/docs/410b8dc-create-relationship-1.png?fit=max&auto=format&n=Y2wXEmSLwSvn6HCD&q=85&s=d3cbbcad9b0ff5efb5435602f26d8eaa" alt="" width="2268" height="726" data-path="images/docs/410b8dc-create-relationship-1.png" />
</Frame>

2. Select the relationship annotation from the Tools menu, then click on one of the entity annotations. To create the relationship, move your cursor to another entity and click to create the relationship.

<Frame>
  <img src="https://mintcdn.com/labelbox-1db23ff4/0KsmrO7icq8Jx_0f/images/docs/3b7137a-create-relationship-2.png?fit=max&auto=format&n=0KsmrO7icq8Jx_0f&q=85&s=03c133ff5239c83aaf790e516c55a396" alt="" width="2202" height="808" data-path="images/docs/3b7137a-create-relationship-2.png" />
</Frame>

3. Add an optional subclassification to the relationship.

<Frame>
  <img src="https://mintcdn.com/labelbox-1db23ff4/_MDTDLWsYj4TKxT6/images/docs/a5c4f5a-create-relationship-3.png?fit=max&auto=format&n=_MDTDLWsYj4TKxT6&q=85&s=24115e65eea50b3d57bec12a237b0e7b" alt="" width="2244" height="786" data-path="images/docs/a5c4f5a-create-relationship-3.png" />
</Frame>

## Text-specific hotkeys

| Function              | Hotkey                                     | Description                                                                                       |
| --------------------- | ------------------------------------------ | ------------------------------------------------------------------------------------------------- |
| Create a relationship | `Option` + Click (source) + Click (target) | Select an entity to be the source of a relationship, then select another entity to be the target. |
