Token Classification
Transformers
Safetensors
PyTorch
Italian
deberta-v2
ner
pii
pii-detection
de-identification
privacy
healthcare
medical
clinical
phi
italian
openmed
Eval Results (legacy)
Instructions to use OpenMed/OpenMed-PII-Italian-SuperClinical-Small-44M-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenMed/OpenMed-PII-Italian-SuperClinical-Small-44M-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="OpenMed/OpenMed-PII-Italian-SuperClinical-Small-44M-v1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("OpenMed/OpenMed-PII-Italian-SuperClinical-Small-44M-v1") model = AutoModelForTokenClassification.from_pretrained("OpenMed/OpenMed-PII-Italian-SuperClinical-Small-44M-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download test_results.json from OpenMed/OpenMed-PII-Italian-SuperClinical-Small-44M-v1: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/OpenMed/OpenMed-PII-Italian-SuperClinical-Small-44M-v1/resolve/main/test_results.json
- Command line
-
hf download hf://OpenMed/OpenMed-PII-Italian-SuperClinical-Small-44M-v1/test_results.json
-
curl -L -o test_results.json https://huggingface.co/OpenMed/OpenMed-PII-Italian-SuperClinical-Small-44M-v1/resolve/main/test_results.json
385 Bytes
| { | |
| "test_accuracy": 0.99348158939216, | |
| "test_f1": 0.9559212265397833, | |
| "test_loss": 0.018983589485287666, | |
| "test_macro_f1": 0.9407415367994277, | |
| "test_precision": 0.9525220597919136, | |
| "test_recall": 0.959344740681788, | |
| "test_runtime": 4.4371, | |
| "test_samples_per_second": 1142.418, | |
| "test_steps_per_second": 9.015, | |
| "test_weighted_f1": 0.9536764865107977 | |
| } |