Ralston commited on
Commit
0fbb415
·
verified ·
1 Parent(s): c1f17d7

Upload 5 files

Browse files
Files changed (6) hide show
  1. .gitattributes +1 -0
  2. data_structure.py +33 -0
  3. dev.json +0 -0
  4. ontology.json +72 -0
  5. test.json +0 -0
  6. train.json +3 -0
.gitattributes CHANGED
@@ -57,3 +57,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
+ train.json filter=lfs diff=lfs merge=lfs -text
data_structure.py ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Define how nugget is composed. Nugget is the smallest granularity unit in this work, which means the smallest granularity unit of the evaluation criteria is nugget.
2
+ nugget = {
3
+ "text": str,
4
+ "tokens": [str, ...], # the key evaluation criteria
5
+ "offsets": [int, ...] # the offset of each token
6
+ }
7
+
8
+ argument = { # argument inherits attributes from nugget
9
+ "text": str,
10
+ "nugget_type": str, # constrained by ontology
11
+ "argument_type": str, # constrained by ontology
12
+ "tokens": [str, ...],
13
+ "offsets": [int, ...]
14
+ }
15
+
16
+ event = {
17
+ "event_type": str, # constrained by ontology
18
+ "arguments": [argument, ...],
19
+ "trigger": nugget
20
+ }
21
+
22
+ document = {
23
+ "venue": str,
24
+ "title": str,
25
+ "abstract": str,
26
+ "doc_id": str,
27
+ "publication_year": int,
28
+ "sentences": [str, ...], # using spacy to split from document["abstract"]
29
+ "events": [event, ...],
30
+ "document": [str, ...] # all nugget offsets originate from here
31
+ }
32
+
33
+ datas = [document, ...]
dev.json ADDED
The diff for this file is too large to render. See raw diff
 
ontology.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "nugget_types": ["OG", "APP", "MOD", "FEA", "TAK", "DST", "LIM", "STR", "WEA", "DEG"],
3
+ "event_types": {
4
+ "PUR": {
5
+ "Aim": ["APP", "MOD", "FEA", "DST", "STR", "WEA", "TAK"],
6
+ "Condition": ["LIM"],
7
+ "Dataset": ["DST"]
8
+ },
9
+ "PRP": {
10
+ "Proposer": ["OG"],
11
+ "Content": ["APP", "MOD", "FEA", "DST", "TAK"],
12
+ "Target": ["E-PUR", "TAK", "FEA", "WEA"]
13
+ },
14
+ "WKS": {
15
+ "Researcher": ["OG"],
16
+ "Content": ["APP", "MOD", "FEA", "DST", "STR", "WEA", "TAK"],
17
+ "Condition": ["LIM"],
18
+ "Dataset": ["DST"],
19
+ "Target": ["E-PUR", "TAK", "STR", "WEA", "APP", "MOD", "FEA"]
20
+ },
21
+ "ITT": {
22
+ "Target": ["APP", "MOD", "FEA", "DST", "STR", "WEA", "TAK"],
23
+ "Condition": ["LIM"],
24
+ "Dataset": ["DST"]
25
+ },
26
+ "RWS": {
27
+ "Subject": ["APP", "MOD", "FEA", "DST"],
28
+ "BaseComponent": ["APP", "MOD", "FEA", "DST"],
29
+ "TriedComponent": ["APP", "MOD", "FEA", "DST"],
30
+ "Condition": ["LIM", "E-RWS"],
31
+ "Dataset": ["DST"],
32
+ "Target": ["E-PUR", "TAK", "STR", "WEA", "APP", "MOD", "FEA"]
33
+ },
34
+ "RWF": {
35
+ "Concern": ["APP", "MOD", "FEA", "DST", "STR", "WEA"],
36
+ "Fault": ["APP", "MOD", "FEA", "DST", "STR", "WEA"],
37
+ "Condition": ["LIM", "E-RWS", "E-RWF"],
38
+ "Dataset": ["DST"],
39
+ "Target": ["E-PUR", "TAK", "STR", "WEA"],
40
+ "Extent": ["DEG"]
41
+ },
42
+ "MDS": {
43
+ "BaseComponent": ["APP", "MOD", "FEA", "DST"],
44
+ "TriedComponent": ["APP", "MOD", "FEA", "DST"],
45
+ "Condition": ["LIM", "E-MDS"],
46
+ "Dataset": ["DST"],
47
+ "Target": ["E-PUR", "TAK", "STR", "WEA", "APP", "MOD", "FEA"]
48
+ },
49
+ "FIN": {
50
+ "Finder": ["OG"],
51
+ "Content": ["E-FAC", "E-CMP"]
52
+ },
53
+ "CMP": {
54
+ "Arg1": ["E-FAC", "APP", "MOD", "FEA", "DST"],
55
+ "Arg2": ["E-FAC", "APP", "MOD", "FEA", "DST"],
56
+ "Condition": ["LIM", "E-FAC"],
57
+ "Dataset": ["DST"],
58
+ "Result": ["STR", "WEA"],
59
+ "Metrics": ["TAK"],
60
+ "Extent": ["DEG"]
61
+ },
62
+ "FAC": {
63
+ "Subject": ["APP", "MOD", "FEA", "DST", "TAK", "STR", "WEA"],
64
+ "Object": ["APP", "MOD", "FEA", "DST", "TAK", "STR", "WEA"],
65
+ "Condition": ["LIM", "E-FAC"],
66
+ "Reason": ["LIM", "E-FAC"],
67
+ "Dataset": ["DST"],
68
+ "Target": ["E-PUR", "TAK", "STR", "WEA"],
69
+ "Extent": ["DEG"]
70
+ }
71
+ }
72
+ }
test.json ADDED
The diff for this file is too large to render. See raw diff
 
train.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81fe4cbf3a11e77c8d23c8f355f858a5d3ef93955c004b468f6550f924205f11
3
+ size 44334402