cornell-movie-review-data/rotten_tomatoes
Viewer โข Updated โข 10.7k โข 62.7k โข 132
DistilBERT fine-tuned on Rotten Tomatoes movie reviews to classify text as POSITIVE or NEGATIVE.
cornell-movie-review-data/rotten_tomatoes: 10,662 reviews (8,530 train / 1,066 validation / 1,066 test), balanced classes.
| Epoch | Training loss | Validation loss | Validation accuracy |
|---|---|---|---|
| 1 | 0.423 | 0.387 | 83.1% |
| 2 | 0.255 | 0.376 | 85.5% |
| 3 | 0.160 | 0.495 | 85.4% |
Test accuracy: 83.6%
from transformers import pipeline
clf = pipeline("text-classification", model="aqsaahsan/sentiment-distilbert")
print(clf("This movie was fantastic!"))
Base model
distilbert/distilbert-base-uncased