Views
No views yet
| Metric | Value |
|---|---|
| Loss | 0.6867 |
| Accuracy | 0.7937 |
| F1 Score | 0.7934 |
| Epochs | 5 |
transformers:1from transformers import pipeline
2
3classifier = pipeline("text-classification", model="herrerovir/gpt2-sentiment-tweets")
4
5output = classifier("I can't believe how amazing this is!")
6print(output) # e.g., [{'label': 'positive', 'score': 0.94}]