Views
No views yet
tr) personally identifiable information (PII) and protected health
information (PHI) span detection.tr)answerdotai/ModernBERT-base1from transformers import pipeline
2
3model_id = "OpenMed/OpenMed-PII-Turkish-ModernMed-Base-149M-v1"
4detector = pipeline(
5 "token-classification",
6 model=model_id,
7 aggregation_strategy="simple",
8)
9
10text = "Örnek hasta Ayşe Yılmaz'ın e-posta adresi ayse.yilmaz@example.com ve telefon numarası +90 555 000 00 00."
11print(detector(text))id2label mapping is authoritative for the
available entity labels. Preserve returned character offsets when applying
redaction or replacement.