emilys commited on
Commit
d8538ba
·
verified ·
1 Parent(s): b574135

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +38 -0
README.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ datasets:
4
+ - dell-research-harvard/newswire
5
+ language:
6
+ - en
7
+ pipeline_tag: text-classification
8
+ tags:
9
+ - distilroberta
10
+ - topic
11
+ - news
12
+
13
+ widget:
14
+ - text: "Diplomatic efforts to deal with the world’s two wars — the civil war in Spain and the undeclared Chinese - Japanese conflict — received sharp setbacks today."
15
+ - text: "WASHINGTON. AP. A decisive development appeared in the offing in the tug-of-war between the federal government and the states over the financing of relief."
16
+ - text: "A frantic bride called the Rochester Gas and Electric corporation to complain that her new refrigerator “freezes ice cubes too fast.”"
17
+
18
+ ---
19
+
20
+ # Fine-tuned DistilRoBERTa-base for detecting news on politics
21
+
22
+ # Model Description
23
+
24
+ This model is a finetuned RoBERTa-large, for classifying whether news articles are about politics.
25
+
26
+ # How to Use
27
+
28
+ ```python
29
+ from transformers import pipeline
30
+ classifier = pipeline("sentiment-analysis", model="dell-research-harvard/topic-politics")
31
+ classifier("Kennedy wins election")
32
+ ```
33
+
34
+ # Contact
35
+
36
+
37
+ # Reference
38
+