Sefika commited on
Commit
293e537
·
verified ·
1 Parent(s): 670f2a7

Update README.md

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