MaziyarPanahi commited on
Commit
d6e5241
·
verified ·
1 Parent(s): 69fbec2

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

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -95,7 +95,7 @@ The BC5CDR-Chem corpus is part of the BioCreative V Chemical-Disease Relation (C
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-Pharma-Large-459M"
109
 
110
  from gliner import GLiNER
111
- model = GLiNER.from_pretrained("OpenMed-ZeroShot-NER-Pharma-Large-459M")
112
 
113
  # Example usage with default entity types
114
  text = "Administration of metformin reduced glucose levels significantly."
 
95
  ### Installation
96
 
97
  ```bash
98
+ pip install -q "gliner[tokenizers]"
99
  ```
100
 
101
  ### Usage
 
108
  model_name = "OpenMed/OpenMed-ZeroShot-NER-Pharma-Large-459M"
109
 
110
  from gliner import GLiNER
111
+ model = GLiNER.from_pretrained(model_name)
112
 
113
  # Example usage with default entity types
114
  text = "Administration of metformin reduced glucose levels significantly."