Nugkta commited on
Commit
c66136c
·
verified ·
1 Parent(s): 022f142

Add MAVEN (train+validation) in mneb json_structures format

Browse files
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ data/maven_train.jsonl filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ features:
3
+ - name: input
4
+ dtype: string
5
+ - name: output
6
+ dtype: json
7
+ - name: schema
8
+ list:
9
+ - name: label
10
+ dtype: string
11
+ - name: description
12
+ dtype: string
13
+ configs:
14
+ - config_name: default
15
+ data_files:
16
+ - split: train
17
+ path: data/maven_train.jsonl
18
+ - split: validation
19
+ path: data/maven_validation.jsonl
20
+ ---
21
+
22
+ # MAVEN (mneb/casie format)
23
+
24
+ MAVEN (Wang et al., EMNLP 2020) converted into the mneb `json_structures` event-extraction
25
+ format. MAVEN is a massive general-domain event **detection** dataset — 168 event types over
26
+ English Wikipedia documents. It is ED-only (no argument annotation), so each record's `output`
27
+ carries only `json_structures`; every event's `arguments` is always `[]`. One record = one
28
+ sentence. ALL sentences are kept, including event-less ones (`json_structures: {}`). Char
29
+ offsets are end-exclusive (`input[start:end] == text`). Event-type strings are kept verbatim
30
+ from the raw release.
31
+
32
+ ## Splits
33
+
34
+ Official MAVEN document split:
35
+
36
+ | Split | Docs | Sentences | Event mentions |
37
+ |---|---:|---:|---:|
38
+ | `train` | 2,913 | 32,431 | 77,993 |
39
+ | `validation` | 710 | 8,042 | 18,904 |
40
+
41
+ `validation` is MAVEN's raw `valid` split, renamed for naming consistency with the other
42
+ converted datasets. The official `test` split is **not included**: its annotations are withheld
43
+ for the CodaLab leaderboard, so it carries no gold event type or mention, only candidate
44
+ triggers.
45
+
46
+ ## What is dropped from the raw release
47
+
48
+ - The unlabeled `test` split.
49
+ - `negative_triggers` and other candidate lists (explicitly-labeled non-events).
50
+ - Event coreference: MAVEN groups multiple mentions under one event instance. The flat
51
+ per-sentence format used here cannot represent that grouping, so mentions become independent
52
+ trigger entries — mention counts are preserved exactly (nothing deduplicated or merged).
53
+ - Numeric `type_id`s, mention/event ids, and the raw per-sentence token lists.
54
+
55
+ ## Token -> char note
56
+
57
+ MAVEN's raw trigger spans are token indices into per-sentence token lists that are lossy
58
+ (lowercased, rare words replaced by the literal string `unk`, PTB escapes for brackets/quotes).
59
+ Triggers were re-anchored to the raw sentence text via greedy earliest-match case-insensitive
60
+ alignment, trying PTB-variant candidates alongside the raw token, plus a neighbor-window
61
+ fallback search for `unk`-substituted tokens. This recovered 100% of mentions: 0 drops, 0
62
+ offset failures across both splits. The emitted trigger `text` is always the authoritative
63
+ sentence slice (`input[start:end]`); it differs from the raw `trigger_word` in 795 (train) + 200
64
+ (validation) cases, all case-only.
65
+
66
+ ## Provenance & license
67
+
68
+ Source: THU-KEG/MAVEN-dataset (data distributed via Google Drive / Tsinghua Cloud), MIT
69
+ license. Document text is drawn from English Wikipedia (CC BY-SA). The event schema is derived
70
+ from FrameNet. Annotations are crowd-sourced.
71
+
72
+ See `maven_label_summary.md` for the full 168-type inventory and per-split counts, and
73
+ `maven_vis.html` for a sampled visualiser (stratified sample, ≤20 records/type per split + 10
74
+ empty records per split).
data/maven_train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5cfb7a77febb2b17d9aa131002d69c29b4f3cbc098dbb7dc58d3345b0121cb0
3
+ size 13642023
data/maven_validation.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
maven_label_summary.md ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MAVEN — label summary
2
+
3
+ Counts computed from `processed_data/maven/maven_train.jsonl` (32,431 records) and
4
+ `processed_data/maven/maven_validation.jsonl` (8,042 records), produced by
5
+ `scripts/preprocess_maven.py` from **THU-KEG MAVEN** (Wang et al., EMNLP 2020; MIT license;
6
+ English Wikipedia documents). The raw `valid` split is renamed `validation` for naming
7
+ consistency with the other converted datasets; the official `test` split is unlabeled
8
+ (carries only trigger `candidates`, no gold event type/mention) and is excluded.
9
+
10
+ ## Totals at a glance
11
+
12
+ | Item | train | validation |
13
+ |---|---:|---:|
14
+ | Docs | 2,913 | 710 |
15
+ | Records (sentences) | 32,431 | 8,042 |
16
+ | — with ≥1 event | 30,101 | 7,469 |
17
+ | — empty (no event) | 2,330 | 573 |
18
+ | Event mentions | 77,993 | 18,904 |
19
+ | Event types | 168 | 168 |
20
+
21
+ ## Build notes
22
+
23
+ - Token -> char re-anchoring: greedy earliest case-insensitive match over the lossy
24
+ lowercased/`unk`-substituted raw token lists, with PTB-escape variants (`` `` ``, `''`,
25
+ `-LRB-`/`-RRB-`/`-LSB-`/`-RSB-`/`-LCB-`/`-RCB-`) tried alongside the raw token, plus a
26
+ neighbor-window fallback search for tokens the primary pass couldn't align (mostly the
27
+ `unk`-substituted ones).
28
+ - 100% mention recovery: 0 mentions dropped, 0 offset failures across both splits.
29
+ - `text_mismatch` (emitted `input[start:end]` slice differs from the raw `trigger_word`):
30
+ 795 (train) + 200 (validation), **all case-only**; the emitted `text` is always the
31
+ authoritative sentence slice, never the raw (possibly lossy-cased) trigger word.
32
+
33
+ ## Dropped layers
34
+
35
+ - Unlabeled official `test` split (no gold event type/mention, only `candidates`).
36
+ - `negative_triggers` (explicitly-labeled non-events).
37
+ - Event-coreference grouping: MAVEN groups multiple mentions under one event instance
38
+ (`id`); this layer is flattened — each mention becomes an independent per-sentence
39
+ trigger entry. Mention counts are preserved exactly (nothing deduplicated or merged).
40
+ - Numeric `type_id`s, all raw `id`s (doc/event/mention), and the raw token lists
41
+ (superseded by char offsets).
42
+
43
+ ## Event types (168, 96,897 event mentions)
44
+
45
+ | Event type | train | validation | total |
46
+ |---|---:|---:|---:|
47
+ | Catastrophe | 3145 | 829 | 3974 |
48
+ | Hostile_encounter | 2856 | 764 | 3620 |
49
+ | Attack | 2920 | 630 | 3550 |
50
+ | Causation | 2728 | 659 | 3387 |
51
+ | Process_start | 2628 | 647 | 3275 |
52
+ | Competition | 2460 | 707 | 3167 |
53
+ | Motion | 2165 | 433 | 2598 |
54
+ | Social_event | 1653 | 443 | 2096 |
55
+ | Killing | 1625 | 405 | 2030 |
56
+ | Conquering | 1432 | 322 | 1754 |
57
+ | Process_end | 1392 | 338 | 1730 |
58
+ | Statement | 1392 | 329 | 1721 |
59
+ | Self_motion | 1282 | 338 | 1620 |
60
+ | Arriving | 1236 | 306 | 1542 |
61
+ | Destroying | 1176 | 269 | 1445 |
62
+ | Coming_to_be | 1120 | 298 | 1418 |
63
+ | Military_operation | 1022 | 235 | 1257 |
64
+ | Bodily_harm | 1024 | 231 | 1255 |
65
+ | Damaging | 981 | 246 | 1227 |
66
+ | Death | 1001 | 225 | 1226 |
67
+ | Cause_change_of_strength | 948 | 232 | 1180 |
68
+ | Creating | 936 | 223 | 1159 |
69
+ | Cause_change_of_position_on_a_scale | 903 | 235 | 1138 |
70
+ | Hold | 922 | 215 | 1137 |
71
+ | Control | 911 | 221 | 1132 |
72
+ | Earnings_and_losses | 891 | 213 | 1104 |
73
+ | Becoming | 848 | 237 | 1085 |
74
+ | Getting | 842 | 225 | 1067 |
75
+ | Arranging | 817 | 200 | 1017 |
76
+ | Know | 810 | 197 | 1007 |
77
+ | Preventing_or_letting | 772 | 186 | 958 |
78
+ | Escaping | 764 | 192 | 956 |
79
+ | Traveling | 793 | 144 | 937 |
80
+ | Change_of_leadership | 704 | 229 | 933 |
81
+ | Presence | 777 | 149 | 926 |
82
+ | Defending | 764 | 159 | 923 |
83
+ | Motion_directional | 684 | 185 | 869 |
84
+ | Action | 709 | 155 | 864 |
85
+ | Cause_to_be_included | 678 | 172 | 850 |
86
+ | Participation | 677 | 170 | 847 |
87
+ | Change | 684 | 162 | 846 |
88
+ | Placing | 662 | 153 | 815 |
89
+ | Influence | 654 | 158 | 812 |
90
+ | Judgment_communication | 640 | 127 | 767 |
91
+ | Name_conferral | 618 | 142 | 760 |
92
+ | Expressing_publicly | 626 | 130 | 756 |
93
+ | Request | 620 | 127 | 747 |
94
+ | Giving | 561 | 134 | 695 |
95
+ | Supporting | 554 | 126 | 680 |
96
+ | Recording | 533 | 122 | 655 |
97
+ | Agree_or_refuse_to_act | 504 | 151 | 655 |
98
+ | Removing | 520 | 135 | 655 |
99
+ | Supply | 485 | 133 | 618 |
100
+ | Using | 505 | 107 | 612 |
101
+ | Communication | 471 | 111 | 582 |
102
+ | Reporting | 459 | 119 | 578 |
103
+ | Choosing | 453 | 116 | 569 |
104
+ | Use_firearm | 434 | 104 | 538 |
105
+ | Sending | 417 | 95 | 512 |
106
+ | Bringing | 410 | 96 | 506 |
107
+ | Departing | 403 | 85 | 488 |
108
+ | Assistance | 379 | 88 | 467 |
109
+ | Cause_to_make_progress | 363 | 85 | 448 |
110
+ | Deciding | 350 | 84 | 434 |
111
+ | Perception_active | 346 | 82 | 428 |
112
+ | Dispersal | 341 | 85 | 426 |
113
+ | Building | 350 | 75 | 425 |
114
+ | Violence | 340 | 79 | 419 |
115
+ | Manufacturing | 326 | 85 | 411 |
116
+ | Come_together | 314 | 86 | 400 |
117
+ | Arrest | 307 | 72 | 379 |
118
+ | Cause_to_amalgamate | 299 | 75 | 374 |
119
+ | Receiving | 283 | 79 | 362 |
120
+ | Hindering | 295 | 62 | 357 |
121
+ | Response | 299 | 52 | 351 |
122
+ | Achieve | 279 | 69 | 348 |
123
+ | Aiming | 282 | 65 | 347 |
124
+ | Recovering | 275 | 62 | 337 |
125
+ | Scrutiny | 263 | 62 | 325 |
126
+ | Expansion | 265 | 60 | 325 |
127
+ | Change_event_time | 258 | 63 | 321 |
128
+ | Besieging | 251 | 61 | 312 |
129
+ | Terrorism | 254 | 55 | 309 |
130
+ | Check | 242 | 56 | 298 |
131
+ | Publishing | 231 | 63 | 294 |
132
+ | Becoming_a_member | 225 | 64 | 289 |
133
+ | Criminal_investigation | 228 | 49 | 277 |
134
+ | Collaboration | 221 | 51 | 272 |
135
+ | Openness | 222 | 49 | 271 |
136
+ | Committing_crime | 224 | 41 | 265 |
137
+ | Coming_to_believe | 203 | 52 | 255 |
138
+ | Connect | 203 | 48 | 251 |
139
+ | Being_in_operation | 199 | 49 | 248 |
140
+ | Surrendering | 199 | 47 | 246 |
141
+ | Legal_rulings | 191 | 50 | 241 |
142
+ | Confronting_problem | 179 | 46 | 225 |
143
+ | Preserving | 174 | 48 | 222 |
144
+ | Warning | 178 | 42 | 220 |
145
+ | Sign_agreement | 178 | 39 | 217 |
146
+ | Quarreling | 163 | 52 | 215 |
147
+ | GiveUp | 167 | 40 | 207 |
148
+ | Temporary_stay | 165 | 42 | 207 |
149
+ | Convincing | 168 | 38 | 206 |
150
+ | Change_sentiment | 156 | 45 | 201 |
151
+ | Telling | 155 | 40 | 195 |
152
+ | Protest | 153 | 32 | 185 |
153
+ | Legality | 138 | 31 | 169 |
154
+ | Testing | 137 | 25 | 162 |
155
+ | Rescuing | 132 | 30 | 162 |
156
+ | Commitment | 131 | 29 | 160 |
157
+ | Resolve_problem | 129 | 28 | 157 |
158
+ | Employment | 128 | 28 | 156 |
159
+ | Emptying | 124 | 29 | 153 |
160
+ | Commerce_sell | 124 | 29 | 153 |
161
+ | Releasing | 114 | 29 | 143 |
162
+ | Body_movement | 115 | 25 | 140 |
163
+ | Education_teaching | 104 | 28 | 132 |
164
+ | GetReady | 103 | 23 | 126 |
165
+ | Surrounding | 101 | 24 | 125 |
166
+ | Reveal_secret | 101 | 23 | 124 |
167
+ | Hiding_objects | 99 | 24 | 123 |
168
+ | Forming_relationships | 97 | 26 | 123 |
169
+ | Writing | 95 | 25 | 120 |
170
+ | Filling | 97 | 22 | 119 |
171
+ | Reforming_a_system | 93 | 22 | 115 |
172
+ | Bearing_arms | 93 | 22 | 115 |
173
+ | Commerce_pay | 93 | 21 | 114 |
174
+ | Kidnapping | 87 | 22 | 109 |
175
+ | Expend_resource | 91 | 17 | 108 |
176
+ | Research | 87 | 21 | 108 |
177
+ | Patrolling | 87 | 21 | 108 |
178
+ | Rewards_and_punishments | 86 | 20 | 106 |
179
+ | Cost | 85 | 19 | 104 |
180
+ | Adducing | 82 | 18 | 100 |
181
+ | Limiting | 78 | 18 | 96 |
182
+ | Wearing | 72 | 20 | 92 |
183
+ | Cure | 71 | 17 | 88 |
184
+ | Create_artwork | 66 | 21 | 87 |
185
+ | Having_or_lacking_access | 61 | 19 | 80 |
186
+ | Exchange | 64 | 15 | 79 |
187
+ | Imposing_obligation | 59 | 16 | 75 |
188
+ | Award | 58 | 13 | 71 |
189
+ | Containing | 55 | 15 | 70 |
190
+ | Robbery | 57 | 13 | 70 |
191
+ | Prison | 55 | 14 | 69 |
192
+ | Commerce_buy | 51 | 13 | 64 |
193
+ | Revenge | 52 | 12 | 64 |
194
+ | Carry_goods | 48 | 14 | 62 |
195
+ | Rite | 48 | 11 | 59 |
196
+ | Submitting_documents | 47 | 11 | 58 |
197
+ | Practice | 37 | 9 | 46 |
198
+ | Lighting | 36 | 8 | 44 |
199
+ | Labeling | 35 | 8 | 43 |
200
+ | Scouring | 32 | 7 | 39 |
201
+ | Justifying | 27 | 7 | 34 |
202
+ | Ratification | 27 | 6 | 33 |
203
+ | Suspicion | 22 | 5 | 27 |
204
+ | Vocalizations | 20 | 5 | 25 |
205
+ | Theft | 19 | 5 | 24 |
206
+ | Ingestion | 16 | 7 | 23 |
207
+ | Renting | 17 | 4 | 21 |
208
+ | Incident | 15 | 2 | 17 |
209
+ | Risk | 12 | 3 | 15 |
210
+ | Institutionalization | 11 | 3 | 14 |
211
+ | Extradition | 11 | 3 | 14 |
212
+ | Emergency | 7 | 2 | 9 |
213
+ | Breathing | 6 | 1 | 7 |
214
+ | Change_tool | 4 | 1 | 5 |
215
+ | **Total** | **77993** | **18904** | **96897** |
216
+
217
+ ---
218
+
219
+ Visualiser: stratified sample, ≤20 records/type per split + 10 empty records per split.
maven_vis.html ADDED
The diff for this file is too large to render. See raw diff