MaziyarPanahi commited on
Commit
d6ca182
·
verified ·
1 Parent(s): 33d5c98

feat: Upload fine-tuned medical NER model OpenMed-ZeroShot-NER-Anatomy-Base-220M

Browse files
Files changed (1) hide show
  1. README.md +2 -4
README.md CHANGED
@@ -97,7 +97,7 @@ The Anatomy corpus is a specialized biomedical NER dataset designed for recogniz
97
  ### Installation
98
 
99
  ```bash
100
- pip install gliner==0.2.21
101
  ```
102
 
103
  ### Usage
@@ -110,7 +110,7 @@ from transformers import pipeline
110
  model_name = "OpenMed/OpenMed-ZeroShot-NER-Anatomy-Base-220M"
111
 
112
  from gliner import GLiNER
113
- model = GLiNER.from_pretrained("OpenMed-ZeroShot-NER-Anatomy-Base-220M")
114
 
115
  # Example usage with default entity types
116
  text = "The patient complained of pain in the left ventricle region."
@@ -163,8 +163,6 @@ This model is particularly useful for:
163
  - **Input**: Biomedical text
164
  - **Output**: Named entity predictions
165
 
166
- For more information about GLiNER, visit the [GLiNER repository](https://github.com/urchade/gliner).
167
-
168
  ## 📜 License
169
 
170
  Licensed under the Apache License 2.0. See [LICENSE](https://www.apache.org/licenses/LICENSE-2.0) for details.
 
97
  ### Installation
98
 
99
  ```bash
100
+ pip install -q "gliner[tokenizers]"
101
  ```
102
 
103
  ### Usage
 
110
  model_name = "OpenMed/OpenMed-ZeroShot-NER-Anatomy-Base-220M"
111
 
112
  from gliner import GLiNER
113
+ model = GLiNER.from_pretrained(model_name)
114
 
115
  # Example usage with default entity types
116
  text = "The patient complained of pain in the left ventricle region."
 
163
  - **Input**: Biomedical text
164
  - **Output**: Named entity predictions
165
 
 
 
166
  ## 📜 License
167
 
168
  Licensed under the Apache License 2.0. See [LICENSE](https://www.apache.org/licenses/LICENSE-2.0) for details.