Downloads · 30 days
13
42% of all-time downloads
SabaAnver/finetuned-imdb-sentiment
finetuned-imdb-sentiment is a text classification model from SabaAnver. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
This model is a fine-tuned version of distilbert-base-uncased on the IMDB dataset. It classifies movie reviews as positive (1) or negative (0).
Downloads · 30 days
13
42% of all-time downloads
All-time downloads
31
Public
Parameters
67M
536 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of distilbert-base-uncased on the IMDB dataset. It classifies movie reviews as positive (1) or negative (0).
The model achieves around 89.52% accuracy on the test set.
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
tokenizer = AutoTokenizer.from_pretrained("SabaAnver/finetuned-imdb-sentiment")
model = AutoModelForSequenceClassification.from_pretrained("SabaAnver/finetuned-imdb-sentiment")
nlp = pipeline("sentiment-analysis", model=model, tokenizer=tokenizer)
print(nlp("This movie was amazing!"))