• Stars
    star
    142
  • Rank 258,425 (Top 6 %)
  • Language
    Python
  • License
    Other
  • Created over 5 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

BioWordVec: Improving Biomedical Word Embeddings with Subowrd Information and MeSH

This sourcecode is a demo implementation described in the paper "BioWordVec:Improving Biomedical Word Embeddings with Subowrd Information and MeSH." This is research software, provided as is without express or implied warranties etc. see licence.txt for more details. We have tried to make it reasonably usable and provided help options, but adapting the system to new environments or transforming a corpus to the format used by the system may require significant effort.

Data files

Data: MeSH_graph.edgelist is the MeSH main-heading graph file. MeSH_dic.pkl.gz is used to align the MeSH heading ids with mention words. The PubMed corpus and MeSH RDF data can be download from NCBI.

Prerequisites

  • python 3.5
  • networkx 1.11
  • gensim 2.3

Usage

User can use BioWordVec.py to automatically learn the biomedical word embedding based on PubMed text corpus and MeSH data.

Pre-trained word embedding

We created two specialized, task-dependent sets of word embeddings “Bio-embedding-intrinsic” and “Bio-embedding-extrinsic” via setting the context window size as 20 and 5, respectively. The pre-trained BioWordVec data are freely available on Figshare. "Bio-embedding-intrinsic" is for intrinsic tasks and used to calculate or predict semantic similarity between words, terms or sentences. "Bio_embedding_extrinsic" is for extrinsic tasks and used as the input for various downstream NLP tasks, such as relation extraction or text classification. Both sets are in binary format and contain 2,324,849 distinct words in total. All words were converted to lowercase and the number of dimensions is 200.

We used UMNSRS datasets to evaluate the pre-trained word embeddings on medical word pair similarity.

Word embeddings UMNSRS-Sim (Pearson score) UMNSRS-Sim (Spearman score) UMNSRS-Rel (Pearson score) UMNSRS-Rel (Pearson score)
Pyysalo et al. 0.662 0.652 0.600 0.601
Chiu et al. 0.665 0.654 0.608 0.607
BioWordVec (win20) 0.667 0.657 0.619 0.617

We also used BioCreative/OHNLP STS dataset to evaluate the pre-trained word embeddings on clinical sentence pair similarity.

Similarity measures Pyysalo et al. Chiu et al. BioWordVec (win20)
Cosine 0.755 0.757 0.771
Euclidean 0.723 0.727 0.753
Block 0.722 0.727 0.752

User can find more usage notes in our paper.

References

When using some of our pre-trained models for your application, please cite the following paper:

Zhang Y, Chen Q, Yang Z, Lin H, Lu Z. BioWordVec, improving biomedical word embeddings with subword information and MeSH. Scientific Data. 2019.

List of Contributors

Yijia Zhang, Qingyu Chen, Zhihao Yang, Hongfei Lin and Zhiyong Lu

Acknowledgments

This work was supported by the Intramural Research Programs of the National Institutes of Health, National Library of Medicine. We are grateful to the authors of fastText, Node2vec and UMNSRS for making their software and data publicly available.

More Repositories

1

BioSentVec

BioWordVec & BioSentVec: pre-trained embeddings for biomedical words and sentences
Jupyter Notebook
567
star
2

bluebert

BlueBERT, pre-trained on PubMed abstracts and clinical notes (MIMIC-III).
Python
545
star
3

BLUE_Benchmark

BLUE benchmark consists of five different biomedicine text-mining tasks with ten corpora.
Python
283
star
4

NegBio

📰 High-performance tool for negation and uncertainty detection in radiology reports
Python
155
star
5

DeepSeeNet

👀 DeepSeeNet is a deep learning framework for classifying patient-based age-related macular degeneration severity in retinal color fundus photographs.
Python
57
star
6

PhenoTagger

PhenoTagger
GAP
50
star
7

Ab3P

Abbreviation definition dection library trained on PubMed abstracts
C
45
star
8

PubMed-Best-Match

Machine-learning based pipeline relying on LambdaMART currently used in PubMed for relevance (Best Match) searches
Python
39
star
9

TeamTat

Text annotation tool for team collaboration
JavaScript
35
star
10

ML_Net

ML-Net is a novel end-to-end deep learning framework for multi-label classification of biomedical tasks. ML-Net combines the label prediction network with a label count prediction network, which can determine the output labels based on both label confidence scores and document context in an end-to-end manner.
Python
33
star
11

TrialGPT

Code and data for TrialGPT.
Python
23
star
12

COVID-19-CT-CXR

COVID-19-CT-CXR, a public database of COVID-19 CXR and CT images
Python
20
star
13

MedCalc-Bench

Benchmarking the medical calculation capabilities of large language models.
Python
17
star
14

ezTag

Web interface that allows users to perform computer-assisted text annotation
JavaScript
15
star
15

BioC-JSON

Tool that converts between BioC XML files and BioC JSON files
Python
15
star
16

NQAC

Python
15
star
17

pubtator-gpt

13
star
18

DeepRel

A convolutional neural network model for relation extraction.
Python
12
star
19

NCBITextLib

Software library for building a large-scale data infrastructure for text mining
C++
7
star
20

BC6PM

Evaluation scripts for BioCreative VI Precision Medicine Track
Python
6
star
21

VarTriage

Python
5
star
22

PubTator-Covid19

4
star
23

CovidTermVar

Python
2
star
24

TaggerOne

General-purpose tagger for joint named entity recognition and normalization. Includes models for both diseases and chemicals (drugs) in biomedical publications.
2
star
25

Medical-Imaging-Causal-Fairness

Python
2
star
26

Unmasking-GPT-Bias

Jupyter Notebook
1
star
27

PhenoRerank

Python
1
star