airzipm/sentiment-analysis-roberta
028
๐ญ Sentiment Analysis โ airzipm
A powerful 3-class sentiment analysis model fine-tuned from roberta-base on a combined corpus of 200 000+ samples spanning movie reviews, short sentences, tweets, and restaurant reviews.
๐ท๏ธ Labels
๐ Performance
๐ Quick Usage
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="airzipm/sentiment-analysis-roberta",
)
# Single prediction
print(classifier("This movie was absolutely amazing!"))
# [{'label': 'Positive', 'score': 0.97}]
# Batch prediction
texts = [
"Great product, highly recommend!",
"It was okay, nothing special.",
"Terrible experience, waste of money.",
]
for t, r in zip(texts, classifier(texts)):
print(f"{t[:45]:50s} โ {r['label']} ({r['score']:.1%})")๐ ๏ธ Training Details
๐ฆ Training Data
๐ผ๏ธ Training Curves & Confusion Matrix
See training_curves.png and confusion_matrix.png in this repository.
๐ค Author
Created by airzipm โ Hugging Face Profile
