Token Classification
GLiNER
PyTorch
English
entity recognition
named-entity-recognition
zero-shot
zero-shot-ner
zero shot
biomedical-nlp
chemical-entity-recognition
drug-discovery
pharmacology
biocuration
chemical
Instructions to use OpenMed/OpenMed-ZeroShot-NER-Pharma-Multi-209M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER
How to use OpenMed/OpenMed-ZeroShot-NER-Pharma-Multi-209M with GLiNER:
from gliner import GLiNER model = GLiNER.from_pretrained("OpenMed/OpenMed-ZeroShot-NER-Pharma-Multi-209M") - Notebooks
- Google Colab
- Kaggle
feat: Upload fine-tuned medical NER model OpenMed-ZeroShot-NER-Pharma-Multi-209M
Browse files
README.md
CHANGED
|
@@ -95,7 +95,7 @@ The BC5CDR-Chem corpus is part of the BioCreative V Chemical-Disease Relation (C
|
|
| 95 |
### Installation
|
| 96 |
|
| 97 |
```bash
|
| 98 |
-
pip install gliner
|
| 99 |
```
|
| 100 |
|
| 101 |
### Usage
|
|
@@ -108,7 +108,7 @@ from transformers import pipeline
|
|
| 108 |
model_name = "OpenMed/OpenMed-ZeroShot-NER-Pharma-Multi-209M"
|
| 109 |
|
| 110 |
from gliner import GLiNER
|
| 111 |
-
model = GLiNER.from_pretrained(
|
| 112 |
|
| 113 |
# Example usage with default entity types
|
| 114 |
text = "Administration of metformin reduced glucose levels significantly."
|
|
|
|
| 95 |
### Installation
|
| 96 |
|
| 97 |
```bash
|
| 98 |
+
pip install -q "gliner[tokenizers]"
|
| 99 |
```
|
| 100 |
|
| 101 |
### Usage
|
|
|
|
| 108 |
model_name = "OpenMed/OpenMed-ZeroShot-NER-Pharma-Multi-209M"
|
| 109 |
|
| 110 |
from gliner import GLiNER
|
| 111 |
+
model = GLiNER.from_pretrained(model_name)
|
| 112 |
|
| 113 |
# Example usage with default entity types
|
| 114 |
text = "Administration of metformin reduced glucose levels significantly."
|