Spaces:
Runtime error
Runtime error
Sebastian Gehrmann
commited on
Commit
•
165989e
1
Parent(s):
f922ab7
formatting/key_to_question.json
CHANGED
@@ -7,7 +7,6 @@
|
|
7 |
"title": "Summary",
|
8 |
"info": "Provide a summary of this dataset in 3-4 sentences.",
|
9 |
"flags": [
|
10 |
-
"quick"
|
11 |
],
|
12 |
"scope": "telescope"
|
13 |
}
|
@@ -18,7 +17,6 @@
|
|
18 |
"title": "Webpage",
|
19 |
"info": "What is the webpage for the dataset (if it exists)?",
|
20 |
"flags": [
|
21 |
-
"quick"
|
22 |
],
|
23 |
"scope": "telescope"
|
24 |
},
|
@@ -44,7 +42,7 @@
|
|
44 |
"flags": [
|
45 |
""
|
46 |
],
|
47 |
-
"scope": "
|
48 |
},
|
49 |
"contact-name": {
|
50 |
"title": "Contact Name",
|
@@ -227,7 +225,6 @@
|
|
227 |
"title": "Reason for Structure",
|
228 |
"info": "How was the dataset structure determined?",
|
229 |
"flags": [
|
230 |
-
"quick"
|
231 |
],
|
232 |
"scope": "microscope"
|
233 |
},
|
@@ -415,7 +412,7 @@
|
|
415 |
"flags": [
|
416 |
""
|
417 |
],
|
418 |
-
"scope": "
|
419 |
},
|
420 |
"original-evaluation": {
|
421 |
"title": "Proposed Evaluation",
|
@@ -504,7 +501,7 @@
|
|
504 |
"flags": [
|
505 |
""
|
506 |
],
|
507 |
-
"scope": "
|
508 |
},
|
509 |
"crowdsourced": {
|
510 |
"title": "Where was it crowdsourced?",
|
@@ -560,7 +557,7 @@
|
|
560 |
"flags": [
|
561 |
""
|
562 |
],
|
563 |
-
"scope": "
|
564 |
},
|
565 |
"is-filtered": {
|
566 |
"title": "Was Data Filtered?",
|
@@ -576,7 +573,7 @@
|
|
576 |
"flags": [
|
577 |
""
|
578 |
],
|
579 |
-
"scope": "
|
580 |
}
|
581 |
},
|
582 |
"annotations": {
|
|
|
7 |
"title": "Summary",
|
8 |
"info": "Provide a summary of this dataset in 3-4 sentences.",
|
9 |
"flags": [
|
|
|
10 |
],
|
11 |
"scope": "telescope"
|
12 |
}
|
|
|
17 |
"title": "Webpage",
|
18 |
"info": "What is the webpage for the dataset (if it exists)?",
|
19 |
"flags": [
|
|
|
20 |
],
|
21 |
"scope": "telescope"
|
22 |
},
|
|
|
42 |
"flags": [
|
43 |
""
|
44 |
],
|
45 |
+
"scope": "microscope"
|
46 |
},
|
47 |
"contact-name": {
|
48 |
"title": "Contact Name",
|
|
|
225 |
"title": "Reason for Structure",
|
226 |
"info": "How was the dataset structure determined?",
|
227 |
"flags": [
|
|
|
228 |
],
|
229 |
"scope": "microscope"
|
230 |
},
|
|
|
412 |
"flags": [
|
413 |
""
|
414 |
],
|
415 |
+
"scope": "periscope"
|
416 |
},
|
417 |
"original-evaluation": {
|
418 |
"title": "Proposed Evaluation",
|
|
|
501 |
"flags": [
|
502 |
""
|
503 |
],
|
504 |
+
"scope": "telescope"
|
505 |
},
|
506 |
"crowdsourced": {
|
507 |
"title": "Where was it crowdsourced?",
|
|
|
557 |
"flags": [
|
558 |
""
|
559 |
],
|
560 |
+
"scope": "microscope"
|
561 |
},
|
562 |
"is-filtered": {
|
563 |
"title": "Was Data Filtered?",
|
|
|
573 |
"flags": [
|
574 |
""
|
575 |
],
|
576 |
+
"scope": "microscope"
|
577 |
}
|
578 |
},
|
579 |
"annotations": {
|
formatting/reformat_json.py
CHANGED
@@ -96,6 +96,8 @@ def construct_json(dataset_name: str, data_card_data: dict, text_by_key: dict):
|
|
96 |
for final_key, final_content in second_content.items():
|
97 |
if final_key == "section-title":
|
98 |
continue
|
|
|
|
|
99 |
try:
|
100 |
total_questions += 1
|
101 |
answer = data_card_data[main_key][second_key].get(final_key, "N/A")
|
|
|
96 |
for final_key, final_content in second_content.items():
|
97 |
if final_key == "section-title":
|
98 |
continue
|
99 |
+
if final_key == "dataset" and second_key == "what" and main_key == "dataset":
|
100 |
+
continue
|
101 |
try:
|
102 |
total_questions += 1
|
103 |
answer = data_card_data[main_key][second_key].get(final_key, "N/A")
|