Downloads · 30 days
2
5% of all-time downloads
kashafEjaz50/my-sentiment-analyzer
my-sentiment-analyzer is a machine learning model from kashafEjaz50. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
--- language: en license: apache-2.0 tags: - sentiment-analysis - text-classification - distilbert datasets: - imdb metrics: - accuracy - f1 pipelinetag: text-classification widget: - text: "I absolutely loved this mo…
Downloads · 30 days
2
5% of all-time downloads
All-time downloads
44
Public
Parameters
67M
268 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
language: en license: apache-2.0 tags:
Fine-tuned DistilBERT model for sentiment analysis (positive / negative).
IMDB dataset (25,000 train / 25,000 test)
| Metric | Score |
|---|---|
| Accuracy | 0.874 |
| Precision | 0.864 |
| Recall | 0.888 |
| F1 | 0.875 |
from transformers import pipeline
classifier = pipeline( "sentiment-analysis", model="kashafEjaz50/my-sentiment-analyzer" )
print(classifier("This movie was fantastic!"))