system HF staff commited on
Commit
2aa7fed
1 Parent(s): 5e18d16

Commit From AutoTrain

Browse files
.gitattributes CHANGED
@@ -29,3 +29,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
29
  *.zip filter=lfs diff=lfs merge=lfs -text
30
  *.zstandard filter=lfs diff=lfs merge=lfs -text
31
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
29
  *.zip filter=lfs diff=lfs merge=lfs -text
30
  *.zstandard filter=lfs diff=lfs merge=lfs -text
31
  *tfevents* filter=lfs diff=lfs merge=lfs -text
32
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
33
+ *.tar.gz filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags: autotrain
3
+ language: en
4
+ widget:
5
+ - text: "I love AutoTrain 🤗"
6
+ datasets:
7
+ - Shenzy2/autotrain-data-NER4DesignTutor
8
+ co2_eq_emissions: 0.004032656988228696
9
+ ---
10
+
11
+ # Model Trained Using AutoTrain
12
+
13
+ - Problem type: Entity Extraction
14
+ - Model ID: 1169643336
15
+ - CO2 Emissions (in grams): 0.004032656988228696
16
+
17
+ ## Validation Metrics
18
+
19
+ - Loss: 0.677674412727356
20
+ - Accuracy: 0.8129095674967235
21
+ - Precision: 0.4424778761061947
22
+ - Recall: 0.4844961240310077
23
+ - F1: 0.4625346901017577
24
+
25
+ ## Usage
26
+
27
+ You can use cURL to access this model:
28
+
29
+ ```
30
+ $ 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/Shenzy2/autotrain-NER4DesignTutor-1169643336
31
+ ```
32
+
33
+ Or Python API:
34
+
35
+ ```
36
+ from transformers import AutoModelForTokenClassification, AutoTokenizer
37
+
38
+ model = AutoModelForTokenClassification.from_pretrained("Shenzy2/autotrain-NER4DesignTutor-1169643336", use_auth_token=True)
39
+
40
+ tokenizer = AutoTokenizer.from_pretrained("Shenzy2/autotrain-NER4DesignTutor-1169643336", use_auth_token=True)
41
+
42
+ inputs = tokenizer("I love AutoTrain", return_tensors="pt")
43
+
44
+ outputs = model(**inputs)
45
+ ```
config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoTrain",
3
+ "_num_labels": 7,
4
+ "architectures": [
5
+ "BertForTokenClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "B-Nolabel",
15
+ "1": "B-design_concept",
16
+ "2": "B-ui_element",
17
+ "3": "I-Nolabel",
18
+ "4": "I-design_concept",
19
+ "5": "I-ui_element",
20
+ "6": "O"
21
+ },
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 3072,
24
+ "label2id": {
25
+ "B-Nolabel": 0,
26
+ "B-design_concept": 1,
27
+ "B-ui_element": 2,
28
+ "I-Nolabel": 3,
29
+ "I-design_concept": 4,
30
+ "I-ui_element": 5,
31
+ "O": 6
32
+ },
33
+ "layer_norm_eps": 1e-12,
34
+ "max_length": 96,
35
+ "max_position_embeddings": 512,
36
+ "model_type": "bert",
37
+ "num_attention_heads": 12,
38
+ "num_hidden_layers": 12,
39
+ "pad_token_id": 0,
40
+ "padding": "max_length",
41
+ "position_embedding_type": "absolute",
42
+ "torch_dtype": "float32",
43
+ "transformers_version": "4.20.0",
44
+ "type_vocab_size": 2,
45
+ "use_cache": true,
46
+ "vocab_size": 28996
47
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e74f922c7afff731370d3eecf4ccf38a5310d3bdf529d261af2a2f130740786
3
+ size 430970673
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
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "do_lower_case": false,
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