ESPA AI is a text classification model fine-tuned on the IMDb dataset using DistilBERT. It is designed to classify movie reviews as either positive or negative.
This model uses the DistilBERT architecture, a smaller, faster version of BERT, to perform sentiment analysis on text data. It has been fine-tuned on the IMDb dataset for binary classification (positive or negative reviews).
This model can be used to classify text data into positive or negative categories. It is useful for sentiment analysis in applications like customer feedback analysis, review classification, etc.
1from transformers import pipeline
2
3# Load pre-trained model from Hugging Face
4classifier = pipeline("text-classification", model="DilipKY/espa-ai")
5
6# Test on a sample review
7sample_text = "This movie was amazing! The plot was so engaging and the acting was superb."
8result = classifier(sample_text)
9print(result)