Datasets:

Modalities:
Text
Formats:
json
Languages:
English
ArXiv:
Libraries:
Datasets
pandas
License:
dubniczky commited on
Commit
16c4f8d
·
verified ·
1 Parent(s): 3c571c1

Cleaned up view testing

Browse files
Files changed (3) hide show
  1. .gitattributes +0 -4
  2. .gitignore +4 -0
  3. check.py +0 -27
.gitattributes CHANGED
@@ -59,7 +59,3 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
  # JSON datasets
61
  *.json filter=lfs diff=lfs merge=lfs -text
62
- DIA[[:space:]]Benchmark-k1.json filter=lfs diff=lfs merge=lfs -text
63
- DIA[[:space:]]Benchmark-k10.json filter=lfs diff=lfs merge=lfs -text
64
- DIA[[:space:]]Benchmark-k100.json filter=lfs diff=lfs merge=lfs -text
65
- DIA[[:space:]]Benchmark-k5.json filter=lfs diff=lfs merge=lfs -text
 
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
  # JSON datasets
61
  *.json filter=lfs diff=lfs merge=lfs -text
 
 
 
 
.gitignore ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ .DS_Store
2
+
3
+ .venv/
4
+ __pycache__/
check.py DELETED
@@ -1,27 +0,0 @@
1
- import json
2
- from datasets import load_dataset
3
-
4
- with open('DIA-Benchmark-k100.json') as f:
5
- dataset = json.load(f)
6
-
7
- for i, q in enumerate(dataset['questions']):
8
- # Challenge
9
- assert 'challenge' in q, f"Missing 'challenge' field in question {i}: \n{q}"
10
- challenge = q['challenge']
11
- assert isinstance(challenge['template_id'], int), f"Invalid 'template_id' field in question {i}:\n{q}"
12
- assert isinstance(challenge['instance'], int), f"Invalid 'instance' field in question {i}:\n{q}"
13
- assert isinstance(challenge['level'], str), f"Invalid 'level' field in question {i}:\n{q}"
14
- assert isinstance(challenge['category'], str), f"Invalid 'instance' field in question {i}:\n{q}"
15
- assert isinstance(challenge['adversarial'], bool), f"Invalid 'adversarial' field in question {i}:\n{q}"
16
- assert isinstance(challenge['description'], str), f"Invalid 'description' field in question {i}:\n{q}"
17
- assert isinstance(challenge['instructions'], str), f"Invalid 'instructions' field in question {i}:\n{q}"
18
-
19
- # Solution
20
- assert 'solution' in q, f"Missing 'solution' field in question {i}: \n{q}"
21
- solution = q['solution']
22
- assert isinstance(solution['challenge_solution'], str), f"Invalid 'challenge_solution' field in question {i}:\n{q}"
23
- assert isinstance(solution['solution_explanation'], str), f"Invalid 'solution_explanation' field in question {i}:\n{q}"
24
-
25
-
26
-
27
- dataset = load_dataset("json", data_files="DIA-Benchmark-k100.json", field="questions")