Peterard commited on
Commit
3890f42
1 Parent(s): 073191a

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +28 -0
README.md ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ tags:
5
+ - text-classification
6
+
7
+ widget:
8
+ - text: "Please add a like button!"
9
+ example_title: "Likely feature request"
10
+ - text: "This thing is always crashing"
11
+ example_title: "Unlikely feature request"
12
+ ---
13
+
14
+ How to use this classifier:
15
+
16
+ ```
17
+ from transformers import pipeline
18
+
19
+ pipe = pipeline("text-classification", model="Peterard/distilbert_feature_classifier")
20
+
21
+ pipe("Please add a like button!")
22
+ # [{'label': 'feature_request', 'score': 0.8930749893188477}]
23
+
24
+ pipe("This thing is always crashing")
25
+ #[{'label': 'no_feature_request', 'score': 0.9975591897964478}]
26
+ ```
27
+
28
+ N.B. The label will change depending on which is the likelier class