Token Classification
Transformers
Safetensors
PyTorch
French
bert
ner
pii
pii-detection
de-identification
privacy
healthcare
medical
clinical
phi
french
openmed
Eval Results (legacy)
Run this model with HF Jobs
Run OpenMed/OpenMed-PII-French-ClinicalE5-Base-109M-v1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/OpenMed/OpenMed-PII-French-ClinicalE5-Base-109M-v1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/OpenMed/OpenMed-PII-French-ClinicalE5-Base-109M-v1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use OpenMed/OpenMed-PII-French-ClinicalE5-Base-109M-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenMed/OpenMed-PII-French-ClinicalE5-Base-109M-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="OpenMed/OpenMed-PII-French-ClinicalE5-Base-109M-v1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("OpenMed/OpenMed-PII-French-ClinicalE5-Base-109M-v1") model = AutoModelForTokenClassification.from_pretrained("OpenMed/OpenMed-PII-French-ClinicalE5-Base-109M-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download test_results.json from OpenMed/OpenMed-PII-French-ClinicalE5-Base-109M-v1: direct link, hf CLI and curl.
- Browser
- Download file 388 Bytes
-
https://huggingface.co/OpenMed/OpenMed-PII-French-ClinicalE5-Base-109M-v1/resolve/main/test_results.json
- Command line
-
hf download hf://OpenMed/OpenMed-PII-French-ClinicalE5-Base-109M-v1/test_results.json
-
curl -L -o test_results.json https://huggingface.co/OpenMed/OpenMed-PII-French-ClinicalE5-Base-109M-v1/resolve/main/test_results.json
388 Bytes
| { | |
| "test_accuracy": 0.9916088551873324, | |
| "test_f1": 0.9378738078560268, | |
| "test_loss": 0.025953926146030426, | |
| "test_macro_f1": 0.9144742086284606, | |
| "test_precision": 0.9341490903236194, | |
| "test_recall": 0.9416283473086287, | |
| "test_runtime": 4.1799, | |
| "test_samples_per_second": 1476.35, | |
| "test_steps_per_second": 23.206, | |
| "test_weighted_f1": 0.9324591259264476 | |
| } |