pybrat
is a reader/parser for reading/parsing data annotated by brat.
pip install pybrat
pip install git+https://github.com/Yevgnen/pybrat
git clone https://github.com/nlplab/brat.git
Below is an example of parsing BioNLP-ST_2011 data:
The pybrat-convert
script can be used to convert Brat examples into JSON files.
pybrat-convert -i brat/example-data/corpora/BioNLP-ST_2011 -o ./output --error ignore
To ensure the codebase complies with a style guide, please use flake8, black and isort tools to format and check codebase for compliance with PEP8.