Token Classification
Transformers
Safetensors
PyTorch
German
longformer
ner
pii
pii-detection
de-identification
privacy
healthcare
medical
clinical
phi
german
openmed
Eval Results (legacy)
Instructions to use OpenMed/OpenMed-PII-German-ClinicalLongformer-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-German-ClinicalLongformer-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-German-ClinicalLongformer-Base-149M-v1")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("OpenMed/OpenMed-PII-German-ClinicalLongformer-Base-149M-v1") model = AutoModelForTokenClassification.from_pretrained("OpenMed/OpenMed-PII-German-ClinicalLongformer-Base-149M-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload German PII detection model OpenMed-PII-German-ClinicalLongformer-Base-149M-v1
7f4248d verified | { | |
| "epoch": 3.0, | |
| "eval_accuracy": 0.9915511945523205, | |
| "eval_f1": 0.9484910086004692, | |
| "eval_loss": 0.024699047207832336, | |
| "eval_macro_f1": 0.9316514818979896, | |
| "eval_precision": 0.94650770863242, | |
| "eval_recall": 0.9504826375830513, | |
| "eval_runtime": 11.8068, | |
| "eval_samples_per_second": 447.792, | |
| "eval_steps_per_second": 28.035, | |
| "eval_weighted_f1": 0.9442905000511141, | |
| "test_accuracy": 0.9917773414943989, | |
| "test_f1": 0.948465256418304, | |
| "test_loss": 0.023209843784570694, | |
| "test_macro_f1": 0.9290547214877185, | |
| "test_precision": 0.9456161211590212, | |
| "test_recall": 0.9513316124157905, | |
| "test_runtime": 11.8871, | |
| "test_samples_per_second": 444.178, | |
| "test_steps_per_second": 27.761, | |
| "test_weighted_f1": 0.9447812348997809, | |
| "total_flos": 6598643039600640.0, | |
| "train_loss": 0.18558713852367315, | |
| "train_runtime": 1301.2333, | |
| "train_samples_per_second": 97.408, | |
| "train_steps_per_second": 1.524 | |
| } |