Commit From AutoTrain
Browse files- .gitattributes +3 -0
- README.md +49 -0
- config.json +76 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +3 -0
- tokenizer_config.json +14 -0
- vocab.txt +0 -0
.gitattributes
CHANGED
@@ -32,3 +32,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
37 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- autotrain
|
4 |
+
- token-classification
|
5 |
+
language:
|
6 |
+
- unk
|
7 |
+
widget:
|
8 |
+
- text: "I love AutoTrain 🤗"
|
9 |
+
datasets:
|
10 |
+
- teacookies/autotrain-data-20-12-2022
|
11 |
+
co2_eq_emissions:
|
12 |
+
emissions: 14.305842162020754
|
13 |
+
---
|
14 |
+
|
15 |
+
# Model Trained Using AutoTrain
|
16 |
+
|
17 |
+
- Problem type: Entity Extraction
|
18 |
+
- Model ID: 2540377772
|
19 |
+
- CO2 Emissions (in grams): 14.3058
|
20 |
+
|
21 |
+
## Validation Metrics
|
22 |
+
|
23 |
+
- Loss: 0.019
|
24 |
+
- Accuracy: 0.994
|
25 |
+
- Precision: 0.804
|
26 |
+
- Recall: 0.853
|
27 |
+
- F1: 0.828
|
28 |
+
|
29 |
+
## Usage
|
30 |
+
|
31 |
+
You can use cURL to access this model:
|
32 |
+
|
33 |
+
```
|
34 |
+
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/models/teacookies/autotrain-20-12-2022-2540377772
|
35 |
+
```
|
36 |
+
|
37 |
+
Or Python API:
|
38 |
+
|
39 |
+
```
|
40 |
+
from transformers import AutoModelForTokenClassification, AutoTokenizer
|
41 |
+
|
42 |
+
model = AutoModelForTokenClassification.from_pretrained("teacookies/autotrain-20-12-2022-2540377772", use_auth_token=True)
|
43 |
+
|
44 |
+
tokenizer = AutoTokenizer.from_pretrained("teacookies/autotrain-20-12-2022-2540377772", use_auth_token=True)
|
45 |
+
|
46 |
+
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
|
47 |
+
|
48 |
+
outputs = model(**inputs)
|
49 |
+
```
|
config.json
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "AutoTrain",
|
3 |
+
"_num_labels": 19,
|
4 |
+
"architectures": [
|
5 |
+
"BertForTokenClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.1,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"directionality": "bidi",
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 768,
|
13 |
+
"id2label": {
|
14 |
+
"0": "B-overspeed_governor_amts_mini",
|
15 |
+
"1": "B-overspeed_governor_dmts_min",
|
16 |
+
"2": "B-tec_expiry_date",
|
17 |
+
"3": "B-tec_first_issue_date",
|
18 |
+
"4": "B-tec_issue_date",
|
19 |
+
"5": "B-tec_model_no",
|
20 |
+
"6": "B-tec_rated_speed_max",
|
21 |
+
"7": "B-tec_rated_speed_min",
|
22 |
+
"8": "B-tec_standard",
|
23 |
+
"9": "I-overspeed_governor_amts_mini",
|
24 |
+
"10": "I-overspeed_governor_dmts_min",
|
25 |
+
"11": "I-tec_expiry_date",
|
26 |
+
"12": "I-tec_first_issue_date",
|
27 |
+
"13": "I-tec_issue_date",
|
28 |
+
"14": "I-tec_model_no",
|
29 |
+
"15": "I-tec_rated_speed_max",
|
30 |
+
"16": "I-tec_rated_speed_min",
|
31 |
+
"17": "I-tec_standard",
|
32 |
+
"18": "O"
|
33 |
+
},
|
34 |
+
"initializer_range": 0.02,
|
35 |
+
"intermediate_size": 3072,
|
36 |
+
"label2id": {
|
37 |
+
"B-overspeed_governor_amts_mini": 0,
|
38 |
+
"B-overspeed_governor_dmts_min": 1,
|
39 |
+
"B-tec_expiry_date": 2,
|
40 |
+
"B-tec_first_issue_date": 3,
|
41 |
+
"B-tec_issue_date": 4,
|
42 |
+
"B-tec_model_no": 5,
|
43 |
+
"B-tec_rated_speed_max": 6,
|
44 |
+
"B-tec_rated_speed_min": 7,
|
45 |
+
"B-tec_standard": 8,
|
46 |
+
"I-overspeed_governor_amts_mini": 9,
|
47 |
+
"I-overspeed_governor_dmts_min": 10,
|
48 |
+
"I-tec_expiry_date": 11,
|
49 |
+
"I-tec_first_issue_date": 12,
|
50 |
+
"I-tec_issue_date": 13,
|
51 |
+
"I-tec_model_no": 14,
|
52 |
+
"I-tec_rated_speed_max": 15,
|
53 |
+
"I-tec_rated_speed_min": 16,
|
54 |
+
"I-tec_standard": 17,
|
55 |
+
"O": 18
|
56 |
+
},
|
57 |
+
"layer_norm_eps": 1e-12,
|
58 |
+
"max_length": 512,
|
59 |
+
"max_position_embeddings": 512,
|
60 |
+
"model_type": "bert",
|
61 |
+
"num_attention_heads": 12,
|
62 |
+
"num_hidden_layers": 12,
|
63 |
+
"pad_token_id": 0,
|
64 |
+
"padding": "max_length",
|
65 |
+
"pooler_fc_size": 768,
|
66 |
+
"pooler_num_attention_heads": 12,
|
67 |
+
"pooler_num_fc_layers": 3,
|
68 |
+
"pooler_size_per_head": 128,
|
69 |
+
"pooler_type": "first_token_transform",
|
70 |
+
"position_embedding_type": "absolute",
|
71 |
+
"torch_dtype": "float32",
|
72 |
+
"transformers_version": "4.22.1",
|
73 |
+
"type_vocab_size": 2,
|
74 |
+
"use_cache": true,
|
75 |
+
"vocab_size": 105879
|
76 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e1da589ec43cb7e151bf123238ca8ab29c3ef8c26e7e46d1bd2128a323361b95
|
3 |
+
size 667193901
|
special_tokens_map.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"mask_token": "[MASK]",
|
4 |
+
"pad_token": "[PAD]",
|
5 |
+
"sep_token": "[SEP]",
|
6 |
+
"unk_token": "[UNK]"
|
7 |
+
}
|
tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a530333648f6b969fe92eacd2b0a338cfe48fd0fb5f194b1c3ad5c85f87a95e2
|
3 |
+
size 2563635
|
tokenizer_config.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"do_lower_case": true,
|
4 |
+
"mask_token": "[MASK]",
|
5 |
+
"model_max_length": 512,
|
6 |
+
"name_or_path": "AutoTrain",
|
7 |
+
"pad_token": "[PAD]",
|
8 |
+
"sep_token": "[SEP]",
|
9 |
+
"special_tokens_map_file": null,
|
10 |
+
"strip_accents": null,
|
11 |
+
"tokenize_chinese_chars": true,
|
12 |
+
"tokenizer_class": "BertTokenizer",
|
13 |
+
"unk_token": "[UNK]"
|
14 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|