nyu-mll/glue
Viewer • Updated • 1.49M • 480k • 498
How to use rasyosef/roberta-base-finetuned-sst2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="rasyosef/roberta-base-finetuned-sst2") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("rasyosef/roberta-base-finetuned-sst2")
model = AutoModelForSequenceClassification.from_pretrained("rasyosef/roberta-base-finetuned-sst2")This model is a fine-tuned version of roberta-base on the glue sst2 dataset for sentiment classification. It achieves the following results on the evaluation set:
More information needed
More information needed
You can use this model directly with a pipeline for text classification:
>>> from transformers import pipeline
>>> roberta_sentiment = pipeline("text-classification", model="rasyosef/roberta-base-finetuned-sst2")
>>> roberta_sentiment(["This movie was awesome.", "The movie was boring."])
[{'label': 'positive', 'score': 0.9995689988136292},
{'label': 'negative', 'score': 0.9987605810165405}]
More information needed
The following hyperparameters were used during training:
Base model
FacebookAI/roberta-base