stanfordnlp/sst2
Viewer • Updated • 70k • 30.3k • 161
How to use rttl-ai/bert-large-uncased-sentiment with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="rttl-ai/bert-large-uncased-sentiment") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("rttl-ai/bert-large-uncased-sentiment")
model = AutoModelForSequenceClassification.from_pretrained("rttl-ai/bert-large-uncased-sentiment")Model Description: This model is a fine-tune checkpoint of bert-large-uncased, fine-tuned on SST-2. This model reaches an accuracy of 99.92 on the dev set.