MaziyarPanahi commited on
Commit
8be13c8
·
verified ·
1 Parent(s): 37a36c2

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

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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==0.2.21
105
  ```
106
 
107
  ### Usage
@@ -114,7 +114,7 @@ from transformers import pipeline
114
  model_name = "OpenMed/OpenMed-ZeroShot-NER-Protein-Small-166M"
115
 
116
  from gliner import GLiNER
117
- model = GLiNER.from_pretrained("OpenMed-ZeroShot-NER-Protein-Small-166M")
118
 
119
  # Example usage with default entity types
120
  text = "The Maillard reaction is responsible for the browning of many foods."
 
101
  ### Installation
102
 
103
  ```bash
104
+ pip install -q "gliner[tokenizers]"
105
  ```
106
 
107
  ### Usage
 
114
  model_name = "OpenMed/OpenMed-ZeroShot-NER-Protein-Small-166M"
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."