Loading…
Loading…
A DistilBERT model fine-tuned for binary sentiment classification (POSITIVE / NEGATIVE), re-published as a deployment exercise.
from transformers import pipeline
clf = pipeline('text-classification', model='jeremiefcb/my-sentiment-classifier')
clf('I love this!') # -> [{'label': 'POSITIVE', 'score': 0.999}]