connorboyle commited on
Commit
71d61d6
1 Parent(s): d698976

Update Model to Properly Truncated Version

Browse files

The old version was trained on truncated strings that only had one [CLS]
at the very beginning and one [SEP] at the very end. This version is
trained on truncated strings that each have a [CLS] and [SEP] on either
end.

Files changed (2) hide show
  1. config.json +50 -50
  2. pytorch_model.bin +1 -1
config.json CHANGED
@@ -9,55 +9,55 @@
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
12
- "id2label": {
13
- "0": "O",
14
- "1": "B-AGE",
15
- "2": "I-AGE",
16
- "3": "B-BIOID",
17
- "4": "I-BIOID",
18
- "5": "B-CITY",
19
- "6": "I-CITY",
20
- "7": "B-COUNTRY",
21
- "8": "I-COUNTRY",
22
- "9": "B-DATE",
23
- "10": "I-DATE",
24
- "11": "B-DEVICE",
25
- "12": "I-DEVICE",
26
- "13": "B-DOCTOR",
27
- "14": "I-DOCTOR",
28
- "15": "B-EMAIL",
29
- "16": "I-EMAIL",
30
- "17": "B-FAX",
31
- "18": "I-FAX",
32
- "19": "B-HEALTHPLAN",
33
- "20": "I-HEALTHPLAN",
34
- "21": "B-HOSPITAL",
35
- "22": "I-HOSPITAL",
36
- "23": "B-IDNUM",
37
- "24": "I-IDNUM",
38
- "25": "B-LOCATION-OTHER",
39
- "26": "I-LOCATION-OTHER",
40
- "27": "B-MEDICALRECORD",
41
- "28": "I-MEDICALRECORD",
42
- "29": "B-ORGANIZATION",
43
- "30": "I-ORGANIZATION",
44
- "31": "B-PATIENT",
45
- "32": "I-PATIENT",
46
- "33": "B-PHONE",
47
- "34": "I-PHONE",
48
- "35": "B-PROFESSION",
49
- "36": "I-PROFESSION",
50
- "37": "B-STATE",
51
- "38": "I-STATE",
52
- "39": "B-STREET",
53
- "40": "I-STREET",
54
- "41": "B-URL",
55
- "42": "I-URL",
56
- "43": "B-USERNAME",
57
- "44": "I-USERNAME",
58
- "45": "B-ZIP",
59
- "46": "I-ZIP"
60
- },
61
  "initializer_range": 0.02,
62
  "intermediate_size": 3072,
63
  "label2id": {
@@ -117,7 +117,7 @@
117
  "pad_token_id": 0,
118
  "position_embedding_type": "absolute",
119
  "torch_dtype": "float32",
120
- "transformers_version": "4.10.0",
121
  "type_vocab_size": 2,
122
  "use_cache": true,
123
  "vocab_size": 28996
 
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
12
+ "id2label": [
13
+ "O",
14
+ "B-AGE",
15
+ "I-AGE",
16
+ "B-BIOID",
17
+ "I-BIOID",
18
+ "B-CITY",
19
+ "I-CITY",
20
+ "B-COUNTRY",
21
+ "I-COUNTRY",
22
+ "B-DATE",
23
+ "I-DATE",
24
+ "B-DEVICE",
25
+ "I-DEVICE",
26
+ "B-DOCTOR",
27
+ "I-DOCTOR",
28
+ "B-EMAIL",
29
+ "I-EMAIL",
30
+ "B-FAX",
31
+ "I-FAX",
32
+ "B-HEALTHPLAN",
33
+ "I-HEALTHPLAN",
34
+ "B-HOSPITAL",
35
+ "I-HOSPITAL",
36
+ "B-IDNUM",
37
+ "I-IDNUM",
38
+ "B-LOCATION-OTHER",
39
+ "I-LOCATION-OTHER",
40
+ "B-MEDICALRECORD",
41
+ "I-MEDICALRECORD",
42
+ "B-ORGANIZATION",
43
+ "I-ORGANIZATION",
44
+ "B-PATIENT",
45
+ "I-PATIENT",
46
+ "B-PHONE",
47
+ "I-PHONE",
48
+ "B-PROFESSION",
49
+ "I-PROFESSION",
50
+ "B-STATE",
51
+ "I-STATE",
52
+ "B-STREET",
53
+ "I-STREET",
54
+ "B-URL",
55
+ "I-URL",
56
+ "B-USERNAME",
57
+ "I-USERNAME",
58
+ "B-ZIP",
59
+ "I-ZIP"
60
+ ],
61
  "initializer_range": 0.02,
62
  "intermediate_size": 3072,
63
  "label2id": {
 
117
  "pad_token_id": 0,
118
  "position_embedding_type": "absolute",
119
  "torch_dtype": "float32",
120
+ "transformers_version": "4.12.5",
121
  "type_vocab_size": 2,
122
  "use_cache": true,
123
  "vocab_size": 28996
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:014029d9f4a39272699d8cc5a35c9ba1c9d6899c2a75d5e305bf9dc5a6642e6d
3
  size 431103857
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a3d3e06242764250aa36e3d4aef0384ec0cc3719a73d2adb3ad8da6e41f2234
3
  size 431103857