Token Classification
Transformers
Safetensors
PyTorch
Turkish
distilbert
ner
pii
pii-detection
de-identification
privacy
healthcare
medical
clinical
phi
openmed
turkish
Instructions to use OpenMed/OpenMed-PII-Turkish-mLiteClinical-Base-135M-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenMed/OpenMed-PII-Turkish-mLiteClinical-Base-135M-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="OpenMed/OpenMed-PII-Turkish-mLiteClinical-Base-135M-v1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("OpenMed/OpenMed-PII-Turkish-mLiteClinical-Base-135M-v1") model = AutoModelForTokenClassification.from_pretrained("OpenMed/OpenMed-PII-Turkish-mLiteClinical-Base-135M-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 2,209 Bytes
aa9ae4a 37c952a aa9ae4a 37c952a aa9ae4a 37c952a aa9ae4a 37c952a aa9ae4a 37c952a aa9ae4a 37c952a aa9ae4a 37c952a aa9ae4a 37c952a aa9ae4a 37c952a aa9ae4a 37c952a aa9ae4a 37c952a aa9ae4a 37c952a aa9ae4a 37c952a aa9ae4a 37c952a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | ---
license: apache-2.0
language:
- tr
base_model: distilbert/distilbert-base-multilingual-cased
library_name: transformers
pipeline_tag: token-classification
tags:
- token-classification
- ner
- pii
- pii-detection
- de-identification
- privacy
- healthcare
- medical
- clinical
- phi
- pytorch
- transformers
- openmed
- turkish
widget:
- text: Örnek hasta Ayşe Yılmaz'ın e-posta adresi ayse.yilmaz@example.com ve telefon numarası
+90 555 000 00 00.
example_title: Synthetic clinical text with PII (Turkish)
---
# OpenMed-PII-Turkish-mLiteClinical-Base-135M-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: [`distilbert/distilbert-base-multilingual-cased`](https://huggingface.co/distilbert/distilbert-base-multilingual-cased)
- Library: Transformers
## Usage
```python
from transformers import pipeline
model_id = "OpenMed/OpenMed-PII-Turkish-mLiteClinical-Base-135M-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.
|