Instructions to use OpenMed/OpenMed-PII-Turkish-BioClinicalModern-Base-149M-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenMed/OpenMed-PII-Turkish-BioClinicalModern-Base-149M-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="OpenMed/OpenMed-PII-Turkish-BioClinicalModern-Base-149M-v1")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("OpenMed/OpenMed-PII-Turkish-BioClinicalModern-Base-149M-v1") model = AutoModelForTokenClassification.from_pretrained("OpenMed/OpenMed-PII-Turkish-BioClinicalModern-Base-149M-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
OpenMed-PII-Turkish-BioClinicalModern-Base-149M-v1
This is an OpenMed token-classification checkpoint intended for Turkish
(tr) personally identifiable information (PII) and protected health
information (PHI) span detection.
Model details
- Language scope: Turkish (
tr) - Task: token classification / named entity recognition
- Base model:
thomas-sounack/BioClinical-ModernBERT-base - Library: Transformers
Usage
from transformers import pipeline
model_id = "OpenMed/OpenMed-PII-Turkish-BioClinicalModern-Base-149M-v1"
detector = pipeline(
"token-classification",
model=model_id,
aggregation_strategy="simple",
)
text = "Örnek hasta Ayşe Yılmaz'ın e-posta adresi ayse.yilmaz@example.com ve telefon numarası +90 555 000 00 00."
print(detector(text))
The checkpoint's configured id2label mapping is authoritative for the
available entity labels. Preserve returned character offsets when applying
redaction or replacement.
Evaluation status
No verified Turkish evaluation artifact was available during this metadata repair, so this card intentionally reports no language-specific scores. Evaluate direct-identifier recall, false negatives, span boundaries, and domain shift on representative data before deployment.
Limitations and safety
This model can miss identifiers or over-redact clinically useful context. It is not an anonymization guarantee, a compliance determination, or a medical device. Use defense in depth and human review for high-sensitivity workflows. Do not include real patient information in public examples, logs, or issue reports.
- Downloads last month
- 14
Model tree for OpenMed/OpenMed-PII-Turkish-BioClinicalModern-Base-149M-v1
Base model
answerdotai/ModernBERT-base