yangwang825 commited on
Commit
84d460b
·
verified ·
1 Parent(s): 1fc81de

Rebuild from the original release with character offsets

Browse files
README.md CHANGED
@@ -1,24 +1,75 @@
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
- - name: task
14
- dtype: string
15
  configs:
16
- - config_name: "default"
17
- data_files:
18
- - split: "train"
19
- path: "data/gap_train.jsonl"
20
- - split: "validation"
21
- path: "data/gap_validation.jsonl"
22
- - split: "test"
23
- path: "data/gap_test.jsonl"
24
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ pretty_name: GAP
3
+ license: apache-2.0
4
+ language:
5
+ - en
6
+ dataset_info:
7
+ - config_name: default
8
+ features:
9
  - name: input
10
  dtype: string
11
  - name: output
12
  dtype: json
13
  - name: schema
14
+ dtype: json
 
 
 
 
 
 
15
  configs:
16
+ - config_name: default
17
+ data_files:
18
+ - split: train
19
+ path: data/train.jsonl
20
+ - split: validation
21
+ path: data/validation.jsonl
22
+ - split: test
23
+ path: data/test.jsonl
24
+ ---
25
+
26
+ # GAP
27
+
28
+ GAP (relation extraction with given mentions (pronoun resolution)), rebuilt for MNEB from the original release with character-level offsets.
29
+
30
+ **Source:** https://github.com/google-research-datasets/gap-coreference (commit 83135f26)
31
+
32
+ | config | split | records |
33
+ | --- | --- | --- |
34
+ | default | train | 2001 |
35
+ | default | validation | 454 |
36
+ | default | test | 2002 |
37
+
38
+ ## Labels
39
+
40
+ **entities:** `pronoun`, `name`
41
+
42
+ **relations:** `refers to`
43
+
44
+ ## Format
45
+
46
+ Each record has `input` (the text), `output` (gold annotations grouped by label) and `schema` (the label set with descriptions). Offsets are character offsets into `input`, half-open `[start, end)`.
47
+
48
+ ```
49
+ "output": {
50
+ "entities": {"<label>": [{"text", "start", "end"}]},
51
+ "relations": {"<label>": [{"head": {"text", "start", "end"},
52
+ "tail": {"text", "start", "end"}}]},
53
+ "events": {"<label>": [{"trigger": {"text", "start", "end"},
54
+ "arguments": [{"role", "text", "start", "end"}]}]}
55
+ }
56
+ ```
57
+
58
+ Each schema item has a `description` and a `description_source`: `official` when adapted from the dataset's paper or guideline, `mneb` when written for MNEB. Relation datasets also give `setting` (`end_to_end` or `gold_entity`) and `negative_label`; relation items give `symmetric`. Event items list the `roles` valid for that event type.
59
+
60
+ Within a record, identical annotations are kept once and outer whitespace is trimmed from spans; source annotations are otherwise kept as annotated.
61
+
62
+ ## Notes
63
+
64
+ - Given mentions: the pronoun and the two candidate names; relation `refers to` from the pronoun to each coreferent name.
65
+ - train = gap-development, validation = gap-validation, test = gap-test.
66
+
67
+ ## Build
68
+
69
+ Built by `scripts/datasets/gap.py` in the MNEB repository.
70
+
71
+ ## Citation
72
+
73
+ Webster et al. (2018), Mind the GAP: A Balanced Corpus of Gendered Ambiguous Pronouns. TACL.
74
+
75
+ License: apache-2.0
data/{gap_test.jsonl → test.jsonl} RENAMED
The diff for this file is too large to render. See raw diff
 
data/{gap_train.jsonl → train.jsonl} RENAMED
The diff for this file is too large to render. See raw diff
 
data/{gap_validation.jsonl → validation.jsonl} RENAMED
The diff for this file is too large to render. See raw diff