File size: 992 Bytes
329dff2 dac55db 329dff2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
---
language: en
license: apache-2.0
tags:
- text-classification
- news-classification
- bbc
- transformers
- pytorch
datasets:
- bbc
metrics:
- accuracy
model_type: bert
---
## π Demo
π https://huggingface.co/spaces/Asphate/nanoclass-bbc-demo
# NanoClass-BBC
**NanoClass-BBC** is a lightweight text classification model trained on the **BBC News dataset**.
It classifies news articles into predefined categories such as politics, business, sport, tech, and entertainment.
## π Dataset
- **BBC News Dataset**
- Publicly available dataset containing labeled news articles
- Used strictly for research and educational purposes
## π·οΈ Labels
The model predicts one of the following classes:
- Business
- Entertainment
- Politics
- Sport
- Tech
## π Usage
```python
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="Asphate/nanoclass-bbc"
)
classifier("The stock market saw major gains today after the policy announcement.")
|