Token Classification
Transformers
Safetensors
PyTorch
Portuguese
distilbert
ner
pii
pii-detection
de-identification
privacy
healthcare
medical
clinical
phi
portuguese
openmed
Eval Results (legacy)
Instructions to use OpenMed/OpenMed-PII-Portuguese-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-Portuguese-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-Portuguese-mLiteClinical-Base-135M-v1")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("OpenMed/OpenMed-PII-Portuguese-mLiteClinical-Base-135M-v1") model = AutoModelForTokenClassification.from_pretrained("OpenMed/OpenMed-PII-Portuguese-mLiteClinical-Base-135M-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload Portuguese PII detection model OpenMed-PII-Portuguese-mLiteClinical-Base-135M-v1
ee0a56f verified | { | |
| "test_accuracy": 0.9354221870134127, | |
| "test_f1": 0.8862437965260546, | |
| "test_loss": 0.8722233176231384, | |
| "test_macro_f1": 0.5230175787241726, | |
| "test_precision": 0.8887938408896493, | |
| "test_recall": 0.8837083429985308, | |
| "test_runtime": 1.7233, | |
| "test_samples_per_second": 1740.848, | |
| "test_steps_per_second": 13.927, | |
| "test_weighted_f1": 0.8764389673906414 | |
| } |