feat: Upload fine-tuned medical NER model OpenMed-ZeroShot-NER-Protein-Multi-209M
Browse files
README.md
CHANGED
|
@@ -101,7 +101,7 @@ The FSU (Florida State University) corpus is a biomedical NER dataset designed f
|
|
| 101 |
### Installation
|
| 102 |
|
| 103 |
```bash
|
| 104 |
-
pip install gliner
|
| 105 |
```
|
| 106 |
|
| 107 |
### Usage
|
|
@@ -114,7 +114,7 @@ from transformers import pipeline
|
|
| 114 |
model_name = "OpenMed/OpenMed-ZeroShot-NER-Protein-Multi-209M"
|
| 115 |
|
| 116 |
from gliner import GLiNER
|
| 117 |
-
model = GLiNER.from_pretrained(
|
| 118 |
|
| 119 |
# Example usage with default entity types
|
| 120 |
text = "The Maillard reaction is responsible for the browning of many foods."
|
|
@@ -167,8 +167,6 @@ This model is particularly useful for:
|
|
| 167 |
- **Input**: Biomedical text
|
| 168 |
- **Output**: Named entity predictions
|
| 169 |
|
| 170 |
-
For more information about GLiNER, visit the [GLiNER repository](https://github.com/urchade/gliner).
|
| 171 |
-
|
| 172 |
## 📜 License
|
| 173 |
|
| 174 |
Licensed under the Apache License 2.0. See [LICENSE](https://www.apache.org/licenses/LICENSE-2.0) for details.
|
|
|
|
| 101 |
### Installation
|
| 102 |
|
| 103 |
```bash
|
| 104 |
+
pip install -q "gliner[tokenizers]"
|
| 105 |
```
|
| 106 |
|
| 107 |
### Usage
|
|
|
|
| 114 |
model_name = "OpenMed/OpenMed-ZeroShot-NER-Protein-Multi-209M"
|
| 115 |
|
| 116 |
from gliner import GLiNER
|
| 117 |
+
model = GLiNER.from_pretrained(model_name)
|
| 118 |
|
| 119 |
# Example usage with default entity types
|
| 120 |
text = "The Maillard reaction is responsible for the browning of many foods."
|
|
|
|
| 167 |
- **Input**: Biomedical text
|
| 168 |
- **Output**: Named entity predictions
|
| 169 |
|
|
|
|
|
|
|
| 170 |
## 📜 License
|
| 171 |
|
| 172 |
Licensed under the Apache License 2.0. See [LICENSE](https://www.apache.org/licenses/LICENSE-2.0) for details.
|