Downloads · 30 days
5
36% of all-time downloads
SachinBadhe11/imdb-lstm-sentiment-model
imdb-lstm-sentiment-model is a machine learning model from SachinBadhe11. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model predicts the sentiment of movie reviews as either positive or negative using an LSTM architecture.
Downloads · 30 days
5
36% of all-time downloads
All-time downloads
14
Public
Repo size
37.5 MB
Likes
0
Public
Click a slice to open those files.
.h516 MB · 100%
From the Hugging Face model README
This model predicts the sentiment of movie reviews as either positive or negative using an LSTM architecture.
To use this model, you can call the predict_sentiment(review_text) function in the provided inference.py script.
from transformers import pipeline
# Load the sentiment-analysis pipeline
model_name = "your-username/imdb-lstm-sentiment-model" # Replace with your model's name
sentiment_analyzer = pipeline("text-classification", model=model_name)
# Test the model with a review
review = "This movie was fantastic!"
result = sentiment_analyzer(review)
print(result)
'''