feat: Upload fine-tuned medical NER model OpenMed-ZeroShot-NER-DNA-Large-459M
Browse files
README.md
CHANGED
|
@@ -103,7 +103,7 @@ The JNLPBA (Joint Workshop on Natural Language Processing in Biomedicine and its
|
|
| 103 |
### Installation
|
| 104 |
|
| 105 |
```bash
|
| 106 |
-
pip install gliner
|
| 107 |
```
|
| 108 |
|
| 109 |
### Usage
|
|
@@ -116,7 +116,7 @@ from transformers import pipeline
|
|
| 116 |
model_name = "OpenMed/OpenMed-ZeroShot-NER-DNA-Large-459M"
|
| 117 |
|
| 118 |
from gliner import GLiNER
|
| 119 |
-
model = GLiNER.from_pretrained(
|
| 120 |
|
| 121 |
# Example usage with default entity types
|
| 122 |
text = "The p53 protein plays a crucial role in tumor suppression."
|
|
|
|
| 103 |
### Installation
|
| 104 |
|
| 105 |
```bash
|
| 106 |
+
pip install -q "gliner[tokenizers]"
|
| 107 |
```
|
| 108 |
|
| 109 |
### Usage
|
|
|
|
| 116 |
model_name = "OpenMed/OpenMed-ZeroShot-NER-DNA-Large-459M"
|
| 117 |
|
| 118 |
from gliner import GLiNER
|
| 119 |
+
model = GLiNER.from_pretrained(model_name)
|
| 120 |
|
| 121 |
# Example usage with default entity types
|
| 122 |
text = "The p53 protein plays a crucial role in tumor suppression."
|