Downloads · 30 days
6
17% of all-time downloads
herrerovir/gpt2-tweet-sentiment-model
gpt2-tweet-sentiment-model is a text classification model from herrerovir. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of GPT‑2, trained for tweet sentiment classification (negative, neutral, positive) using the MTEB Tweet Sentiment Extraction dataset.
Downloads · 30 days
6
17% of all-time downloads
All-time downloads
35
Public
Repo size
996 MB
Likes
0
Public
Click a slice to open those files.
.bin498 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of GPT‑2, trained for tweet sentiment classification (negative, neutral, positive) using the MTEB Tweet Sentiment Extraction dataset.
These results reflect robust performance for a GPT‑2-based classifier on this tweet sentiment task.
| Metric | Value |
|---|---|
| Loss | 0.6867 |
| Accuracy | 0.7937 |
| F1 Score | 0.7934 |
| Epochs | 5 |
This model is licensed under the Apache 2.0 License.
Fine-tuned and published by @herrerovir using Hugging Face Transformers.
Loading and using the model via Hugging Face transformers:
from transformers import pipeline
classifier = pipeline("text-classification", model="herrerovir/gpt2-sentiment-tweets")
output = classifier("I can't believe how amazing this is!")
print(output) # e.g., [{'label': 'positive', 'score': 0.94}]