█

AI/TLDR

Buy me a coffee
Buy me a coffee

doccano

Open-source text annotation tool for building labeled NLP datasets

Labeling & AnnotationOpen source
Language
Python
$pip install doccano
IN SHORT

What is doccano?

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.

Install with pip

Install doccano into a Python 3.8+ environment.

bashbash
pip install doccano

Initialize and create a user

Set up the database and an admin account.

bashbash
doccano init
doccano createuser --username admin --password pass

Start the web server

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

bashbash
doccano webserver --port 8000

Start the task queue

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

bashbash
doccano task

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

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

How doccano compares

doccano alongside other open-source labeling & annotation tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Label Studio★ 28.8kA flexible open-source labeling platform for images, text, audio, video, and time series with AI-assisted labeling.
CVAT★ 17.2kA computer-vision annotation tool for labeling images and video with bounding boxes, segmentation, and tracking.
Labelme★ 16.3kA desktop image annotation tool in Python and Qt, with polygon/box/mask primitives, VOC and COCO export, and AI-assisted labeling via SAM and YOLO-World.
FiftyOne★ 11.4kAn open-source Python tool and app for visual AI: explore image, video and 3D datasets, annotate labels natively, browse embeddings, and find the samples where a model fails.
X-AnyLabeling★ 11.1kA cross-platform desktop app for AI-assisted annotation of images, video, text, point clouds and multimodal data, with multi-format export.
doccano★ 10.8kOpen-source text annotation tool for building labeled NLP datasets
Snorkel AI★ 6kProgrammatic data development and expert data platform (Snorkel Flow) for labeling, synthetic data, and evaluation/RLHF datasets for frontier and enterprise AI models.
Argilla★ 5.2kAn open-source platform for annotating, reviewing, and curating datasets to train and fine-tune language models.