Token Classification
GLiNER
PyTorch
English
entity recognition
named-entity-recognition
zero-shot
zero-shot-ner
zero shot
biomedical-nlp
gene-recognition
genetics
genomics
molecular-biology
gene
genetic_variant
Instructions to use OpenMed/OpenMed-ZeroShot-NER-Genomic-Small-166M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER
How to use OpenMed/OpenMed-ZeroShot-NER-Genomic-Small-166M with GLiNER:
from gliner import GLiNER model = GLiNER.from_pretrained("OpenMed/OpenMed-ZeroShot-NER-Genomic-Small-166M") 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
File size: 286 Bytes
2318cde | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | {
"bos_token": "[CLS]",
"cls_token": "[CLS]",
"eos_token": "[SEP]",
"mask_token": "[MASK]",
"pad_token": "[PAD]",
"sep_token": "[SEP]",
"unk_token": {
"content": "[UNK]",
"lstrip": false,
"normalized": true,
"rstrip": false,
"single_word": false
}
}
|