Views
No views yet
anthonyyazdaniml/gliner-biomed-bi-large-v1.0-medication-regimen-neranthonyyazdaniml/gliner-biomed-large-v1.0-medication-regimen-nerDrugDrug dosageDrug strengthDrug formDrug administration routeFrequency of drug administrationTreatment durationReason for drug prescriptionAdverse drug eventgliner library is installed and up-to-date:pip install gliner -U1from gliner import GLiNER
2
3model = GLiNER.from_pretrained("anthonyyazdaniml/gliner-biomed-bi-large-v1.0-medication-regimen-ner")
4
5text = """
6The patient was prescribed Lisinopril 10 mg tablets to treat her hypertension.
7She was instructed to take one tablet orally once daily for 14 days.
8Shortly after starting the medication, she reported experiencing dizziness.
9"""
10
11labels = [
12 'Drug', 'Drug administration route',
13 'Reason for drug prescription', 'Adverse drug event',
14 'Drug dosage', 'Drug strength', 'Frequency of drug administration',
15 'Treatment duration', 'Drug form'
16]
17
18entities = model.predict_entities(text, labels, threshold=0.5)
19
20for entity in entities:
21 print(entity["text"], "=>", entity["label"])Lisinopril => Drug
10 mg => Drug strength
tablets => Drug form
hypertension => Reason for drug prescription
one => Drug dosage
tablet => Drug form
orally => Drug administration route
once daily => Frequency of drug administration
for 14 days => Treatment duration
dizziness => Adverse drug event1@misc{yazdani2025glinerbiomedsuiteefficientmodels,
2 title={GLiNER-biomed: A Suite of Efficient Models for Open Biomedical Named Entity Recognition},
3 author={Anthony Yazdani and Ihor Stepanov and Douglas Teodoro},
4 year={2025},
5 eprint={2504.00676},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL},
8 url={https://arxiv.org/abs/2504.00676},
9}