Skip to content

Latest commit

 

History

History
66 lines (44 loc) · 1.65 KB

README.org

File metadata and controls

66 lines (44 loc) · 1.65 KB

Pybrat

Table of Contents

Introduction

pybrat is a reader/parser for reading/parsing data annotated by brat.

Installation

From pip

pip install pybrat

From source

pip install git+https://github.com/Yevgnen/pybrat

Usages

Fetch sample data

git clone https://github.com/nlplab/brat.git

Parse annotated data

Below is an example of parsing BioNLP-ST_2011 data:

Helper scripts

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

Contribution

Formatting Code

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.