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.
1from transformers import pipeline
2
3# Load the sentiment analysis pipeline
4classifier = pipeline('sentiment-analysis', model='sarahai/movie-sentiment-analysis')
5
6# Analyze sentiment
7review = "I really enjoyed this movie from start to finish!"
8result = classifier(review)
9
10print(result)
11