A relation extraction toolkit for biomedical text mining
Project description
Kindred is a package for relation extraction in biomedical texts. Given some training data, it can build a model to identify relations between entities (e.g. drugs, genes, etc) in a sentence.
Installation
You can install “kindred” via pip from PyPI:
$ pip install kindred
As of v2, Kindred relies on the Spacy toolkit for parsing. After installing kindred (which also installs spacy), you will need to install a Spacy language model. For instance, the command below installs the english language model:
$ python -m spacy download en
Usage
Full documentation can be found at readthedocs.
PubAnnotation Example
>>> corpus = kindred.pubannotation.load('bionlp-st-gro-2013-development')
PubTator Example
>>> corpus = kindred.pubtator.load([19894120,19894121])
Citing
It would be wonderful if you could cite the associated paper for this package if used in any academic research.
@article{lever2017painless,
title={Painless {R}elation {E}xtraction with {K}indred},
author={Lever, Jake and Jones, Steven},
journal={BioNLP 2017},
pages={176--183},
year={2017}
}
Contributing
Contributions are very welcome.
License
Distributed under the terms of the MIT license, “kindred” is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
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.