-
Model Type: Transformer-based classifier (DistilBERT)
-
Base Model: distilbert-base-uncased
-
Language: English
-
Task: Sentiment Analysis (binary classification)
Sentiment classification of English reviews, comments, or feedback.
Other languages.
Multi-label sentiment tasks (neutral/mixed).
-
May not generalize well outside movie/review-style data.
-
Training data may contain cultural and linguistic bias.
-
Source: Kaggle Cleaned IMDB Reviews Dataset
-
Size: ~50,000 reviews
-
Classes: positive, negative
-
Converted to integers: positive → 1, negative → 0
-
Epochs: 3
-
Batch Size: 16
-
Optimizer: AdamW
-
Learning Rate: 5e-5
-
Framework: Hugging Face Trainer API
The model was tested on a held-out validation set of 9,917 reviews.
Class Precision Recall F1-score Support
Negative (0) 0.93 0.93 0.93 4,939
Positive (1) 0.93 0.93 0.93 4,978
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
model_name = "YamenRM/distilbert-sentiment-classifier"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
nlp = pipeline("text-classification", model=model, tokenizer=tokenizer)
print(nlp("I really loved this movie, it was amazing!"))