Instructions to use jkefeli/CancerStage_Classifier_N with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jkefeli/CancerStage_Classifier_N with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="jkefeli/CancerStage_Classifier_N")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("jkefeli/CancerStage_Classifier_N") model = AutoModelForSequenceClassification.from_pretrained("jkefeli/CancerStage_Classifier_N", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -6,6 +6,9 @@ tokenizer = AutoTokenizer.from_pretrained("yikuan8/Clinical-BigBird")
|
|
| 6 |
|
| 7 |
(2) Model type:
|
| 8 |
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
model = BigBirdForSequenceClassification.from_pretrained(directory, num_labels=num_classes)
|
|
|
|
| 6 |
|
| 7 |
(2) Model type:
|
| 8 |
|
| 9 |
+
|
| 10 |
+
#N in [0,1,2,3]
|
| 11 |
+
|
| 12 |
+
num_classes = 4
|
| 13 |
|
| 14 |
model = BigBirdForSequenceClassification.from_pretrained(directory, num_labels=num_classes)
|