File size: 650 Bytes
3890f42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
language:
- en
tags:
- text-classification

widget:
- text: "Please add a like button!"
  example_title: "Likely feature request"
- text: "This thing is always crashing"
  example_title: "Unlikely feature request"
---

How to use this classifier:

```
from transformers import pipeline

pipe = pipeline("text-classification", model="Peterard/distilbert_feature_classifier")

pipe("Please add a like button!")
# [{'label': 'feature_request', 'score': 0.8930749893188477}]

pipe("This thing is always crashing")
#[{'label': 'no_feature_request', 'score': 0.9975591897964478}]
```

N.B. The label will change depending on which is the likelier class