Coder Social home page Coder Social logo

knn-bioel's Introduction

kNN-BioEL

The code and dataset of paper Improving Biomedical Entity Linking with Retrieval-enhanced Learning in Proceedings of ICASSSP 2024.

Env

conda create -n bioel python==3.10.10
conda activate bioel
pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu117

Base Model

Please download the baseline model SapBERT in advance and rename it as SapBERT-from-PubMedBERT-fulltext, then place it in the models folder.

Training

You can execute the following command to train each dataset, where 0 represents the ID of the GPU device.

bash scripts/train_cometa.sh 0
bash scripts/train_aap.sh 0
bash scripts/train_ncbi.sh 0
bash scripts/train_bc5cdr.sh 0

You can also skip the training and directly download our pre-trained model from here (password 793f) or here. Please place the downloaded weights for the four datasets in the save directory, and the directory is organized as follows:

save
|--cometa
|--aap
|--ncbi
|--bc5cdr

Evaluation

After training the model or downloading the pre-trained weights, execute the following command to evaluate kNN-BioEL.

bash scripts/eval_knn_cometa.sh 0
bash scripts/eval_knn_aap.sh 0
bash scripts/eval_knn_ncbi.sh 0
bash scripts/eval_knn_bc5cdr.sh 0

Citation

If you use this model or code, please cite it as follows:

@article{lin2023improving,
  title={Improving Biomedical Entity Linking with Retrieval-enhanced Learning},
  author={Lin, Zhenxi and Zhang, Ziheng and Wu, Xian and Zheng, Yefeng},
  journal={arXiv preprint arXiv:2312.09806},
  year={2023}
}

knn-bioel's People

Contributors

lzxlin avatar zihengzzh avatar

Stargazers

Yixiao Yuan avatar  avatar  avatar Zekai lin avatar Yudong LIU avatar Mujeen Sung avatar

Watchers

 avatar

Forkers

zihengzzh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.