BERT IMDB Sentiment Classifier

This model is a fine-tuned version of bert-base-uncased on the IMDB movie reviews dataset.

Task

Binary Sentiment Classification:

  • 0 → Negative
  • 1 → Positive

Usage

from transformers import AutoTokenizer, AutoModelForSequenceClassification

model = AutoModelForSequenceClassification.from_pretrained("dina1/bert-imdb-sentiment")
tokenizer = AutoTokenizer.from_pretrained("dina1/bert-imdb-sentiment")

text = "This movie was absolutely wonderful!"
inputs = tokenizer(text, return_tensors="pt", truncation=True)
outputs = model(**inputs)

predicted_class = outputs.logits.argmax().item()
print("Predicted Sentiment:", predicted_class)
Downloads last month
23
Safetensors
Model size
109M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train dina1/bert-imdb-sentiment

Evaluation results