Views
No views yet
| Metric | Score |
|---|---|
| Accuracy | 0.9447 |
| F1 Score | 0.9447 |
| ID | Label |
|---|---|
| 0 | World |
| 1 | Sports |
| 2 | Business |
| 3 | Sci/Tech |
1from transformers import pipeline
2
3classifier = pipeline(
4 "text-classification",
5 model="samandar1105/news-classifier"
6)
7
8result = classifier("Apple reported record quarterly earnings.")
9print(result) # [{'label': 'Business', 'score': 0.98}]