feat: Upload fine-tuned medical NER model OpenMed-ZeroShot-NER-Pharma-Large-459M
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-Large-459M"
|
| 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-Large-459M"
|
| 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."
|