Token Classification
Transformers
Safetensors
PyTorch
Turkish
distilbert
ner
pii
pii-detection
de-identification
privacy
healthcare
medical
clinical
phi
openmed
turkish
Instructions to use OpenMed/OpenMed-PII-Turkish-LiteClinical-Small-66M-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenMed/OpenMed-PII-Turkish-LiteClinical-Small-66M-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="OpenMed/OpenMed-PII-Turkish-LiteClinical-Small-66M-v1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("OpenMed/OpenMed-PII-Turkish-LiteClinical-Small-66M-v1") model = AutoModelForTokenClassification.from_pretrained("OpenMed/OpenMed-PII-Turkish-LiteClinical-Small-66M-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download test_results.json from OpenMed/OpenMed-PII-Turkish-LiteClinical-Small-66M-v1: direct link, hf CLI and curl.
- Browser
- Download file 388 Bytes
-
https://huggingface.co/OpenMed/OpenMed-PII-Turkish-LiteClinical-Small-66M-v1/resolve/main/test_results.json
- Command line
-
hf download hf://OpenMed/OpenMed-PII-Turkish-LiteClinical-Small-66M-v1/test_results.json
-
curl -L -o test_results.json https://huggingface.co/OpenMed/OpenMed-PII-Turkish-LiteClinical-Small-66M-v1/resolve/main/test_results.json
388 Bytes
| { | |
| "test_accuracy": 0.9180609314521164, | |
| "test_f1": 0.8864227501300502, | |
| "test_loss": 0.48866307735443115, | |
| "test_macro_f1": 0.6552489267877949, | |
| "test_precision": 0.8799228862572294, | |
| "test_recall": 0.8930193557403396, | |
| "test_runtime": 1.1659, | |
| "test_samples_per_second": 2573.181, | |
| "test_steps_per_second": 20.585, | |
| "test_weighted_f1": 0.8816507289309132 | |
| } |