Views
No views yet
OpenMed/OpenMed-PII-Vietnamese-SuperClinical-Base-184M-v1 for Apple Silicon inference with OpenMed.OpenMed/OpenMed-PII-Vietnamese-SuperClinical-Base-184M-v1deberta-v2 (DebertaV2ForTokenClassification)en)config.json, id2label.json, MLX weight files)safetensorsopenmed[mlx] on Apple Silicon MacsOpenMed/OpenMed-PII-Vietnamese-SuperClinical-Base-184M-v1config.json, id2label.json, openmed-mlx.json, MLX weights, and tokenizer assetshf download OpenMed/OpenMed-PII-Vietnamese-SuperClinical-Base-184M-v1-mlx --local-dir ./OpenMed-PII-Vietnamese-SuperClinical-Base-184M-v1-mlxpip install "openmed[mlx]"1from openmed import extract_pii
2
3text = "<your clinical note here>"
4result = extract_pii(
5 text,
6 model_name="OpenMed/OpenMed-PII-Vietnamese-SuperClinical-Base-184M-v1",
7 use_smart_merging=True,
8)
9
10for entity in result.entities:
11 print(entity.label, entity.text, round(entity.confidence, 4))openmed[mlx] is installed. On other systems, OpenMed falls back to the Hugging Face / PyTorch backend.1pip install "openmed[mlx]"
2hf download OpenMed/OpenMed-PII-Vietnamese-SuperClinical-Base-184M-v1-mlx --local-dir ./OpenMed-PII-Vietnamese-SuperClinical-Base-184M-v1-mlx1from openmed import extract_pii
2from openmed.core import OpenMedConfig
3
4text = "<your clinical note here>"
5result = extract_pii(
6 text,
7 model_name="./OpenMed-PII-Vietnamese-SuperClinical-Base-184M-v1-mlx",
8 config=OpenMedConfig(backend="mlx"),
9 use_smart_merging=True,
10)
11
12print(result.entities)deberta-v2. Python MLX supports this artifact today, but the current public OpenMedKit Swift MLX rollout is limited to bert, distilbert, roberta, xlm-roberta, and electra.config.jsonid2label.jsonweights.safetensors and/or weights.npz)OpenMed/OpenMed-PII-Vietnamese-SuperClinical-Base-184M-v1