scikit-learn/imdb
Viewer โข Updated โข 50k โข 423
How to use saibapanku/distilbert-sentiment with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="saibapanku/distilbert-sentiment") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("saibapanku/distilbert-sentiment")
model = AutoModelForSequenceClassification.from_pretrained("saibapanku/distilbert-sentiment")This is a fine-tuned DistilBERT model for binary sentiment classification trained on the IMDb dataset. The model classifies movie reviews as either positive or negative.
saibapanku/distilbert-sentimentdistilbert-base-uncased0: Negative1: PositiveYou can load and use the model directly with ๐ค Transformers:
from transformers import pipeline
classifier = pipeline("text-classification", model="saibapanku/distilbert-sentiment")
print(classifier("This movie was absolutely amazing!"))
Example Output: [{'label': 'positive', 'score': 0.9843}]
This model was trained on a small subset of the IMDb dataset and may not generalize well to all types of reviews.
Performance on domain-specific or multi-lingual content is not guaranteed.
This model is distributed under the MIT License.
Feel free to fine-tune further or adapt it for your specific sentiment analysis tasks!
Base model
distilbert/distilbert-base-uncased