All models

Literature · tugrulkaya

medner-tr

A BERT-based named entity recognition model identifying five key medical entity categories in Turkish clinical texts.

What medner-tr is

MedNER-TR is a token-classification model designed for biomedical and clinical natural language processing in Turkish. Developed by Tuğrul Kaya, it identifies key medical entities within unstructured Turkish healthcare documents such as patient notes, medical reports, and prescriptions.

The model addresses the lack of specialised language tools for Turkish clinical documentation. It serves as a tool for clinical natural language processing research, medical information extraction, and electronic health record analysis, distinguishing mentions of medications, diseases, symptoms, anatomical structures, and medical tests.

How it works

MedNER-TR is fine-tuned from the pre-trained cased Turkish transformer dbmdz/bert-base-turkish-cased. The training corpus consists of approximately 2,000 manually annotated Turkish medical sentences.

The network is trained over 3 epochs using the AdamW optimiser with a maximum sequence length of 128 tokens.

Key facts

Base model
dbmdz/bert-base-turkish-cased
Task
Token classification (named entity recognition)
Language
Turkish
Training dataset
Approximately 2,000 manually annotated Turkish medical sentences
Max sequence length
128 tokens
Training epochs
3
Optimiser
AdamW
Micro F1 score
99.49%
Accuracy
99.76%

What you can use it for

Prescription parsing
Automatically tagging pharmaceutical product names and dosages appearing in Turkish prescription texts.

Run it here

No installation and no GPU of your own: fill in the inputs and it runs on our servers. Results stay in your browser unless you sign in.

Runs on On-demand GPU

Runs on our servers with on-demand compute. A first run needs time to load the model; active capacity can be reused and scales down when idle.

Run this model

medner-tr

Entities are labelled token by token.

Needs text

Strengths and limits

Good at

  • Achieved 99.49% precision, recall, and micro F1 alongside 99.76% accuracy on its test set.
  • Covers five foundational clinical entity classes directly tailored to Turkish medical records.
  • Fine-tuned from a dedicated cased Turkish BERT checkpoint to preserve Turkish-specific orthographic features.

Watch out for

  • For research use only: it is not a medical device and must not be used for diagnosis, treatment or any clinical decision.
  • Not intended for diagnostic, treatment, or clinical decision-making use, requiring human oversight in any operational setting.
  • Trained on a relatively modest dataset of roughly 2,000 sentences, which may reduce performance on rare medical conditions and non-standard clinical terms.
  • Evaluation scores stem from a small, controlled test set and may vary when exposed to real-world clinical documentation.
  • Input text is constrained to a maximum length of 128 tokens.

Inputs and outputs

You provide

  • Text

    Entities are labelled token by token.

You get back

  • Labels with confidence scores, highest first.

medner-tr API

The same run, from your own code: one HTTP request with an API key, billed in the same credits as the Run button. A fast run answers with its outputs; a longer one answers with a poll_url to read.

bash
curl https://corollary-labs.com/api/v1/models/tugrulkaya-medner-tr/runs \
  -H "Authorization: Bearer $COROLLARY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "text": "<Text>"
  }
}'

Make an API key, then read the models reference.

Licence

Commercial use permitted · mit

mit, as the repository declares it. Read by the catalogue intake on 2026-11-28.

Questions

Can I use medner-tr commercially?

Commercial use permitted. mit, as the repository declares it. Read by the catalogue intake on 2026-11-28.

How do I run medner-tr without installing anything?

Use the form under “Run it here” on this page: fill in the inputs and press Run model. It runs on our servers on CPU only, typically in 8.8s, and a run costs about 28 credits. Visitors without an account get 1,000 credits a month.

Can MedNER-TR be used directly for clinical diagnostics or decisions?

No. The model is developed strictly for research and information extraction purposes and must not be used as a medical device or to direct patient diagnosis and treatment.

What base model was used to train MedNER-TR?

It was fine-tuned from dbmdz/bert-base-turkish-cased using approximately 2,000 hand-labelled Turkish medical sentences.

How to cite it

Kaya, Tuğrul. MedNER-TR: Turkish Medical Named Entity Recognition. 2025.

Written from medner-tr's own documentation (model card). Statements citing a figure that does not appear there are removed before publication. Licence and running details come from our registry.