Views
No views yet
OpenMed/OpenMed-PII-Spanish-SuperClinical-Large-434M-v1 for Apple Silicon inference with OpenMed.OpenMed/OpenMed-PII-Spanish-SuperClinical-Large-434M-v1deberta-v2 (DebertaV2ForTokenClassification)es)config.json, id2label.json, MLX weight files)openmed[mlx] on Apple Silicon Macsdeberta-v2 modelspip install "openmed[mlx]"1from openmed import extract_pii
2
3text = "<your Spanish clinical note here>"
4result = extract_pii(
5 text,
6 model_name="OpenMed/OpenMed-PII-Spanish-SuperClinical-Large-434M-v1",
7 lang="es",
8 use_smart_merging=True,
9)
10
11for entity in result.entities:
12 print(entity.label, entity.text, round(entity.confidence, 4))openmed[mlx] is installed. On other systems it falls back to the Hugging Face / PyTorch backend.1pip install "openmed[mlx]"
2hf download OpenMed/OpenMed-PII-Spanish-SuperClinical-Large-434M-v1-mlx --local-dir ./OpenMed-PII-Spanish-SuperClinical-Large-434M-v1-mlxhf auth login or set HF_TOKEN.1from openmed import extract_pii
2from openmed.core import OpenMedConfig
3
4text = "<your Spanish clinical note here>"
5result = extract_pii(
6 text,
7 model_name="./OpenMed-PII-Spanish-SuperClinical-Large-434M-v1-mlx",
8 config=OpenMedConfig(backend="mlx"),
9 lang="es",
10 use_smart_merging=True,
11)
12
13print(result.entities)deberta-v2. Python MLX supports this family today, but the current public Swift MLX rollout in OpenMedKit is intentionally limited to bert, distilbert, roberta, xlm-roberta, and electra.config.jsonid2label.jsonweights.safetensors and/or weights.npz)config.json when needed.OpenMed/OpenMed-PII-Spanish-SuperClinical-Large-434M-v1