Instructions to use SOTAagi2030/ledger-tone-classifier-xc8666 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SOTAagi2030/ledger-tone-classifier-xc8666 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="SOTAagi2030/ledger-tone-classifier-xc8666")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("SOTAagi2030/ledger-tone-classifier-xc8666") model = AutoModelForSequenceClassification.from_pretrained("SOTAagi2030/ledger-tone-classifier-xc8666", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Ledger Tone Classifier
A two-label English sentiment classifier. For each text it answers with one label, positive or negative, and gives a confidence for each label.
Intended use
Short English texts such as product reviews, support chats and social posts. It is not tuned for other languages or for heavily sarcastic text.
Usage
Send the text as JSON and read the label and both confidences from the reply:
{"sentiment": "positive", "confidence": {"positive": 0.912, "negative": 0.088}}
Benchmark results
Accuracy on each benchmark as a fraction of correct labels, to three decimal places.
| Benchmark | Accuracy |
|---|---|
| Ledger Reviews | 0.914 |
| Harbor Tweets | 0.864 |
| Quill Forum | 0.897 |
| Meadow Replies | 0.836 |
| Cinder Notes | 0.849 |
| Tidewater Chats | 0.903 |
Archived results (v1)
| Benchmark | Accuracy |
|---|---|
| Ledger Reviews | 0.871 |
| Harbor Tweets | 0.846 |
| Quill Forum | 0.802 |
| Meadow Replies | 0.833 |
| Cinder Notes | 0.819 |
| Tidewater Chats | 0.790 |
Limitations
Scores come from the benchmark sets named above. Results on other kinds of text may be lower.
License
Apache-2.0.
- Downloads last month
- 30