MaziyarPanahi commited on
Commit
ead58df
·
verified ·
1 Parent(s): c418d52

feat: Upload fine-tuned medical NER model OpenMed-ZeroShot-NER-DNA-Large-459M

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -103,7 +103,7 @@ The JNLPBA (Joint Workshop on Natural Language Processing in Biomedicine and its
103
  ### Installation
104
 
105
  ```bash
106
- pip install gliner==0.2.21
107
  ```
108
 
109
  ### Usage
@@ -116,7 +116,7 @@ from transformers import pipeline
116
  model_name = "OpenMed/OpenMed-ZeroShot-NER-DNA-Large-459M"
117
 
118
  from gliner import GLiNER
119
- model = GLiNER.from_pretrained("OpenMed-ZeroShot-NER-DNA-Large-459M")
120
 
121
  # Example usage with default entity types
122
  text = "The p53 protein plays a crucial role in tumor suppression."
 
103
  ### Installation
104
 
105
  ```bash
106
+ pip install -q "gliner[tokenizers]"
107
  ```
108
 
109
  ### Usage
 
116
  model_name = "OpenMed/OpenMed-ZeroShot-NER-DNA-Large-459M"
117
 
118
  from gliner import GLiNER
119
+ model = GLiNER.from_pretrained(model_name)
120
 
121
  # Example usage with default entity types
122
  text = "The p53 protein plays a crucial role in tumor suppression."