Skip to main content

BRAT (brat rapid annotation tool) is based on the stav visualiser,

Project description

Brat package

Update and initialize submodules if cloning the repository

git submodule update --init --recursive

Installation from git

python3.8 -m venv venv

source venv/bin/activate

# python3.8 -m pip install .
python3.8 -m pip install git+https://github.com/melissayan/brat-package.git

# Confirm the executable is placed in the path
which brat

How to run brat

Create a test directory that will be used for annotation data:

mkdir -pv test
cd test

BRAT_PASSWORD=pass4 brat 8081

Environment Variables

Defaults:

BRAT_DATA_DIR=$(cwd)/annotation-data
BRAT_WORK_DIR=${HOME}/.brat
BRAT_USER=admin
BRAT_PASSWORD=
BRAT_AUTH_ENABLED='true'
BRAT_LOG_REQUESTS='true'
BRAT_MAX_SEARCH_RESULT_NUMBER=1000
BRAT_DEBUG='false'
BRAT_ADMIN_CONTACT_EMAIL='admin@example.com'
BRAT_HOST=''  # empty string means 0.0.0.0
BRAT_PORT=8081

All the variables can be overriden if set exporter before running brat.

If using BRAT_AUTH_ENABLED=true make sure to set BRAT_PASSWORD.

Example of disabling login:

BRAT_AUTH_ENABLED=false brat

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bratserver-0.0.1.tar.gz (19.7 MB view hashes)

Uploaded Source

Built Distribution

bratserver-0.0.1-py3-none-any.whl (20.0 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page