clips/bratreader
clips/bratreader has 43 GitHub stars and 22 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-09 19:13 UTC. Last push 2026-08-05.
Python code for reading Brat Repositories. Supports saving and reading from XML files for easy acces to annotations.
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalWARNING: This repository is no longer maintained.
This project is archived and will not receive further updates, bug fixes, or security patches. Issues and pull requests may not be reviewed.
Use this software at your own risk.
bratreader
Python code for reading Brat Repositories.
Version
1.1
License
GPL v3.0
Installation
Currently, there are no particular installation instructions. Because BratReader will be used so locally, we assume users will be able to figure out themselves where they want to use the code in their project.
Usage
To use BratReader, simply import repomodel and point it to the directory containing both your .ann and .txt files.
from bratreader.repomodel import RepoModel
r = RepoModel("path/to/bratfolder") # load repomodel
r.documents # all documents in your brat corpus
doc = r.documents["001"] # get document with key 001
print(doc.sentences) # a list of sentences in document
print(doc.annotations) # the annotation objects in a document
# Save to XML
r.save_xml("my_folder")
# This creates one XML document per original document
# in the specified folder.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,576 starspublic-apis/public-apis
A collective list of free APIs
497,894 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
449,513 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,300 stars