my-model
A binary sentiment classifier fine-tuned for text classification.
Labels
| id | label |
|---|---|
| 0 | NEGATIVE |
| 1 | POSITIVE |
Usage
from transformers import pipeline
classifier = pipeline("text-classification", model="./my-model")
print(classifier("I love this product, it works perfectly!"))
# [{'label': 'POSITIVE', 'score': 0.99}]
Limitations
Trained on a small English dataset: predictions on other languages, sarcasm or very short texts may be unreliable.