Update README.md
Browse files
README.md
CHANGED
|
@@ -33,6 +33,19 @@ gatortron-large | 8.9 billion
|
|
| 33 |
|
| 34 |
<h2>How to use</h2>
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
- An NLP pacakge using GatorTronS for clinical concept extraction (Named Entity Recognition): https://github.com/uf-hobi-informatics-lab/ClinicalTransformerNER
|
| 37 |
- An NLP pacakge using GatorTronS for Relation Extraction: https://github.com/uf-hobi-informatics-lab/ClinicalTransformerRelationExtraction
|
| 38 |
- An NLP pacakge using GatorTronS for extraction of social determinants of health (SDoH) from clinical narratives: https://github.com/uf-hobi-informatics-lab/SDoH_SODA
|
|
|
|
| 33 |
|
| 34 |
<h2>How to use</h2>
|
| 35 |
|
| 36 |
+
```python
|
| 37 |
+
from huggingface_hub import login
|
| 38 |
+
from transformers import AutoModel, AutoTokenizer, AutoConfig
|
| 39 |
+
|
| 40 |
+
tokinizer= AutoTokenizer.from_pretrained('UFNLP/gatortronS')
|
| 41 |
+
config=AutoConfig.from_pretrained('UFNLP/gatortronS')
|
| 42 |
+
mymodel=AutoModel.from_pretrained('UFNLP/gatortronS')
|
| 43 |
+
|
| 44 |
+
encoded_input=tokinizer("Bone scan: Negative for distant metastasis.", return_tensors="pt")
|
| 45 |
+
encoded_output = mymodel(**encoded_input)
|
| 46 |
+
print (encoded_output)
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
- An NLP pacakge using GatorTronS for clinical concept extraction (Named Entity Recognition): https://github.com/uf-hobi-informatics-lab/ClinicalTransformerNER
|
| 50 |
- An NLP pacakge using GatorTronS for Relation Extraction: https://github.com/uf-hobi-informatics-lab/ClinicalTransformerRelationExtraction
|
| 51 |
- An NLP pacakge using GatorTronS for extraction of social determinants of health (SDoH) from clinical narratives: https://github.com/uf-hobi-informatics-lab/SDoH_SODA
|