Sefika commited on
Commit
a404c47
·
verified ·
1 Parent(s): 4ce3f25

Upload fewrel_croissant.json

Browse files
Files changed (1) hide show
  1. fewrel_croissant.json +149 -0
fewrel_croissant.json ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "@context": {
3
+ "@language": "en",
4
+ "@vocab": "https://schema.org/",
5
+ "cr": "http://mlcommons.org/croissant/",
6
+ "sc": "https://schema.org/",
7
+ "conformsTo": "cr:conformsTo",
8
+ "dataType": { "@id": "cr:dataType", "@type": "@vocab" },
9
+ "extract": "cr:extract",
10
+ "fileObject": "cr:fileObject",
11
+ "field": "cr:field",
12
+ "jsonPath": "cr:jsonPath",
13
+ "recordSet": "cr:recordSet",
14
+ "source": "cr:source"
15
+ },
16
+ "@type": "sc:Dataset",
17
+ "name": "InverseRelationsBenchmark",
18
+ "description": "Benchmark based on FewRel with original entity mentions and synthetic substitutions for robustness testing.",
19
+ "conformsTo": "http://mlcommons.org/croissant/1.0",
20
+ "distribution": [
21
+ {
22
+ "@type": "cr:FileObject",
23
+ "@id": "original_fewrel",
24
+ "name": "original_fewrel_inverse.json",
25
+ "contentUrl": "original_fewrel_inverse.json",
26
+ "encodingFormat": "application/json"
27
+ },
28
+ {
29
+ "@type": "cr:FileObject",
30
+ "@id": "synthetic_fewrel",
31
+ "name": "synthetic_fewrel_inverse.json",
32
+ "contentUrl": "synthetic_fewrel_inverse.json",
33
+ "encodingFormat": "application/json"
34
+ },
35
+ {
36
+ "@type": "cr:FileObject",
37
+ "@id": "fewrel_meta",
38
+ "name": "fewrel_inverse_relation_descriptions",
39
+ "contentUrl": "fewrel_inverse_relations.json",
40
+ "encodingFormat": "application/json"
41
+ }
42
+ ],
43
+ "recordSet": [
44
+ {
45
+ "@type": "cr:RecordSet",
46
+ "name": "fewrel_records",
47
+ "description": "Records from the FewRel dataset distribution.",
48
+ "field": [
49
+ {
50
+ "@type": "cr:Field",
51
+ "name": "head_to_tail",
52
+ "description": "The relation ID from head to tail.",
53
+ "dataType": "sc:Text",
54
+ "source": {
55
+ "fileObject": { "@id": "original_fewrel" },
56
+ "extract": { "jsonPath": "$[*].head_to_tail" }
57
+ }
58
+ },
59
+ {
60
+ "@type": "cr:Field",
61
+ "name": "tail_to_head",
62
+ "description": "The inverse relation ID.",
63
+ "dataType": "sc:Text",
64
+ "source": {
65
+ "fileObject": { "@id": "original_fewrel" },
66
+ "extract": { "jsonPath": "$[*].tail_to_head" }
67
+ }
68
+ },
69
+ {
70
+ "@type": "cr:Field",
71
+ "name": "tokens",
72
+ "description": "Tokenized sentence representation.",
73
+ "dataType": "sc:List",
74
+ "source": {
75
+ "fileObject": { "@id": "original_fewrel" },
76
+ "extract": { "jsonPath": "$[*].tokens" }
77
+ }
78
+ },
79
+ {
80
+ "@type": "cr:Field",
81
+ "name": "head",
82
+ "description": "Array containing [label, Wikidata ID, token indices] for the head entity.",
83
+ "dataType": "sc:List",
84
+ "source": {
85
+ "fileObject": { "@id": "original_fewrel" },
86
+ "extract": { "jsonPath": "$[*].head" }
87
+ }
88
+ },
89
+ {
90
+ "@type": "cr:Field",
91
+ "name": "tail",
92
+ "description": "Array containing [label, Wikidata ID, token indices] for the tail entity.",
93
+ "dataType": "sc:List",
94
+ "source": {
95
+ "fileObject": { "@id": "original_fewrel" },
96
+ "extract": { "jsonPath": "$[*].tail" }
97
+ }
98
+ },
99
+ {
100
+ "@type": "cr:Field",
101
+ "name": "artificial_data",
102
+ "description": "Mapping of original to synthetic entity names.",
103
+ "dataType": "sc:List",
104
+ "source": {
105
+ "fileObject": { "@id": "synthetic_fewrel" },
106
+ "extract": { "jsonPath": "$[*].artificial_data" }
107
+ }
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ "@type": "cr:RecordSet",
113
+ "name": "relation_metadata",
114
+ "description": "Metadata for FewRel property IDs.",
115
+ "field": [
116
+ {
117
+ "@type": "cr:Field",
118
+ "name": "pid",
119
+ "description": "The Wikidata property ID for the FewRel relation.",
120
+ "dataType": "sc:Text",
121
+ "source": {
122
+ "fileObject": { "@id": "fewrel_meta" },
123
+ "extract": { "jsonPath": "$[*].pid" }
124
+ }
125
+ },
126
+ {
127
+ "@type": "cr:Field",
128
+ "name": "name",
129
+ "description": "The name of the relation.",
130
+ "dataType": "sc:Text",
131
+ "source": {
132
+ "fileObject": { "@id": "fewrel_meta" },
133
+ "extract": { "jsonPath": "$[*].name" }
134
+ }
135
+ },
136
+ {
137
+ "@type": "cr:Field",
138
+ "name": "description",
139
+ "description": "Semantic definition of the relation.",
140
+ "dataType": "sc:Text",
141
+ "source": {
142
+ "fileObject": { "@id": "fewrel_meta" },
143
+ "extract": { "jsonPath": "$[*].definition" }
144
+ }
145
+ }
146
+ ]
147
+ }
148
+ ]
149
+ }