feat: Upload fine-tuned medical NER model OpenMed-ZeroShot-NER-BloodCancer-Small-166M
Browse files
README.md
CHANGED
|
@@ -98,7 +98,7 @@ The CLL (Chronic Lymphocytic Leukemia) corpus is a domain-specific biomedical NE
|
|
| 98 |
### Installation
|
| 99 |
|
| 100 |
```bash
|
| 101 |
-
pip install gliner
|
| 102 |
```
|
| 103 |
|
| 104 |
### Usage
|
|
@@ -111,7 +111,7 @@ from transformers import pipeline
|
|
| 111 |
model_name = "OpenMed/OpenMed-ZeroShot-NER-BloodCancer-Small-166M"
|
| 112 |
|
| 113 |
from gliner import GLiNER
|
| 114 |
-
model = GLiNER.from_pretrained(
|
| 115 |
|
| 116 |
# Example usage with default entity types
|
| 117 |
text = "The patient presented with chronic lymphocytic leukemia symptoms."
|
|
@@ -164,8 +164,6 @@ This model is particularly useful for:
|
|
| 164 |
- **Input**: Biomedical text
|
| 165 |
- **Output**: Named entity predictions
|
| 166 |
|
| 167 |
-
For more information about GLiNER, visit the [GLiNER repository](https://github.com/urchade/gliner).
|
| 168 |
-
|
| 169 |
## 📜 License
|
| 170 |
|
| 171 |
Licensed under the Apache License 2.0. See [LICENSE](https://www.apache.org/licenses/LICENSE-2.0) for details.
|
|
|
|
| 98 |
### Installation
|
| 99 |
|
| 100 |
```bash
|
| 101 |
+
pip install -q "gliner[tokenizers]"
|
| 102 |
```
|
| 103 |
|
| 104 |
### Usage
|
|
|
|
| 111 |
model_name = "OpenMed/OpenMed-ZeroShot-NER-BloodCancer-Small-166M"
|
| 112 |
|
| 113 |
from gliner import GLiNER
|
| 114 |
+
model = GLiNER.from_pretrained(model_name)
|
| 115 |
|
| 116 |
# Example usage with default entity types
|
| 117 |
text = "The patient presented with chronic lymphocytic leukemia symptoms."
|
|
|
|
| 164 |
- **Input**: Biomedical text
|
| 165 |
- **Output**: Named entity predictions
|
| 166 |
|
|
|
|
|
|
|
| 167 |
## 📜 License
|
| 168 |
|
| 169 |
Licensed under the Apache License 2.0. See [LICENSE](https://www.apache.org/licenses/LICENSE-2.0) for details.
|