# doccano

> Open-source text annotation tool for building labeled NLP datasets

- Category: Data & Labeling / Labeling & Annotation
- Language: Python
- Repository: https://github.com/doccano/doccano
- Website: https://doccano.github.io/doccano
- Canonical page: https://ai-tldr.dev/tools/doccano/

## In short

doccano is an open-source tool for annotating text by hand. It supports three kinds of tasks: text classification, sequence labeling, and sequence-to-sequence. It sits in the Labeling & Annotation category of the Data & Labeling tools and is open-source, written in Python. To get started: install with pip.

## Overview

doccano is an open-source tool for annotating text by hand. It supports three kinds of tasks: text classification, sequence labeling, and sequence-to-sequence. With it you can build labeled datasets for jobs like sentiment analysis, named entity recognition, and text summarization.

It is aimed at teams who need training data for natural language processing. You create a project, upload your raw text, define labels, and start annotating in the browser. Multiple people can work on the same project together, and a REST API lets you read and write data programmatically.

Within data labeling tools, doccano focuses on text rather than images or audio. It runs as a self-hosted web app, so your data stays on your own machine or server, and it ships with SQLite by default or PostgreSQL for larger setups.

## What it does

- Annotation for text classification, sequence labeling, and sequence-to-sequence tasks
- Collaborative annotation so several people can label one project together
- RESTful API for reading and writing annotation data
- Multi-language support, plus emoji and dark theme
- Mobile support for annotating on smaller screens
- Self-hosted via pip, Docker, or Docker Compose, with SQLite or PostgreSQL

## Getting started

doccano can run via pip (Python 3.8+), Docker, or Docker Compose. The pip path is the quickest way to get a local server running.

1. Install with pip

   Install doccano into a Python 3.8+ environment.

```bash
pip install doccano
```

2. Initialize and create a user

   Set up the database and an admin account.

```bash
doccano init
doccano createuser --username admin --password pass
```

3. Start the web server

   Run the server, then visit http://127.0.0.1:8000/ in your browser.

```bash
doccano webserver --port 8000
```

4. Start the task queue

   In another terminal, start the task queue that handles file upload and download.

```bash
doccano task
```

## When to use it

- Labeling text for sentiment analysis or other classification models
- Tagging entities for named entity recognition training data
- Creating summary or translation pairs for sequence-to-sequence tasks
- Running a shared annotation project where a team labels data together
