-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.json
309 lines (309 loc) · 9.78 KB
/
schema.json
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
{
"$id": "https://andrefs.com/schemas/2023/SemMeasures",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"definitions": {
"Metadata": {
"additionalProperties": false,
"properties": {
"date": {
"description": "The date the dataset was published",
"pattern": "^[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?$",
"type": "string"
},
"description": {
"description": "A description of the dataset",
"type": "string"
},
"domain": {
"description": "The domain of the dataset",
"enum": ["biomedical", "general", "geographical"],
"type": "string"
},
"downloadUrls": {
"description": "URL(s) to download the dataset files",
"items": {
"format": "uri",
"type": "string"
},
"type": "array"
},
"languages": {
"description": "The languages used in the dataset",
"items": {
"enum": ["en", "pt"],
"type": "string"
},
"type": "array"
},
"measureTypes": {
"description": "Which type of measures are used to compare the words",
"items": {
"enum": ["relatedness", "similarity"],
"type": "string"
},
"type": "array"
},
"name": {
"description": "The name of the dataset",
"type": "string"
},
"papers": {
"description": "Information about the scientific papers describing the dataset",
"items": {
"$ref": "https://andrefs.com/schemas/2023/SemMeasures#/definitions/Paper"
},
"type": "array"
},
"tags": {
"description": "Tags for the dataset content\nExamples:\n- mturk - the dataset was created using crowdsourcing (e.g. Amazon Mechanical Turk or CrowdFlower)\n- entities - the dataset contains entities (e.g. people, places, organizations)",
"items": {
"type": "string"
},
"type": "array"
},
"urls": {
"description": "Web sites containing information about the dataset",
"items": {
"format": "uri",
"type": "string"
},
"type": "array"
}
},
"required": [
"date",
"description",
"domain",
"downloadUrls",
"languages",
"measureTypes",
"name",
"papers",
"urls"
],
"type": "object"
},
"Paper": {
"additionalProperties": false,
"properties": {
"title": {
"description": "The title of the paper",
"type": "string"
},
"url": {
"description": "The URL where the paper can be found",
"format": "uri",
"type": "string"
}
},
"required": ["title"],
"type": "object"
},
"Partition": {
"additionalProperties": false,
"properties": {
"data": {
"description": "The data for the partition",
"items": {
"$ref": "https://andrefs.com/schemas/2023/SemMeasures#/definitions/PartitionData"
},
"type": "array"
},
"id": {
"description": "An identifier for the partition",
"type": "string"
},
"measureType": {
"description": "Which type of measure is used to compare the words",
"enum": ["relatedness", "similarity"],
"type": "string"
},
"metrics": {
"additionalProperties": false,
"description": "Evaluation metrics for the partition",
"properties": {
"annotators": {
"additionalProperties": false,
"description": "The number of annotators",
"properties": {
"minEachPair": {
"description": "The minimum number of annotators for each pair",
"type": ["null", "number"]
},
"total": {
"description": "The total number of annotators",
"type": ["null", "number"]
}
},
"required": ["minEachPair", "total"],
"type": "object"
},
"interAgreement": {
"additionalProperties": false,
"description": "Inter annotator agreement metrics",
"properties": {
"pearson": {
"description": "Pearson correlation coefficient between annotators",
"type": ["null", "number"]
},
"spearman": {
"description": "Spearman correlation coefficient between annotators",
"type": ["null", "number"]
}
},
"required": ["pearson", "spearman"],
"type": "object"
},
"intraAgreement": {
"additionalProperties": false,
"description": "Intra annotator agreement metrics",
"properties": {
"pearson": {
"description": "Pearson correlation coefficient between annotators",
"type": ["null", "number"]
},
"spearman": {
"description": "Spearman correlation coefficient between annotators",
"type": ["null", "number"]
}
},
"required": ["pearson", "spearman"],
"type": "object"
}
},
"required": ["annotators", "interAgreement"],
"type": "object"
},
"scale": {
"additionalProperties": false,
"description": "The scale of the semantic measure values",
"properties": {
"value": {
"additionalProperties": false,
"description": "The scale for the average value",
"properties": {
"max": {
"description": "The maximum value of the scale",
"minimum": 1,
"type": "number"
},
"min": {
"description": "The minimum value of the scale",
"type": "number"
}
},
"required": ["max", "min"],
"type": "object"
},
"values": {
"additionalProperties": false,
"description": "The scale for the individual annotator values",
"properties": {
"max": {
"description": "The maximum value of the scale",
"minimum": 1,
"type": "number"
},
"min": {
"description": "The minimum value of the scale",
"type": "number"
}
},
"required": ["max", "min"],
"type": "object"
}
},
"required": ["value"],
"type": "object"
}
},
"required": ["data", "id", "measureType", "metrics", "scale"],
"type": "object"
},
"PartitionData": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"stddev": {
"description": "The standard deviation of the numeric values of the semantic measure for the pair",
"type": "number"
},
"term1": {
"description": "The first word in the pair",
"type": "string"
},
"term2": {
"description": "The second word in the pair",
"type": "string"
},
"value": {
"description": "The averaged numeric value of the semantic measure for the pair",
"type": "number"
},
"values": {
"description": "The individual numeric values of the semantic measure for the pair",
"items": {
"type": ["null", "number"]
},
"type": "array"
}
},
"required": ["term1", "term2", "value"],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"term1": {
"description": "The first word in the pair",
"type": "string"
},
"term2": {
"description": "The second word in the pair",
"type": "string"
},
"value": {
"description": "The averaged numeric value of the semantic measure for the pair",
"type": "number"
},
"values": {
"description": "The individual numeric values of the semantic measure for the pair",
"items": {
"type": "number"
},
"type": "array"
}
},
"required": ["term1", "term2", "values"],
"type": "object"
}
]
}
},
"properties": {
"id": {
"description": "An identifier for the dataset",
"minLength": 3,
"type": "string"
},
"metadata": {
"$ref": "https://andrefs.com/schemas/2023/SemMeasures#/definitions/Metadata",
"description": "Metadata for the dataset"
},
"originalInstructions": {
"description": "The original instructions given to the annotators",
"type": "string"
},
"partitions": {
"description": "The partitions containing the dataset data",
"items": {
"$ref": "https://andrefs.com/schemas/2023/SemMeasures#/definitions/Partition"
},
"type": "array"
}
},
"required": ["id", "metadata", "partitions"],
"type": "object"
}