Instructions to use jkefeli/PrimaryGleasonBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jkefeli/PrimaryGleasonBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="jkefeli/PrimaryGleasonBERT")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("jkefeli/PrimaryGleasonBERT") model = AutoModelForSequenceClassification.from_pretrained("jkefeli/PrimaryGleasonBERT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -2,10 +2,9 @@ To use the model, add the following from the transformers package:
|
|
| 2 |
|
| 3 |
(1) ClinicalBERT tokenizer:
|
| 4 |
|
| 5 |
-
|
| 6 |
tokenizer = AutoTokenizer.from_pretrained("emilyalsentzer/Bio_ClinicalBERT")
|
| 7 |
-
|
| 8 |
(2) Model type:
|
| 9 |
-
|
| 10 |
model = BertForSequenceClassification.from_pretrained(checkpoint_directory, num_labels=3)
|
| 11 |
-
'''
|
|
|
|
| 2 |
|
| 3 |
(1) ClinicalBERT tokenizer:
|
| 4 |
|
| 5 |
+
|
| 6 |
tokenizer = AutoTokenizer.from_pretrained("emilyalsentzer/Bio_ClinicalBERT")
|
| 7 |
+
|
| 8 |
(2) Model type:
|
| 9 |
+
|
| 10 |
model = BertForSequenceClassification.from_pretrained(checkpoint_directory, num_labels=3)
|
|
|