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
Release history Release notifications | RSS feed
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)
Built Distribution
bratserver-0.0.1-py3-none-any.whl
(20.0 MB
view hashes)
Close
Hashes for bratserver-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a296d705ba2b04d2abefb53ab40d295509c879c9be6510e164f4c433612b889 |
|
MD5 | ef65b799528c91538f4d6d5f9173b4a1 |
|
BLAKE2b-256 | 3e79314ca04008678d2f39010b81aae38cb98e8fff15178ba4e7f58a06181feb |