File size: 981 Bytes
0fbb415
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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.
nugget = {
    "text": str,
    "tokens": [str, ...],  # the key evaluation criteria
    "offsets": [int, ...]  # the offset of each token
}

argument = {  # argument inherits attributes from nugget
    "text": str,
    "nugget_type": str,  # constrained by ontology
    "argument_type": str,  # constrained by ontology
    "tokens": [str, ...],
    "offsets": [int, ...]
}

event = {
    "event_type": str,  # constrained by ontology
    "arguments": [argument, ...],
    "trigger": nugget
}

document = {
    "venue": str,
    "title": str,
    "abstract": str,
    "doc_id": str,
    "publication_year": int,
    "sentences": [str, ...],  # using spacy to split from document["abstract"]
    "events": [event, ...],
    "document": [str, ...]  # all nugget offsets originate from here
}

datas = [document, ...]