system HF staff commited on
Commit
31467e7
1 Parent(s): c830789

Commit From AutoTrain

Browse files
.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
+ - it
7
+ widget:
8
+ - text: "I love AutoTrain 🤗"
9
+ datasets:
10
+ - sxandie/autotrain-data-syn
11
+ co2_eq_emissions:
12
+ emissions: 0.004119159831780813
13
+ ---
14
+
15
+ # Model Trained Using AutoTrain
16
+
17
+ - Problem type: Entity Extraction
18
+ - Model ID: 46822115629
19
+ - CO2 Emissions (in grams): 0.0041
20
+
21
+ ## Validation Metrics
22
+
23
+ - Loss: 0.147
24
+ - Accuracy: 0.967
25
+ - Precision: 0.586
26
+ - Recall: 0.603
27
+ - F1: 0.594
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/sxandie/autotrain-syn-46822115629
35
+ ```
36
+
37
+ Or Python API:
38
+
39
+ ```
40
+ from transformers import AutoModelForTokenClassification, AutoTokenizer
41
+
42
+ model = AutoModelForTokenClassification.from_pretrained("sxandie/autotrain-syn-46822115629", use_auth_token=True)
43
+
44
+ tokenizer = AutoTokenizer.from_pretrained("sxandie/autotrain-syn-46822115629", 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,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoTrain",
3
+ "_num_labels": 18,
4
+ "architectures": [
5
+ "BertForTokenClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "O",
14
+ "1": "commodity",
15
+ "2": "company",
16
+ "3": "delivery_cap",
17
+ "4": "delivery_location",
18
+ "5": "delivery_port",
19
+ "6": "delivery_state",
20
+ "7": "incoterms",
21
+ "8": "measures",
22
+ "9": "package_type",
23
+ "10": "pickup_cap",
24
+ "11": "pickup_location",
25
+ "12": "pickup_port",
26
+ "13": "pickup_state",
27
+ "14": "quantity",
28
+ "15": "stackable",
29
+ "16": "volume",
30
+ "17": "weight"
31
+ },
32
+ "initializer_range": 0.02,
33
+ "intermediate_size": 3072,
34
+ "label2id": {
35
+ "O": 0,
36
+ "commodity": 1,
37
+ "company": 2,
38
+ "delivery_cap": 3,
39
+ "delivery_location": 4,
40
+ "delivery_port": 5,
41
+ "delivery_state": 6,
42
+ "incoterms": 7,
43
+ "measures": 8,
44
+ "package_type": 9,
45
+ "pickup_cap": 10,
46
+ "pickup_location": 11,
47
+ "pickup_port": 12,
48
+ "pickup_state": 13,
49
+ "quantity": 14,
50
+ "stackable": 15,
51
+ "volume": 16,
52
+ "weight": 17
53
+ },
54
+ "layer_norm_eps": 1e-12,
55
+ "max_length": 512,
56
+ "max_position_embeddings": 512,
57
+ "model_type": "bert",
58
+ "num_attention_heads": 12,
59
+ "num_hidden_layers": 12,
60
+ "pad_token_id": 0,
61
+ "padding": "max_length",
62
+ "position_embedding_type": "absolute",
63
+ "torch_dtype": "float32",
64
+ "transformers_version": "4.25.1",
65
+ "type_vocab_size": 2,
66
+ "use_cache": true,
67
+ "vocab_size": 32102
68
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a74bc9035f320d9b981f352b3e4df0663e33a4393506692bbbaf49dce1e584d
3
+ size 440547885
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:8b65c64040a82116a5073af1902a4b2eb0aeb929d270c9d5f2006633589df3db
3
+ size 724602
tokenizer_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "do_basic_tokenize": true,
4
+ "do_lower_case": false,
5
+ "mask_token": "[MASK]",
6
+ "max_len": 512,
7
+ "model_max_length": 512,
8
+ "name_or_path": "AutoTrain",
9
+ "never_split": null,
10
+ "pad_token": "[PAD]",
11
+ "sep_token": "[SEP]",
12
+ "special_tokens_map_file": null,
13
+ "strip_accents": null,
14
+ "tokenize_chinese_chars": true,
15
+ "tokenizer_class": "BertTokenizer",
16
+ "unk_token": "[UNK]"
17
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff