hfastino commited on
Commit
a69451a
·
verified ·
1 Parent(s): bcb838a

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +27 -0
README.md ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: mit
5
+ tags:
6
+ - text-classification
7
+ - bbc-news
8
+ pipeline_tag: token-classification
9
+ ---
10
+
11
+ # BBC News Article Classifier
12
+
13
+ This model classifies BBC news articles into categories.
14
+
15
+ ## Usage
16
+ ```python
17
+ from transformers import pipeline
18
+ classifier = pipeline("token-classification", model="hfastino/bbc-news-article-classifier")
19
+ result = classifier("Your article text here...")
20
+ ```
21
+
22
+ ## Example
23
+ ```python
24
+ text = "The Prime Minister announced new economic policies today..."
25
+ result = classifier(text)
26
+ print(result)
27
+ ```