Asphate lever commited on
Commit
329dff2
·
verified ·
1 Parent(s): 676aefe

Update README.md

Browse files

Initial README and assets for NanoClass-BBC

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