Commit
•
edfb865
1
Parent(s):
4580c6c
Update README.md
Browse files
README.md
CHANGED
@@ -2,13 +2,31 @@
|
|
2 |
tags: autotrain
|
3 |
language: en
|
4 |
widget:
|
5 |
-
- text: "I
|
6 |
datasets:
|
7 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
co2_eq_emissions: 0.03330651014155927
|
9 |
---
|
10 |
-
|
11 |
-
# Model Trained Using AutoTrain
|
12 |
|
13 |
- Problem type: Multi-class Classification
|
14 |
- Model ID: 940131041
|
@@ -40,13 +58,10 @@ $ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: applica
|
|
40 |
Or Python API:
|
41 |
|
42 |
```
|
43 |
-
from transformers import AutoModelForSequenceClassification,
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
|
50 |
-
|
51 |
-
outputs = model(**inputs)
|
52 |
```
|
|
|
2 |
tags: autotrain
|
3 |
language: en
|
4 |
widget:
|
5 |
+
- text: "I am still waiting on my card?"
|
6 |
datasets:
|
7 |
+
- banking77
|
8 |
+
model-index:
|
9 |
+
- name: BERT-Banking77
|
10 |
+
results:
|
11 |
+
- task:
|
12 |
+
name: Text Classification
|
13 |
+
type: text-classification
|
14 |
+
dataset:
|
15 |
+
name: "BANKING77"
|
16 |
+
type: banking77
|
17 |
+
metrics:
|
18 |
+
- name: Accuracy
|
19 |
+
type: accuracy
|
20 |
+
value: 92.64
|
21 |
+
- name: Macro F1
|
22 |
+
type: macro-f1
|
23 |
+
value: 92.64
|
24 |
+
- name: Weighted F1
|
25 |
+
type: weighted-f1
|
26 |
+
value: 92.60
|
27 |
co2_eq_emissions: 0.03330651014155927
|
28 |
---
|
29 |
+
# `BERT-Banking77` Model Trained Using AutoTrain
|
|
|
30 |
|
31 |
- Problem type: Multi-class Classification
|
32 |
- Model ID: 940131041
|
|
|
58 |
Or Python API:
|
59 |
|
60 |
```
|
61 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
|
62 |
+
model_id = 'philschmid/BERT-Banking77'
|
63 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
64 |
+
model = AutoModelForSequenceClassification.from_pretrained(model_id)
|
65 |
+
classifier = pipeline('text-classification', tokenizer=tokenizer, model=model)
|
66 |
+
classifier('What is the base of the exchange rates?')
|
|
|
|
|
|
|
67 |
```
|