amitayusht commited on
Commit
754fe36
·
1 Parent(s): 68f61f4

Fixed croissant validation

Browse files
Files changed (2) hide show
  1. croissant.json +0 -60
  2. crossoint.py +26 -26
croissant.json CHANGED
@@ -170,66 +170,6 @@
170
  }
171
  }
172
  },
173
- {
174
- "@type": "cr:Field",
175
- "@id": "record/start_goal",
176
- "name": "start_goal",
177
- "description": "Main goal from start_goals list",
178
- "dataType": "sc:Text",
179
- "source": {
180
- "fileSet": {
181
- "@id": "all-json"
182
- },
183
- "extract": {
184
- "jsonPath": "training_data[*].start_goals[*].goal"
185
- }
186
- }
187
- },
188
- {
189
- "@type": "cr:Field",
190
- "@id": "record/start_hypotheses",
191
- "name": "start_hypotheses",
192
- "description": "List of hypotheses from start_goals",
193
- "dataType": "sc:Text",
194
- "source": {
195
- "fileSet": {
196
- "@id": "all-json"
197
- },
198
- "extract": {
199
- "jsonPath": "training_data[*].start_goals[*].hypotheses"
200
- }
201
- }
202
- },
203
- {
204
- "@type": "cr:Field",
205
- "@id": "record/end_goal",
206
- "name": "end_goal",
207
- "description": "Main goal from end_goals list",
208
- "dataType": "sc:Text",
209
- "source": {
210
- "fileSet": {
211
- "@id": "all-json"
212
- },
213
- "extract": {
214
- "jsonPath": "training_data[*].end_goals[*].goal"
215
- }
216
- }
217
- },
218
- {
219
- "@type": "cr:Field",
220
- "@id": "record/end_hypotheses",
221
- "name": "end_hypotheses",
222
- "description": "List of hypotheses from end_goals",
223
- "dataType": "sc:Text",
224
- "source": {
225
- "fileSet": {
226
- "@id": "all-json"
227
- },
228
- "extract": {
229
- "jsonPath": "training_data[*].end_goals[*].hypotheses"
230
- }
231
- }
232
- },
233
  {
234
  "@type": "cr:Field",
235
  "@id": "record/source_dataset",
 
170
  }
171
  }
172
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
  {
174
  "@type": "cr:Field",
175
  "@id": "record/source_dataset",
crossoint.py CHANGED
@@ -47,32 +47,32 @@ fields = [
47
  make_field("record/file_path", "file_path", "File path", "training_data[*].file_path"),
48
  ]
49
 
50
- fields += [
51
- make_field(
52
- "record/start_goal",
53
- "start_goal",
54
- "Main goal from start_goals list",
55
- "training_data[*].start_goals[*].goal",
56
- ),
57
- make_field(
58
- "record/start_hypotheses",
59
- "start_hypotheses",
60
- "List of hypotheses from start_goals",
61
- "training_data[*].start_goals[*].hypotheses",
62
- ),
63
- make_field(
64
- "record/end_goal",
65
- "end_goal",
66
- "Main goal from end_goals list",
67
- "training_data[*].end_goals[*].goal",
68
- ),
69
- make_field(
70
- "record/end_hypotheses",
71
- "end_hypotheses",
72
- "List of hypotheses from end_goals",
73
- "training_data[*].end_goals[*].hypotheses",
74
- ),
75
- ]
76
 
77
 
78
  # 5. Derived fields: dataset family and split from path
 
47
  make_field("record/file_path", "file_path", "File path", "training_data[*].file_path"),
48
  ]
49
 
50
+ # fields += [
51
+ # make_field(
52
+ # "record/start_goal",
53
+ # "start_goal",
54
+ # "Main goal from start_goals list",
55
+ # "training_data[*].start_goals[*].goal",
56
+ # ),
57
+ # make_field(
58
+ # "record/start_hypotheses",
59
+ # "start_hypotheses",
60
+ # "List of hypotheses from start_goals",
61
+ # "training_data[*].start_goals[*].hypotheses",
62
+ # ),
63
+ # make_field(
64
+ # "record/end_goal",
65
+ # "end_goal",
66
+ # "Main goal from end_goals list",
67
+ # "training_data[*].end_goals[*].goal",
68
+ # ),
69
+ # make_field(
70
+ # "record/end_hypotheses",
71
+ # "end_hypotheses",
72
+ # "List of hypotheses from end_goals",
73
+ # "training_data[*].end_goals[*].hypotheses",
74
+ # ),
75
+ # ]
76
 
77
 
78
  # 5. Derived fields: dataset family and split from path