Turkish Medical Named Entity Recognition model and demo. Use it to extract medical entities (drug, disease, symptom, test, organ) from Turkish clinical-style text.
- Demo (Space): https://huggingface.co/spaces/tugrulkaya/medner-tr-demo
- Model: https://huggingface.co/tugrulkaya/medner-tr
- ILAC — Medications
- HASTALIK — Diseases
- SEMPTOM — Symptoms
- ORGAN — Organs
- TEST — Medical tests
pip install transformers torchfrom transformers import pipeline
ner = pipeline(
"token-classification",
model="tugrulkaya/medner-tr",
aggregation_strategy="simple",
)
text = "Hastaya Parol 500mg baslandi."
results = ner(text)
print(results)Parol→ILACates,oksuruk→SEMPTOM
Reported metrics:
- F1: 99.49%
- Precision: 99.49%
- Recall: 99.49%
- Accuracy: 99.76%
- Model performance may vary depending on:
- spelling mistakes / informal writing
- domain shift (different hospitals / note styles)
- uncommon abbreviations
- Always validate outputs in clinical workflows.
MIT
If you use this project in academic work, please cite:
@misc{mednertr,
title = {MedNER-TR: Turkish Medical Named Entity Recognition},
author = {Tuğrul Kaya},
year = {2026},
url = {https://github.com/mtkaya/medner-tr}
}- GitHub: https://github.com/mtkaya
- Hugging Face: https://huggingface.co/tugrulkaya