Downloads · 30 days
8
1% of all-time downloads
sarahai/movie-sentiment-analysis
movie-sentiment-analysis is a text classification model from sarahai. 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 distilbert-base-uncased fine-tuned for sentiment analysis on the IMDb movie review dataset. The model is trained to classify movie reviews into positive or negative sentiment.
Downloads · 30 days
8
1% of all-time downloads
All-time downloads
1.6K
Public
Parameters
67M
268 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
This model is a distilbert-base-uncased fine-tuned for sentiment analysis on the IMDb movie review dataset. The model is trained to classify movie reviews into positive or negative sentiment.
The model is intended for sentiment analysis tasks, specifically to classify the sentiment of English-language movie reviews. It can be used by developers or data scientists who wish to include sentiment analysis features in their applications.
The model was fine-tuned on the IMDb movie review dataset available from the Hugging Face datasets library. The dataset consists of 50,000 movie reviews from IMDb, labeled as positive or negative.
The model was fine-tuned for 2 epochs with a batch size of 8, Adam optimizer with a learning rate of 2e-5.
This model may inherit biases present in the IMDb dataset, and its predictions should be reviewed with critical consideration, especially if used in sensitive contexts.
Here's how you can use this model in Python:
from transformers import pipeline
# Load the sentiment analysis pipeline
classifier = pipeline('sentiment-analysis', model='sarahai/movie-sentiment-analysis')
# Analyze sentiment
review = "I really enjoyed this movie from start to finish!"
result = classifier(review)
print(result)