Token Classification
Transformers
Safetensors
PyTorch
Spanish
modernbert
ner
pii
pii-detection
de-identification
privacy
healthcare
medical
clinical
phi
spanish
openmed
Eval Results (legacy)
Instructions to use OpenMed/OpenMed-PII-Spanish-GTEMed-Base-149M-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenMed/OpenMed-PII-Spanish-GTEMed-Base-149M-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="OpenMed/OpenMed-PII-Spanish-GTEMed-Base-149M-v1")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("OpenMed/OpenMed-PII-Spanish-GTEMed-Base-149M-v1") model = AutoModelForTokenClassification.from_pretrained("OpenMed/OpenMed-PII-Spanish-GTEMed-Base-149M-v1") - Notebooks
- Google Colab
- Kaggle
| { | |
| "epoch": 3.0, | |
| "eval_accuracy": 0.9933949205584979, | |
| "eval_f1": 0.9143816452154448, | |
| "eval_loss": 0.01985287480056286, | |
| "eval_macro_f1": 0.9175745225691662, | |
| "eval_precision": 0.9203041396789636, | |
| "eval_recall": 0.9085348901862663, | |
| "eval_runtime": 2.7194, | |
| "eval_samples_per_second": 1220.495, | |
| "eval_steps_per_second": 19.122, | |
| "eval_weighted_f1": 0.9137825528137792, | |
| "test_accuracy": 0.9929642548370748, | |
| "test_f1": 0.9155816883662328, | |
| "test_loss": 0.02304788865149021, | |
| "test_macro_f1": 0.9228106049879174, | |
| "test_precision": 0.919831223628692, | |
| "test_recall": 0.9113712374581939, | |
| "test_runtime": 2.607, | |
| "test_samples_per_second": 1273.122, | |
| "test_steps_per_second": 19.946, | |
| "test_weighted_f1": 0.9146948110614883, | |
| "total_flos": 3378472202272768.0, | |
| "train_loss": 0.0984264104241827, | |
| "train_runtime": 240.1525, | |
| "train_samples_per_second": 331.764, | |
| "train_steps_per_second": 5.184 | |
| } |