Downloads · 30 days
0
garyw/clinical-embeddings-600d-ft-cr
clinical-embeddings-600d-ft-cr is a machine learning model from garyw. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as gpl-3.0.
Pre-trained word embeddings using the text of published clinical case reports. These embeddings use 600 dimensions and were trained using the fasttext algorithm on published clinical case reports found in the PMC Open…
Downloads · 30 days
0
Access
Public
Updated Jan 31, 2023
Repo size
9 GB
Likes
0
Public
Click a slice to open those files.
.npy9 GB · 100%
From the Hugging Face model README
Pre-trained word embeddings using the text of published clinical case reports. These embeddings use 600 dimensions and were trained using the fasttext algorithm on published clinical case reports found in the PMC Open Access Subset. See the paper here: https://pubmed.ncbi.nlm.nih.gov/34920127/
Citation:
@article{flamholz2022word,
title={Word embeddings trained on published case reports are lightweight, effective for clinical tasks, and free of protected health information},
author={Flamholz, Zachary N and Crane-Droesch, Andrew and Ungar, Lyle H and Weissman, Gary E},
journal={Journal of Biomedical Informatics},
volume={125},
pages={103971},
year={2022},
publisher={Elsevier}
}
Word embeddings are compatible with the gensim Python package format.
First download the files from this archive. Then load the embeddings into Python.
from gensim.models import FastText, Word2Vec, KeyedVectors # KeyedVectors are used to load the GloVe models
# Load the model
model = FastText.load('ft_oa_corp_600d.bin')
# Return 100-dimensional vector representations of each word
model.wv.word_vec('diabetes')
model.wv.word_vec('cardiac_arrest')
model.wv.word_vec('lymphangioleiomyomatosis')
# Try out cosine similarity
model.wv.similarity('copd', 'chronic_obstructive_pulmonary_disease')
model.wv.similarity('myocardial_infarction', 'heart_attack')
model.wv.similarity('lymphangioleiomyomatosis', 'lam')