system HF staff commited on
Commit
4ae0617
1 Parent(s): 190cc76

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
  *.zst 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
  *.zst 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,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - autotrain
4
+ - token-classification
5
+ language:
6
+ - en
7
+ widget:
8
+ - text: "I love AutoTrain 🤗"
9
+ datasets:
10
+ - nguyenkhoa2407/autotrain-data-default_model_favsbot_data
11
+ co2_eq_emissions:
12
+ emissions: 0.012034916031396342
13
+ ---
14
+
15
+ # Model Trained Using AutoTrain
16
+
17
+ - Problem type: Entity Extraction
18
+ - Model ID: 1300449813
19
+ - CO2 Emissions (in grams): 0.0120
20
+
21
+ ## Validation Metrics
22
+
23
+ - Loss: 1.004
24
+ - Accuracy: 0.710
25
+ - Precision: 0.542
26
+ - Recall: 0.413
27
+ - F1: 0.468
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/nguyenkhoa2407/autotrain-default_model_favsbot_data-1300449813
35
+ ```
36
+
37
+ Or Python API:
38
+
39
+ ```
40
+ from transformers import AutoModelForTokenClassification, AutoTokenizer
41
+
42
+ model = AutoModelForTokenClassification.from_pretrained("nguyenkhoa2407/autotrain-default_model_favsbot_data-1300449813", use_auth_token=True)
43
+
44
+ tokenizer = AutoTokenizer.from_pretrained("nguyenkhoa2407/autotrain-default_model_favsbot_data-1300449813", 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,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoTrain",
3
+ "_num_labels": 11,
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": 1024,
13
+ "id2label": {
14
+ "0": "B-LOC",
15
+ "1": "B-PER",
16
+ "2": "B-SORT",
17
+ "3": "B-TAG",
18
+ "4": "B-TIME",
19
+ "5": "I-LOC",
20
+ "6": "I-PER",
21
+ "7": "I-SORT",
22
+ "8": "I-TAG",
23
+ "9": "I-TIME",
24
+ "10": "O"
25
+ },
26
+ "initializer_range": 0.02,
27
+ "intermediate_size": 4096,
28
+ "label2id": {
29
+ "B-LOC": 0,
30
+ "B-PER": 1,
31
+ "B-SORT": 2,
32
+ "B-TAG": 3,
33
+ "B-TIME": 4,
34
+ "I-LOC": 5,
35
+ "I-PER": 6,
36
+ "I-SORT": 7,
37
+ "I-TAG": 8,
38
+ "I-TIME": 9,
39
+ "O": 10
40
+ },
41
+ "layer_norm_eps": 1e-12,
42
+ "max_length": 128,
43
+ "max_position_embeddings": 512,
44
+ "model_type": "bert",
45
+ "num_attention_heads": 16,
46
+ "num_hidden_layers": 24,
47
+ "pad_token_id": 0,
48
+ "padding": "max_length",
49
+ "position_embedding_type": "absolute",
50
+ "torch_dtype": "float32",
51
+ "transformers_version": "4.20.0",
52
+ "type_vocab_size": 2,
53
+ "use_cache": true,
54
+ "vocab_size": 30522
55
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e661149e74979d7b54f5f516802ae4515255cbfb865e38f7d8a52c662d964cd
3
+ size 1336549553
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": 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