Nugkta commited on
Commit
d4f3fd2
·
verified ·
1 Parent(s): 9d531f7

Rename configs ace->trigger_and_args, distant->trigger_only (task-based naming); add provenance/license notes

Browse files
.gitattributes CHANGED
@@ -58,4 +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
61
- data/fewevent_distant_test.jsonl 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/fewevent_trigger_only_test.jsonl filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -11,15 +11,15 @@ features:
11
  - name: description
12
  dtype: string
13
  configs:
14
- - config_name: ace
15
  default: true
16
  data_files:
17
  - split: test
18
- path: data/fewevent_ace_test.jsonl
19
- - config_name: distant
20
  data_files:
21
  - split: test
22
- path: data/fewevent_distant_test.jsonl
23
  ---
24
 
25
  # FewEvent (mneb/casie format)
@@ -28,16 +28,36 @@ FewEvent (Deng et al., WSDM 2020) converted into the mneb `json_structures` even
28
  format. FewEvent annotates two tasks — event **detection** (triggers) and event **argument
29
  extraction** (roles); it has no entity or relation layer, so each record's `output` carries
30
  only `json_structures`. Char offsets are end-exclusive (`input[start:end] == text`).
 
31
 
32
- The source mixes two annotation provenances at the instance level, kept here as **two
33
- separate configs**:
34
 
35
- - **`ace`** (default) — ~16.4k instances derived from ACE/KBP, with clean trigger **and
36
- typed-argument** spans (33 event types, 35 ACE roles). Both tasks are present.
37
- - **`distant`** — ~65k Freebase/Wikipedia distant-supervised instances (67 further event
38
- types) that carry a usable trigger but no clean role-typed arguments, so they are shipped
39
- **trigger-only** (`arguments: []`).
40
 
41
- One record = one sentence = one event. Single `test` split per config. See
42
- `fewevent_label_summary.md` for the full type/role inventory and counts, and
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  `fewevent_vis.html` for a sampled visualiser.
 
11
  - name: description
12
  dtype: string
13
  configs:
14
+ - config_name: trigger_and_args
15
  default: true
16
  data_files:
17
  - split: test
18
+ path: data/fewevent_trigger_and_args_test.jsonl
19
+ - config_name: trigger_only
20
  data_files:
21
  - split: test
22
+ path: data/fewevent_trigger_only_test.jsonl
23
  ---
24
 
25
  # FewEvent (mneb/casie format)
 
28
  format. FewEvent annotates two tasks — event **detection** (triggers) and event **argument
29
  extraction** (roles); it has no entity or relation layer, so each record's `output` carries
30
  only `json_structures`. Char offsets are end-exclusive (`input[start:end] == text`).
31
+ One record = one sentence = one event. Single `test` split per config.
32
 
33
+ ## The two configs (split by what annotation is present)
 
34
 
35
+ - **`trigger_and_args`** (default) — ~16.4k records that carry a clean trigger **and typed
36
+ arguments** (33 event types, 35 roles). Supports both event detection and argument
37
+ extraction.
38
+ - **`trigger_only`** ~65k records with a trigger but **no arguments** (`arguments: []`).
39
+ Supports event detection only.
40
 
41
+ The split criterion is the annotation itself (does the instance have clean role-typed
42
+ arguments?), i.e. which task it supports **not** the raw data source. Provenance correlates
43
+ but does not line up cleanly:
44
+
45
+ - `trigger_and_args` is essentially the **human-annotated** portion (ACE-2005 + TAC-KBP-2017).
46
+ - `trigger_only` is **mostly** the Freebase/Wikipedia **distant-supervised** portion, but also
47
+ includes a few thousand ACE/KBP-origin instances that simply lack clean argument
48
+ annotations (the raw enriched file was augmented unevenly). So these are named by task, not
49
+ by source.
50
+
51
+ ## Provenance & license (please read before redistributing)
52
+
53
+ FewEvent was built from: **ACE-2005** (LDC2006T06) + **TAC-KBP-2017 Event Track** (both
54
+ human-annotated, **LDC-licensed / restricted**), and **Freebase + Wikipedia** auto-labeled
55
+ data (distant supervision; Wikipedia text is CC-BY-SA, Freebase was CC-BY). The upstream
56
+ GitHub release (`231sm/Low_Resource_KBP`) ships **no license file**. The `trigger_and_args`
57
+ half therefore contains LDC-derived text whose public redistribution may be restricted;
58
+ downstream users should ensure they hold the appropriate ACE-2005 / TAC-KBP licenses. The
59
+ `trigger_only` half's distant-supervised labels are **noisy** — treat as eval-only, and do
60
+ not treat absence of an event as ground truth.
61
+
62
+ See `fewevent_label_summary.md` for the full type/role inventory and counts, and
63
  `fewevent_vis.html` for a sampled visualiser.
data/{fewevent_ace_test.jsonl → fewevent_trigger_and_args_test.jsonl} RENAMED
File without changes
data/{fewevent_distant_test.jsonl → fewevent_trigger_only_test.jsonl} RENAMED
File without changes
fewevent_label_summary.md CHANGED
@@ -1,44 +1,61 @@
1
  # FewEvent — label summary
2
 
3
- Counts computed from `processed_data/fewevent/fewevent_ace_test.jsonl` (16,364 records) and
4
- `processed_data/fewevent/fewevent_distant_test.jsonl` (65,093 records), produced by
5
- `scripts/preprocess_fewevent.py` from the **enriched** `Few-Shot_ED.json` (85,569 instances,
6
- git clone `231sm/Low_Resource_KBP`).
7
 
8
  FewEvent annotates two tasks — event **detection** (triggers) and **argument extraction**
9
  (roles) — and has **no entity layer and no relations**, so `output` carries only
10
  `json_structures`. One record = one sentence = one event; single `test` split per group.
11
 
12
- ## Two provenance groups (kept separate by request)
13
 
14
- The raw file mixes two annotation qualities **per instance** (a single event type can hold
15
- both), split here into two files / two HF configs:
 
16
 
17
- | Group (config) | Records | Event types | Tasks present | Quality |
18
- |---|---:|---|---|---|
19
- | **ace** (default) | 16,364 | 33 | trigger **+ typed arguments** (35 roles) | ACE/KBP-derived, clean char spans |
20
- | **distant** | 65,093 | 79 | trigger only (`arguments: []`) | Freebase/Wikipedia distant-supervised |
21
 
22
- The two groups' type sets overlap: 21 types are ace-only, 67 are distant-only, and **12
23
- appear in both** (e.g. `Conflict.Attack` = 4407 ace + 354 distant, `Life.Marry` = 205 ace +
24
- 25170 distant) same type, different-provenance instances. Union = **100 event types**.
25
 
26
- Scope caveats: (1) the `distant` group is distant-supervised (noisy triggers, no gold args)
27
- use as such; (2) `arguments` exist only on `ace`; (3) event types kept **verbatim**
28
- (`Major.Subtype`, dot form), roles verbatim; (4) FewEvent is a few-shot corpus with no native
29
- train/dev/test — everything is one combined `test` split (TextEE's 5 random re-splits are not
30
- used). Use as **eval-only**.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
 
32
  Build notes: doc_ids assigned by TextEE's `sorted(types)` enumeration (to key into
33
- `token_map.json`, the trigger-span source for the `distant` group). `distant` dropped 4,112
34
- instances with no token_map entry (4,102) or >300 tokens (10). Trigger/arg text is the
35
- authoritative `input[start:end]` slice; it mismatched the provided gold word in 101 `ace`
36
- spans (~0.6%, mostly hyphen sub-token artifacts like `near-collapse`→`collapse`) and 1
37
- `distant` span — offsets remain valid (0 offset-invariant failures).
 
38
 
39
  ## Totals at a glance
40
 
41
- | Item | ace | distant |
42
  |---|---:|---:|
43
  | Records (sentences / events) | 16,364 | 65,093 |
44
  | Event types | 33 | 79 |
@@ -47,7 +64,7 @@ spans (~0.6%, mostly hyphen sub-token artifacts like `near-collapse`→`collapse
47
 
48
  Combined records: **81,457**. Union event types: **100**.
49
 
50
- ## ace — event types (33, 16,364 events)
51
 
52
  | Event type | Count |
53
  |---|---:|
@@ -86,7 +103,7 @@ Combined records: **81,457**. Union event types: **100**.
86
  | Justice.Pardon | 10 |
87
  | **Total** | **16364** |
88
 
89
- ## ace — argument roles (35, 33,170 mentions)
90
 
91
  | Role | Count |
92
  |---|---:|
@@ -127,7 +144,7 @@ Combined records: **81,457**. Union event types: **100**.
127
  | Price | 32 |
128
  | **Total** | **33170** |
129
 
130
- ## distant — event types (79, 65,093 events, trigger-only)
131
 
132
  | Event type | Count |
133
  |---|---:|
 
1
  # FewEvent — label summary
2
 
3
+ Counts computed from `processed_data/fewevent/fewevent_trigger_and_args_test.jsonl` (16,364
4
+ records) and `processed_data/fewevent/fewevent_trigger_only_test.jsonl` (65,093 records),
5
+ produced by `scripts/preprocess_fewevent.py` from the **enriched** `Few-Shot_ED.json` (85,569
6
+ instances, git clone `231sm/Low_Resource_KBP`).
7
 
8
  FewEvent annotates two tasks — event **detection** (triggers) and **argument extraction**
9
  (roles) — and has **no entity layer and no relations**, so `output` carries only
10
  `json_structures`. One record = one sentence = one event; single `test` split per group.
11
 
12
+ ## Two configs (split by what annotation is present)
13
 
14
+ The split criterion is the annotation itself **does the instance carry clean role-typed
15
+ arguments?** i.e. which TASK it supports. It is **not** the raw data source (see provenance
16
+ note below).
17
 
18
+ | Config | Records | Event types | Tasks | What's in a record |
19
+ |---|---:|---:|---|---|
20
+ | **trigger_and_args** (default) | 16,364 | 33 | ED + EAE | trigger **+ typed arguments** (35 roles) |
21
+ | **trigger_only** | 65,093 | 79 | ED only | trigger, `arguments: []` |
22
 
23
+ The two groups' type sets overlap: 21 types are trigger_and_args-only, 67 are
24
+ trigger_only-only, and **12 appear in both** (e.g. `Conflict.Attack` = 4407 + 354,
25
+ `Life.Marry` = 205 + 25170). Union = **100 event types**.
26
 
27
+ ### Provenance note (why task-based names, not `ace`/`distant`)
28
+
29
+ Provenance correlates with the split but does **not** line up cleanly:
30
+
31
+ - **trigger_and_args** the human-annotated **ACE-2005 + TAC-KBP-2017** portion (LDC-licensed,
32
+ restricted).
33
+ - **trigger_only** is **mostly** the **Freebase/Wikipedia distant-supervised** portion
34
+ (noisy; Wikipedia CC-BY-SA, Freebase CC-BY), but also includes a few thousand ACE/KBP-origin
35
+ instances that simply lack clean argument annotations (the enriched file was augmented
36
+ unevenly). Naming these `distant` would over-claim the source, so we name by the task each
37
+ supports.
38
+
39
+ Structurally, the raw non-clean-args instances come in three forms, all emitted trigger-only:
40
+ Freebase MID+relation block (~63.6k), a 4th element that is just a re-cleaned sentence
41
+ (~4.4k, mostly ACE-domain types), and bare 3-element tuples (~1.2k).
42
+
43
+ Scope caveats: (1) the `trigger_only` labels are distant-supervised (noisy) — use as such;
44
+ (2) event types kept **verbatim** (`Major.Subtype`, dot form), roles verbatim; (3) FewEvent
45
+ has no native train/dev/test — everything is one combined `test` split (TextEE's 5 random
46
+ re-splits are not used). Use as **eval-only**.
47
 
48
  Build notes: doc_ids assigned by TextEE's `sorted(types)` enumeration (to key into
49
+ `token_map.json`, the trigger-span source for the `trigger_only` group). `trigger_only`
50
+ dropped 4,112 instances with no token_map entry (4,102) or >300 tokens (10). Trigger/arg text
51
+ is the authoritative `input[start:end]` slice; it mismatched the provided gold word in 101
52
+ `trigger_and_args` spans (~0.6%, mostly hyphen sub-token artifacts like
53
+ `near-collapse`→`collapse`) and 1 `trigger_only` span — offsets remain valid (0
54
+ offset-invariant failures).
55
 
56
  ## Totals at a glance
57
 
58
+ | Item | trigger_and_args | trigger_only |
59
  |---|---:|---:|
60
  | Records (sentences / events) | 16,364 | 65,093 |
61
  | Event types | 33 | 79 |
 
64
 
65
  Combined records: **81,457**. Union event types: **100**.
66
 
67
+ ## trigger_and_args — event types (33, 16,364 events)
68
 
69
  | Event type | Count |
70
  |---|---:|
 
103
  | Justice.Pardon | 10 |
104
  | **Total** | **16364** |
105
 
106
+ ## trigger_and_args — argument roles (35, 33,170 mentions)
107
 
108
  | Role | Count |
109
  |---|---:|
 
144
  | Price | 32 |
145
  | **Total** | **33170** |
146
 
147
+ ## trigger_only — event types (79, 65,093 events, trigger-only)
148
 
149
  | Event type | Count |
150
  |---|---:|
fewevent_vis.html CHANGED
The diff for this file is too large to render. See raw diff