Open source annotation tool for machine learning practitioners.
doccano is an open-source text annotation tool for humans. It provides annotation features for text classification, sequence labeling, and sequence to sequence tasks. You can create labeled data for sentiment analysis, named entity recognition, text summarization, and so on. Just create a project, upload data, and start annotating. You can build a dataset in hours.
Try the annotation demo.

Read the documentation at https://doccano.github.io/doccano/.
There are three options to run doccano:
To install doccano, run:
pip install doccano
By default, SQLite 3 is used for the default database. If you want to use PostgreSQL, install the additional dependencies:
pip install 'doccano[postgresql]'
and set the DATABASE_URL environment variable according to your PostgreSQL credentials:
DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}?sslmode=disable"
After installation, run the following commands:
# Initialize database.
doccano init
# Create a super user.
doccano createuser --username admin --password pass
# Start a web server.
doccano webserver --port 8000
In another terminal, run the command:
# Start the task queue to handle file upload/download.
doccano task
Go to http://127.0.0.1:8000/.
As a one-time setup, create a Docker container as follows:
docker pull doccano/doccano
docker container create --name doccano \
-e "ADMIN_USERNAME=admin" \
-e "ADMIN_EMAIL=admin@example.com" \
-e "ADMIN_PASSWORD=password" \
-v doccano-db:/data \
-p 8000:8000 doccano/doccano
Next, start doccano by running the container:
docker container start doccano
Go to http://127.0.0.1:8000/.
To stop the container, run docker container stop doccano -t 5. All data created in the container will persist across restarts.
If you want to use the latest features, specify the nightly tag:
docker pull doccano/doccano:nightly
You need to install Git and clone the repository:
git clone https://github.com/doccano/doccano.git
cd doccano
Note for Windows developers: Be sure to configure git to correctly handle line endings or you may encounter status code 127 errors while running the services in future steps. Running with the git config options below will ensure your git directory correctly handles line endings.
git clone https://github.com/doccano/doccano.git --config core.autocrlf=input
Then, create an .env file with variables in the following format (see ./docker/.env.example):
# platform settings
ADMIN_USERNAME=admin
ADMIN_PASSWORD=password
ADMIN_EMAIL=admin@example.com
# rabbit mq settings
RABBITMQ_DEFAULT_USER=doccano
RABBITMQ_DEFAULT_PASS=doccano
# database settings
POSTGRES_USER=doccano
POSTGRES_PASSWORD=doccano
POSTGRES_DB=doccano
After running the following command, access http://127.0.0.1/.
docker-compose -f docker/docker-compose.prod.yml --env-file .env up
| Service | Button |
|---|---|
| AWS1 | |
| Heroku |
See the documentation for details.
As with any software, doccano is under continuous d
(1) EC2 KeyPair cannot be created automatically, so make sure you have an existing EC2 KeyPair in one region. Or create one yourself. (2) If you want to access doccano via HTTPS in AWS, here is an instruction. ↩
Feature request: OpenAI-compatible auto-labeling option
https://github.com/doccano/doccano/issues/2505
Labels: None
Cross-project IDOR: project members can read, modify, and delete other projects' Examples and Comments
https://github.com/doccano/doccano/issues/2504
Labels: None
Hard-Coded Django SECRET_KEY Fallback Reaches Production
https://github.com/doccano/doccano/issues/2502
Labels: None
Optional EvalPort interop for Example/Label export data
https://github.com/doccano/doccano/issues/2499
Labels: None
Broken demo application link on Heroku
https://github.com/doccano/doccano/issues/2494
Labels: None
When contributing to this repository, please first discuss the change you wish to make via issue with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
Explain the problem and include additional details to help maintainers reproduce the problem:
Explain the suggestion and include additional details to help developers understand it:
Fork the project & clone it locally: Click the "Fork" button in the header of the GitHub repository, creating a copy of doccano in your GitHub account. To get a working copy on your local machine, you have to clone your fork. Click the "Clone or Download" button in the right-hand side bar, then append its output to the git clone command.
$ git clone https://github.com/YOUR_USERNAME/doccano.git
Create an upstream remote and sync your local copy: Connect your local copy to the original "upstream" repository by adding it as a remote.
$ cd doccano
$ git remote add upstream https://github.com:doccano/doccano.git
You should now have two remotes: read/write-able origin points to your GitHub fork, and a read-only upstream points to the original repo. Be sure to keep your fork in sync with the original, reducing the likelihood of merge conflicts later on.
Create a branch for each piece of work: Branch off develop for each bugfix or feature that you're working on. Give your branch a descriptive, meaningful name like bugfix-for-issue-1234 or improve-io-performance, so others know at a glance what you're working on.
$ git checkout develop
$ git pull develop master && git push origin develop
$ git checkout -b my-descriptive-branch-name
At this point, you may want to install your version of doccano. It's usually best to do this within a dedicated virtual environment; We recomment to use poetry with Python 3.8+:
$ cd backend
$ poetry install
$ poetry shell
Second, set up the database and run the development server. Doccano uses Django and Django Rest Framework as a backend. We can set up them by using Django command:
$ python manage.py migrate
$ python manage.py create_roles
$ python manage.py create_admin --noinput --username "admin" --email "admin@example.com" --password "password"
$ python manage.py runserver
In another terminal, you need to run Celery in backend directory to use import/export dataset feature:
$ celery --app=config worker --loglevel=INFO --concurrency=1
The doccano frontend is built in Node.js and uses Yarn as a package manager. If you haven't installed them yet, please see Node.js and Yarn documentation.
First, to install the defined dependencies for our project, just run the install command.
$ cd frontend
$ yarn install
Then run the dev command to serve with hot reload at :
$ yarn dev
Now, you can access to the frontend at http://127.0.0.1:3000/.
Implement your changes: Use your preferred text editor to modify the doccano source code. Be sure to keep your changes focused and in