Token Classification
MLX
GLiNER
English
openmed
deberta-v2
apple-silicon
zero-shot-ner
medical
clinical
Instructions to use OpenMed/OpenMed-ZeroShot-NER-Disease-Medium-209M-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use OpenMed/OpenMed-ZeroShot-NER-Disease-Medium-209M-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download OpenMed/OpenMed-ZeroShot-NER-Disease-Medium-209M-mlx --local-dir OpenMed-ZeroShot-NER-Disease-Medium-209M-mlx
- GLiNER
How to use OpenMed/OpenMed-ZeroShot-NER-Disease-Medium-209M-mlx with GLiNER:
from gliner import GLiNER model = GLiNER.from_pretrained("OpenMed/OpenMed-ZeroShot-NER-Disease-Medium-209M-mlx") text = "Cristiano Ronaldo dos Santos Aveiro was born on 5 February 1985 in Funchal, Madeira, Portugal." labels = ["person", "date", "location"] entities = model.predict_entities(text, labels) for entity in entities: print(entity["text"], "=>", entity["label"]) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Ctrl+K