Tim Miller commited on
Commit
b120573
1 Parent(s): 9badd09

Updated with results of training.

Browse files
added_tokens.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</a1>": 28898,
3
+ "</a2>": 28900,
4
+ "</e>": 28896,
5
+ "<a1>": 28897,
6
+ "<a2>": 28899,
7
+ "<cr>": 28901,
8
+ "<e>": 28895,
9
+ "<neg>": 28902
10
+ }
config.json ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "CnlpModelForClassification"
4
+ ],
5
+ "cnlpt_version": "0.6.0",
6
+ "encoder_config": {
7
+ "_name_or_path": "microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract",
8
+ "add_cross_attention": false,
9
+ "architectures": [
10
+ "BertForMaskedLM"
11
+ ],
12
+ "attention_probs_dropout_prob": 0.1,
13
+ "bad_words_ids": null,
14
+ "bos_token_id": null,
15
+ "chunk_size_feed_forward": 0,
16
+ "classifier_dropout": null,
17
+ "cross_attention_hidden_size": null,
18
+ "decoder_start_token_id": null,
19
+ "diversity_penalty": 0.0,
20
+ "do_sample": false,
21
+ "early_stopping": false,
22
+ "encoder_no_repeat_ngram_size": 0,
23
+ "eos_token_id": null,
24
+ "exponential_decay_length_penalty": null,
25
+ "finetuning_task": null,
26
+ "forced_bos_token_id": null,
27
+ "forced_eos_token_id": null,
28
+ "hidden_act": "gelu",
29
+ "hidden_dropout_prob": 0.1,
30
+ "hidden_size": 768,
31
+ "id2label": {
32
+ "0": "LABEL_0",
33
+ "1": "LABEL_1"
34
+ },
35
+ "initializer_range": 0.02,
36
+ "intermediate_size": 3072,
37
+ "is_decoder": false,
38
+ "is_encoder_decoder": false,
39
+ "label2id": {
40
+ "LABEL_0": 0,
41
+ "LABEL_1": 1
42
+ },
43
+ "layer_norm_eps": 1e-12,
44
+ "length_penalty": 1.0,
45
+ "max_length": 20,
46
+ "max_position_embeddings": 512,
47
+ "min_length": 0,
48
+ "model_type": "bert",
49
+ "no_repeat_ngram_size": 0,
50
+ "num_attention_heads": 12,
51
+ "num_beam_groups": 1,
52
+ "num_beams": 1,
53
+ "num_hidden_layers": 12,
54
+ "num_return_sequences": 1,
55
+ "output_attentions": false,
56
+ "output_hidden_states": false,
57
+ "output_scores": false,
58
+ "pad_token_id": 0,
59
+ "position_embedding_type": "absolute",
60
+ "prefix": null,
61
+ "problem_type": null,
62
+ "pruned_heads": {},
63
+ "remove_invalid_values": false,
64
+ "repetition_penalty": 1.0,
65
+ "return_dict": true,
66
+ "return_dict_in_generate": false,
67
+ "sep_token_id": null,
68
+ "task_specific_params": null,
69
+ "temperature": 1.0,
70
+ "tf_legacy_loss": false,
71
+ "tie_encoder_decoder": false,
72
+ "tie_word_embeddings": true,
73
+ "tokenizer_class": null,
74
+ "top_k": 50,
75
+ "top_p": 1.0,
76
+ "torch_dtype": null,
77
+ "torchscript": false,
78
+ "transformers_version": "4.22.2",
79
+ "type_vocab_size": 2,
80
+ "typical_p": 1.0,
81
+ "use_bfloat16": false,
82
+ "use_cache": true,
83
+ "vocab_size": 28903
84
+ },
85
+ "encoder_name": "microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract",
86
+ "finetuning_task": [
87
+ "Negation"
88
+ ],
89
+ "hidden_dropout_prob": 0.1,
90
+ "hidden_size": 768,
91
+ "hier_head_config": null,
92
+ "label_dictionary": {
93
+ "Negation": [
94
+ "-1",
95
+ "1"
96
+ ]
97
+ },
98
+ "layer": 8,
99
+ "model_type": "cnlpt",
100
+ "num_rel_attention_heads": 12,
101
+ "rel_attention_head_dims": 64,
102
+ "relations": {
103
+ "Negation": false
104
+ },
105
+ "tagger": {
106
+ "Negation": false
107
+ },
108
+ "tokens": false,
109
+ "torch_dtype": "float32",
110
+ "transformers_version": "4.22.2",
111
+ "use_prior_tasks": false,
112
+ "vocab_size": 28903
113
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97850ad92c3d75902b3a2ae46ccfcf16fb7c6d0696d3bd19fec02a344fb71692
3
+ size 435398013
special_tokens_map.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<e>",
4
+ "</e>",
5
+ "<a1>",
6
+ "</a1>",
7
+ "<a2>",
8
+ "</a2>",
9
+ "<cr>",
10
+ "<neg>"
11
+ ],
12
+ "cls_token": "[CLS]",
13
+ "mask_token": "[MASK]",
14
+ "pad_token": "[PAD]",
15
+ "sep_token": "[SEP]",
16
+ "unk_token": "[UNK]"
17
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "additional_special_tokens": [
4
+ "<e>",
5
+ "</e>",
6
+ "<a1>",
7
+ "</a1>",
8
+ "<a2>",
9
+ "</a2>",
10
+ "<cr>",
11
+ "<neg>"
12
+ ],
13
+ "cls_token": "[CLS]",
14
+ "do_basic_tokenize": true,
15
+ "do_lower_case": true,
16
+ "mask_token": "[MASK]",
17
+ "name_or_path": "microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract",
18
+ "never_split": null,
19
+ "pad_token": "[PAD]",
20
+ "sep_token": "[SEP]",
21
+ "special_tokens_map_file": null,
22
+ "strip_accents": null,
23
+ "tokenize_chinese_chars": true,
24
+ "tokenizer_class": "BertTokenizer",
25
+ "unk_token": "[UNK]"
26
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff