system HF staff commited on
Commit
b65d911
1 Parent(s): 85b145b

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
+ - unk
7
+ widget:
8
+ - text: "I love AutoTrain 🤗"
9
+ datasets:
10
+ - shreyas-singh/autotrain-data-MedicalTokenClassification
11
+ co2_eq_emissions:
12
+ emissions: 12.16859664557857
13
+ ---
14
+
15
+ # Model Trained Using AutoTrain
16
+
17
+ - Problem type: Entity Extraction
18
+ - Model ID: 1279048948
19
+ - CO2 Emissions (in grams): 12.1686
20
+
21
+ ## Validation Metrics
22
+
23
+ - Loss: 0.152
24
+ - Accuracy: 0.959
25
+ - Precision: 0.879
26
+ - Recall: 0.880
27
+ - F1: 0.879
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/shreyas-singh/autotrain-MedicalTokenClassification-1279048948
35
+ ```
36
+
37
+ Or Python API:
38
+
39
+ ```
40
+ from transformers import AutoModelForTokenClassification, AutoTokenizer
41
+
42
+ model = AutoModelForTokenClassification.from_pretrained("shreyas-singh/autotrain-MedicalTokenClassification-1279048948", use_auth_token=True)
43
+
44
+ tokenizer = AutoTokenizer.from_pretrained("shreyas-singh/autotrain-MedicalTokenClassification-1279048948", 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,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoTrain",
3
+ "_num_labels": 9,
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": "B-LOC",
14
+ "1": "B-MISC",
15
+ "2": "B-ORG",
16
+ "3": "B-PER",
17
+ "4": "I-LOC",
18
+ "5": "I-MISC",
19
+ "6": "I-ORG",
20
+ "7": "I-PER",
21
+ "8": "O"
22
+ },
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 3072,
25
+ "label2id": {
26
+ "B-LOC": 0,
27
+ "B-MISC": 1,
28
+ "B-ORG": 2,
29
+ "B-PER": 3,
30
+ "I-LOC": 4,
31
+ "I-MISC": 5,
32
+ "I-ORG": 6,
33
+ "I-PER": 7,
34
+ "O": 8
35
+ },
36
+ "layer_norm_eps": 1e-12,
37
+ "max_length": 256,
38
+ "max_position_embeddings": 512,
39
+ "model_type": "bert",
40
+ "num_attention_heads": 12,
41
+ "num_hidden_layers": 12,
42
+ "pad_token_id": 0,
43
+ "padding": "max_length",
44
+ "position_embedding_type": "absolute",
45
+ "torch_dtype": "float32",
46
+ "transformers_version": "4.20.0",
47
+ "type_vocab_size": 2,
48
+ "use_cache": true,
49
+ "vocab_size": 30522
50
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b73694af00580325e1e7476dace8c3f9dd0aecb0ba4dc9aaec7a15fcc592500
3
+ size 435664689
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,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "do_basic_tokenize": true,
4
+ "do_lower_case": true,
5
+ "mask_token": "[MASK]",
6
+ "name_or_path": "AutoTrain",
7
+ "never_split": null,
8
+ "pad_token": "[PAD]",
9
+ "sep_token": "[SEP]",
10
+ "special_tokens_map_file": null,
11
+ "strip_accents": null,
12
+ "tokenize_chinese_chars": true,
13
+ "tokenizer_class": "BertTokenizer",
14
+ "unk_token": "[UNK]"
15
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff