Downloads · 30 days
6
3% of all-time downloads
omaressamrme/tuning
tuning is a text classification model from omaressamrme. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Fine-tuned DistilBERT for sentiment analysis on the IMDb dataset.
Downloads · 30 days
6
3% of all-time downloads
All-time downloads
206
Public
Parameters
67M
536 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
Fine-tuned DistilBERT for sentiment analysis on the IMDb dataset.
from transformers import pipeline
clf = pipeline("text-classification", model="omaressamrme/tuning")
print(clf("I absolutely loved this movie!"))
curl -H "Authorization: Bearer $HF_TOKEN" -H "Content-Type: application/json" -d '{"inputs": "I absolutely loved this movie!"}' https://api-inference.huggingface.co/models/omaressamrme/tuning
Open the Space: https://huggingface.co/spaces/omaressamrme/tuning-space
You can batch texts using the pipeline:
texts = ["Great film!", "Worst plot ever."]
preds = clf(texts)
Try comparing against another sentiment model (e.g., distilbert-base-uncased-finetuned-sst-2-english) in the Space "Compare" tab.
See the training script in the associated GitHub repo.