feat: Upload fine-tuned medical NER model OpenMed-ZeroShot-NER-Genomic-Tiny-60M
Browse files
README.md
CHANGED
|
@@ -96,7 +96,7 @@ The Gellus corpus is a biomedical NER dataset specifically designed for gene rec
|
|
| 96 |
### Installation
|
| 97 |
|
| 98 |
```bash
|
| 99 |
-
pip install gliner
|
| 100 |
```
|
| 101 |
|
| 102 |
### Usage
|
|
@@ -109,7 +109,7 @@ from transformers import pipeline
|
|
| 109 |
model_name = "OpenMed/OpenMed-ZeroShot-NER-Genomic-Tiny-60M"
|
| 110 |
|
| 111 |
from gliner import GLiNER
|
| 112 |
-
model = GLiNER.from_pretrained(
|
| 113 |
|
| 114 |
# Example usage with default entity types
|
| 115 |
text = "The BRCA2 gene is associated with hereditary breast cancer."
|
|
@@ -162,8 +162,6 @@ This model is particularly useful for:
|
|
| 162 |
- **Input**: Biomedical text
|
| 163 |
- **Output**: Named entity predictions
|
| 164 |
|
| 165 |
-
For more information about GLiNER, visit the [GLiNER repository](https://github.com/urchade/gliner).
|
| 166 |
-
|
| 167 |
## 📜 License
|
| 168 |
|
| 169 |
Licensed under the Apache License 2.0. See [LICENSE](https://www.apache.org/licenses/LICENSE-2.0) for details.
|
|
|
|
| 96 |
### Installation
|
| 97 |
|
| 98 |
```bash
|
| 99 |
+
pip install -q "gliner[tokenizers]"
|
| 100 |
```
|
| 101 |
|
| 102 |
### Usage
|
|
|
|
| 109 |
model_name = "OpenMed/OpenMed-ZeroShot-NER-Genomic-Tiny-60M"
|
| 110 |
|
| 111 |
from gliner import GLiNER
|
| 112 |
+
model = GLiNER.from_pretrained(model_name)
|
| 113 |
|
| 114 |
# Example usage with default entity types
|
| 115 |
text = "The BRCA2 gene is associated with hereditary breast cancer."
|
|
|
|
| 162 |
- **Input**: Biomedical text
|
| 163 |
- **Output**: Named entity predictions
|
| 164 |
|
|
|
|
|
|
|
| 165 |
## 📜 License
|
| 166 |
|
| 167 |
Licensed under the Apache License 2.0. See [LICENSE](https://www.apache.org/licenses/LICENSE-2.0) for details.
|