Instructions to use paragon-analytics/bert_resil with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use paragon-analytics/bert_resil with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="paragon-analytics/bert_resil")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("paragon-analytics/bert_resil") model = AutoModelForSequenceClassification.from_pretrained("paragon-analytics/bert_resil") - Notebooks
- Google Colab
- Kaggle
Commit ·
59e90a1
1
Parent(s): 3e92da1
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,7 +10,7 @@ Example classification:
|
|
| 10 |
import torch
|
| 11 |
import tensorflow as tf
|
| 12 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 13 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 14 |
model = AutoModelForSequenceClassification.from_pretrained("paragon-analytics/bert_resil")
|
| 15 |
|
| 16 |
encoded_input = tokenizer("We will survive this.", return_tensors='pt')
|
|
|
|
| 10 |
import torch
|
| 11 |
import tensorflow as tf
|
| 12 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 13 |
+
tokenizer = AutoTokenizer.from_pretrained("paragon-analytics/bert_resil")
|
| 14 |
model = AutoModelForSequenceClassification.from_pretrained("paragon-analytics/bert_resil")
|
| 15 |
|
| 16 |
encoded_input = tokenizer("We will survive this.", return_tensors='pt')
|