MaziyarPanahi commited on
Commit
44c9a7b
·
verified ·
1 Parent(s): de3f0c6

feat: Upload fine-tuned medical NER model OpenMed-ZeroShot-NER-Pathology-Small-166M

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -95,7 +95,7 @@ The NCBI Disease corpus is a gold-standard dataset containing 793 PubMed abstrac
95
  ### Installation
96
 
97
  ```bash
98
- pip install gliner==0.2.21
99
  ```
100
 
101
  ### Usage
@@ -108,7 +108,7 @@ from transformers import pipeline
108
  model_name = "OpenMed/OpenMed-ZeroShot-NER-Pathology-Small-166M"
109
 
110
  from gliner import GLiNER
111
- model = GLiNER.from_pretrained("OpenMed-ZeroShot-NER-Pathology-Small-166M")
112
 
113
  # Example usage with default entity types
114
  text = "Early detection of breast cancer improves survival rates."
 
95
  ### Installation
96
 
97
  ```bash
98
+ pip install -q "gliner[tokenizers]"
99
  ```
100
 
101
  ### Usage
 
108
  model_name = "OpenMed/OpenMed-ZeroShot-NER-Pathology-Small-166M"
109
 
110
  from gliner import GLiNER
111
+ model = GLiNER.from_pretrained(model_name)
112
 
113
  # Example usage with default entity types
114
  text = "Early detection of breast cancer improves survival rates."