Skip to main content

BENT: Biomedical Entity Annotator

Project description

Python Library for Named Entity Recognition (NER) and Linking (NEL) in the biomedical domain.

NER models are based on PubMedBERT and a post-processing rule-based module. the NEL model is a graph-based approach based on the Personalized PageRank algorithm and Information content.

BENT can be used for:

  • Named Entity Recogniton (NER)

  • Named Entity Linking (NEL)

  • Named Entity Recognition and Linking (NER+NEL)

Access the full documentation here.

Citation:

Installation

To use the current version of BENT it is required:

  • OS based on Ubuntu/Debian

  • Conda environment

  • Python>=3.7

  • Between 11 and 15 GB free space (5 GB Anaconda + 2.5 GB to install dependencies + 3.0 GB data or 7.5 GB if you use all available knowlegde bases for NEL)

Create a Conda environment (adapt for the name of your project):

conda create --name annotation_project python=3.7

Activate the environment:

conda activate annotation_project

Install the BENT package using pip:

pip install bent

After the pip installation, it is required a further step to install non-Python dependencies and to download the necessary data. Specify the knowledge bases that will be used:

python -c "from bent.setup_package import setup_package;setup_package([<kb1>, <kb2>, <kb3>])"

Available knowledge bases:

Example to download only the MEDIC vocabulary:

python -c "from bent.setup_package import setup_package;setup_package(['medic'])"

If you want to download all knowledge bases, choose the option ‘all’:

python -c "from bent.setup_package import setup_package;setup_package(['all'])"

You can download more knowledge bases later by running the same command and specifying the desired knolwedge bases among the ones that are available and setting the argument ‘ only_kb_dicts’ to True:

python -c "from bent.setup_package import setup_package;setup_package([<kb>],  only_kb_dicts=True)"

Reinitiate the conda environment.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bent-0.0.9.tar.gz (74.1 kB view hashes)

Uploaded Source

Built Distribution

bent-0.0.9-py3-none-any.whl (81.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page