Token Classification
Transformers
Safetensors
PyTorch
Italian
bert
ner
pii
pii-detection
de-identification
privacy
healthcare
medical
clinical
phi
italian
openmed
Eval Results (legacy)
Instructions to use OpenMed/OpenMed-PII-Italian-ClinicalE5-Large-335M-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenMed/OpenMed-PII-Italian-ClinicalE5-Large-335M-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="OpenMed/OpenMed-PII-Italian-ClinicalE5-Large-335M-v1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("OpenMed/OpenMed-PII-Italian-ClinicalE5-Large-335M-v1") model = AutoModelForTokenClassification.from_pretrained("OpenMed/OpenMed-PII-Italian-ClinicalE5-Large-335M-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download test_results.json from OpenMed/OpenMed-PII-Italian-ClinicalE5-Large-335M-v1: direct link, hf CLI and curl.
- Browser
- Download file 386 Bytes
-
https://huggingface.co/OpenMed/OpenMed-PII-Italian-ClinicalE5-Large-335M-v1/resolve/main/test_results.json
- Command line
-
hf download hf://OpenMed/OpenMed-PII-Italian-ClinicalE5-Large-335M-v1/test_results.json
-
curl -L -o test_results.json https://huggingface.co/OpenMed/OpenMed-PII-Italian-ClinicalE5-Large-335M-v1/resolve/main/test_results.json
386 Bytes
| { | |
| "test_accuracy": 0.9935966086568496, | |
| "test_f1": 0.956898261386924, | |
| "test_loss": 0.018409160897135735, | |
| "test_macro_f1": 0.9400897831186257, | |
| "test_precision": 0.9536829621821057, | |
| "test_recall": 0.9601353144070045, | |
| "test_runtime": 6.2528, | |
| "test_samples_per_second": 810.68, | |
| "test_steps_per_second": 25.429, | |
| "test_weighted_f1": 0.9542576374446854 | |
| } |