ArneBinder
commited on
Upload 3 files
Browse files- config.json +128 -0
- pytorch_model.bin +3 -0
- taskmodule_config.json +40 -0
config.json
ADDED
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"model_type": "SimpleGenerativeModel",
|
3 |
+
"base_model_type": "pie_modules.models.base_models.BartAsPointerNetwork",
|
4 |
+
"base_model_config": {
|
5 |
+
"pretrained_model_name_or_path": "facebook/bart-base",
|
6 |
+
"use_encoder_mlp": true,
|
7 |
+
"use_constraints_encoder_mlp": true,
|
8 |
+
"decoder_position_id_pattern": [
|
9 |
+
0,
|
10 |
+
0,
|
11 |
+
1,
|
12 |
+
0,
|
13 |
+
0,
|
14 |
+
1,
|
15 |
+
1
|
16 |
+
],
|
17 |
+
"encoder_layer_norm_decay": 0.005,
|
18 |
+
"lr": 6e-05,
|
19 |
+
"num_beams": 4,
|
20 |
+
"max_length": 768,
|
21 |
+
"decoder_layer_norm_decay": 0.05,
|
22 |
+
"bos_token_id": 0,
|
23 |
+
"eos_token_id": 1,
|
24 |
+
"pad_token_id": 1,
|
25 |
+
"target_token_ids": [
|
26 |
+
0,
|
27 |
+
2,
|
28 |
+
50267,
|
29 |
+
50265,
|
30 |
+
50268,
|
31 |
+
50270,
|
32 |
+
50271,
|
33 |
+
50269,
|
34 |
+
50272,
|
35 |
+
50266
|
36 |
+
],
|
37 |
+
"embedding_weight_mapping": {
|
38 |
+
"50267": [
|
39 |
+
4146
|
40 |
+
],
|
41 |
+
"50265": [
|
42 |
+
3618,
|
43 |
+
1215,
|
44 |
+
31628
|
45 |
+
],
|
46 |
+
"50268": [
|
47 |
+
414
|
48 |
+
],
|
49 |
+
"50270": [
|
50 |
+
308,
|
51 |
+
1215,
|
52 |
+
31628
|
53 |
+
],
|
54 |
+
"50271": [
|
55 |
+
37820
|
56 |
+
],
|
57 |
+
"50269": [
|
58 |
+
1667,
|
59 |
+
1215,
|
60 |
+
1116,
|
61 |
+
1215,
|
62 |
+
41690
|
63 |
+
],
|
64 |
+
"50272": [
|
65 |
+
9031,
|
66 |
+
38600,
|
67 |
+
1215,
|
68 |
+
41690
|
69 |
+
],
|
70 |
+
"50266": [
|
71 |
+
4548
|
72 |
+
]
|
73 |
+
}
|
74 |
+
},
|
75 |
+
"override_generation_kwargs": null,
|
76 |
+
"warmup_proportion": 0.01,
|
77 |
+
"learning_rate": null,
|
78 |
+
"optimizer_type": null,
|
79 |
+
"metric_stages": [
|
80 |
+
"val",
|
81 |
+
"test",
|
82 |
+
"train"
|
83 |
+
],
|
84 |
+
"metric_call_predict": [
|
85 |
+
"val",
|
86 |
+
"test"
|
87 |
+
],
|
88 |
+
"taskmodule_config": {
|
89 |
+
"taskmodule_type": "PointerNetworkTaskModuleForEnd2EndRE",
|
90 |
+
"tokenizer_name_or_path": "facebook/bart-base",
|
91 |
+
"document_type": "pytorch_ie.documents.TextDocumentWithLabeledSpansBinaryRelationsAndLabeledPartitions",
|
92 |
+
"tokenized_document_type": "pie_modules.documents.TokenDocumentWithLabeledSpansBinaryRelationsAndLabeledPartitions",
|
93 |
+
"span_layer_name": "labeled_spans",
|
94 |
+
"relation_layer_name": "binary_relations",
|
95 |
+
"none_label": "none",
|
96 |
+
"loop_dummy_relation_name": "loop",
|
97 |
+
"constrained_generation": true,
|
98 |
+
"label_tokens": null,
|
99 |
+
"label_representations": null,
|
100 |
+
"labels_per_layer": {
|
101 |
+
"labeled_spans": [
|
102 |
+
"background_claim",
|
103 |
+
"data",
|
104 |
+
"own_claim"
|
105 |
+
],
|
106 |
+
"binary_relations": [
|
107 |
+
"contradicts",
|
108 |
+
"parts_of_same",
|
109 |
+
"semantically_same",
|
110 |
+
"supports"
|
111 |
+
]
|
112 |
+
},
|
113 |
+
"exclude_labels_per_layer": null,
|
114 |
+
"create_constraints": true,
|
115 |
+
"tokenizer_init_kwargs": {
|
116 |
+
"add_prefix_space": true
|
117 |
+
},
|
118 |
+
"tokenizer_kwargs": {
|
119 |
+
"truncation": true,
|
120 |
+
"return_overflowing_tokens": true,
|
121 |
+
"stride": 128,
|
122 |
+
"strict_span_conversion": false
|
123 |
+
},
|
124 |
+
"partition_layer_name": "labeled_partitions",
|
125 |
+
"annotation_field_mapping": null,
|
126 |
+
"log_first_n_examples": null
|
127 |
+
}
|
128 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1ba1c6af701ccda91275955a32da3eb8b9968017e0ecf2b701d9571ea7e7f2ce
|
3 |
+
size 567262209
|
taskmodule_config.json
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"taskmodule_type": "PointerNetworkTaskModuleForEnd2EndRE",
|
3 |
+
"tokenizer_name_or_path": "facebook/bart-base",
|
4 |
+
"document_type": "pytorch_ie.documents.TextDocumentWithLabeledSpansBinaryRelationsAndLabeledPartitions",
|
5 |
+
"tokenized_document_type": "pie_modules.documents.TokenDocumentWithLabeledSpansBinaryRelationsAndLabeledPartitions",
|
6 |
+
"span_layer_name": "labeled_spans",
|
7 |
+
"relation_layer_name": "binary_relations",
|
8 |
+
"none_label": "none",
|
9 |
+
"loop_dummy_relation_name": "loop",
|
10 |
+
"constrained_generation": true,
|
11 |
+
"label_tokens": null,
|
12 |
+
"label_representations": null,
|
13 |
+
"labels_per_layer": {
|
14 |
+
"labeled_spans": [
|
15 |
+
"background_claim",
|
16 |
+
"data",
|
17 |
+
"own_claim"
|
18 |
+
],
|
19 |
+
"binary_relations": [
|
20 |
+
"contradicts",
|
21 |
+
"parts_of_same",
|
22 |
+
"semantically_same",
|
23 |
+
"supports"
|
24 |
+
]
|
25 |
+
},
|
26 |
+
"exclude_labels_per_layer": null,
|
27 |
+
"create_constraints": true,
|
28 |
+
"tokenizer_init_kwargs": {
|
29 |
+
"add_prefix_space": true
|
30 |
+
},
|
31 |
+
"tokenizer_kwargs": {
|
32 |
+
"truncation": true,
|
33 |
+
"return_overflowing_tokens": true,
|
34 |
+
"stride": 128,
|
35 |
+
"strict_span_conversion": false
|
36 |
+
},
|
37 |
+
"partition_layer_name": "labeled_partitions",
|
38 |
+
"annotation_field_mapping": null,
|
39 |
+
"log_first_n_examples": null
|
40 |
+
}
|