Loading…
Loading…
This model is a fine-tuned version of DistilBERT base uncased trained on a subset of the IMDb movie reviews dataset. It classifies text as POSITIVE or NEGATIVE with high confidence.
It was built as part of a learning project to demonstrate downloading, fine-tuning, and deploying models on Hugging Face Spaces.
You can use this model for sentiment analysis of English movie reviews or any short English text. It outputs a label (POSITIVE or NEGATIVE) with a confidence score.
from transformers import pipeline
classifier = pipeline("sentiment-analysis", model="Surajnitp/sentiment-trackmodel")
result = classifier("I absolutely loved this film!")
print(result)
# [{'label': 'POSITIVE', 'score': 0.999...}]
The model is trained only on movie reviews and may not perform well on other domains (e.g., product reviews, social media). It is not suitable for factual or harmful content moderation without further fine-tuning.
from transformers import pipeline
classifier = pipeline("sentiment-analysis", model="Surajnitp/sentiment-trackmodel")
print(classifier("This movie was fantastic!"))
print(classifier("The acting was terrible."))
You can also try it live on the Space demo.
The model was fine-tuned using the Hugging Face Trainer API with the following hyperparameters:
These results are based on a small test set (100 samples) and may vary with larger evaluation.
If you find this model useful, please consider citing:
@misc{sentiment-trackmodel,
author = {Suraj Kumar},
title = {Sentiment Analysis – DistilBERT fine-tuned on IMDb},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/Surajnitp/sentiment-trackmodel}}
}
For questions or feedback, please open an issue on the Space repository.
distilbert/distilbert-base-uncased