Instructions to use assemblyai/bert-large-uncased-sst2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use assemblyai/bert-large-uncased-sst2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="assemblyai/bert-large-uncased-sst2")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("assemblyai/bert-large-uncased-sst2") model = AutoModelForSequenceClassification.from_pretrained("assemblyai/bert-large-uncased-sst2") - Notebooks
- Google Colab
- Kaggle
Dillon Pulliam commited on
Commit ·
c062c23
1
Parent(s): c9f8ec8
Update README.md
Browse files
README.md
CHANGED
|
@@ -5,7 +5,7 @@ This model is a fine-tuned version of [bert-large-uncased](https://huggingface.c
|
|
| 5 |
To download and utilize this model for sentiment analysis please execute the following:
|
| 6 |
```python
|
| 7 |
import torch.nn.functional as F
|
| 8 |
-
from transformers import
|
| 9 |
tokenizer = AutoTokenizer.from_pretrained("assemblyai/bert-large-uncased-sst2")
|
| 10 |
model = AutoModelForSequenceClassification.from_pretrained("assemblyai/bert-large-uncased-sst2")
|
| 11 |
|
|
|
|
| 5 |
To download and utilize this model for sentiment analysis please execute the following:
|
| 6 |
```python
|
| 7 |
import torch.nn.functional as F
|
| 8 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 9 |
tokenizer = AutoTokenizer.from_pretrained("assemblyai/bert-large-uncased-sst2")
|
| 10 |
model = AutoModelForSequenceClassification.from_pretrained("assemblyai/bert-large-uncased-sst2")
|
| 11 |
|