PubMed embedding
Building PubMed embedding, automatically.
Install the package
As usual, just install from Pypi:
pip install pubmed_embedding
Usage examples
You can retrieve embedding for PubMed IDs of interest as such:
BERT
from pubmed_embedding import get_pubmed_embedding_from_curies
pubmed_ids = ["PMID:24774509", "PMID:15170967", "PMID:7850793"]
bert_features = get_pubmed_embedding_from_curies(
curies=pubmed_ids,
version="pubmed_bert_30_11_2022"
)
And the result is:
SciBERT
scibert_features = get_pubmed_embedding_from_curies(
curies=pubmed_ids,
version="pubmed_scibert_30_11_2022"
)
And the result is:
Specter
spected_features = get_pubmed_embedding_from_curies(
curies=pubmed_ids,
version="pubmed_specter_30_11_2022"
)
And the result is:
Citing this work
If you have found these datasets useful, please do cite:
@software{cappellettiPubMed2022,
author = {Cappelletti, Luca and Fontana, Tommaso and Reese, Justin},
month = {12},
title = {{BM25-weighted BERT-based embedding of PubMed}},
url = {https://github.com/LucaCappelletti94/pubmed_embedding},
version = {1.0.14},
year = {2022}
}
Metadata
Release files for pubmed-embedding 1.0.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pubmed_embedding-1.0.14.tar.gz | 30.0 kB | Without provenance | Details for pubmed_embedding-1.0.14.tar.gz |
Release files / pubmed_embedding-1.0.14.tar.gz
| Download URL | pubmed_embedding-1.0.14.tar.gz |
|---|---|
| Size | 30.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a7b16fe671c00f7725d4bfa5ab1bbeb1afea7e84e2d19f10e7fd21483317f65
|
|
BLAKE2b-256 checksum How to use checksums |
a41204dc1c9ee422036cf60786e0e7c2cd738fc15af3e39229b056274da80f38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9
|
Security for pubmed-embedding 1.0.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.