Jornt commited on
Commit
85de5eb
1 Parent(s): 65bc9cf

Upload 2 files

Browse files
Files changed (2) hide show
  1. calculations.csv +21 -0
  2. calculations.py +24 -0
calculations.csv ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ id,title,context,question,answers
2
+ "calc1","one","1 x 1 = 1","what is 1 x 1?","1"
3
+ "calc2","two","1 x 2 = 2","what is 1 x 2?","2"
4
+ "calc3","one","1 x 3 = 3","what is 1 x 3?","3"
5
+ "calc4","two","1 x 4 = 4","what is 1 x 4?","4"
6
+ "calc5","one","1 x 5 = 5","what is 1 x 5?","5"
7
+ "calc6","two","1 x 6 = 6","what is 1 x 6?","6"
8
+ "calc7","one","1 x 7 = 7","what is 1 x 7?","7"
9
+ "calc8","two","1 x 8 = 8","what is 1 x 8?","8"
10
+ "calc9","one","1 x 9 = 9","what is 1 x 9?","9"
11
+ "calc10","two","1 x 10 = 10","what is 1 x 10?","10"
12
+ "calc11","one","2 x 1 = 2","what is 2 x 1?","2"
13
+ "calc12","two","2 x 2 = 4","what is 2 x 2?","4"
14
+ "calc13","one","2 x 3 = 6","what is 2 x 3?","6"
15
+ "calc14","two","2 x 4 = 8","what is 2 x 4?","8"
16
+ "calc15","one","2 x 5 = 10","what is 2 x 5?","10"
17
+ "calc16","two","2 x 6 = 12","what is 2 x 6?","12"
18
+ "calc17","one","2 x 7 = 14","what is 2 x 7?","14"
19
+ "calc18","two","2 x 8 = 16","what is 2 x 8?","16"
20
+ "calc19","one","2 x 9 = 18","what is 2 x 9?","18"
21
+ "calc20","two","2 x 10 = 20","what is 2 x 10?","20"
calculations.py ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #calculations.py
2
+ from datasets import load_dataset
3
+ load_dataset("https://huggingface.co/datasets/Jornt/calculations")
4
+
5
+ def _info(self):
6
+ return datasets.DatasetInfo(
7
+ description=_DESCRIPTION,
8
+ features=datasets.Features(
9
+ {
10
+ "id": datasets.Value("string"),
11
+ "title": datasets.Value("string"),
12
+ "context": datasets.Value("string"),
13
+ "question": datasets.Value("string"),
14
+ "answers": datasets.features.Sequence(
15
+ {"text": datasets.Value("string"), "answer_start": datasets.Value("int32"),}
16
+ ),
17
+ }
18
+ ),
19
+ # No default supervised_keys (as we have to pass both question
20
+ # and context as input).
21
+ supervised_keys=None,
22
+ homepage="",
23
+ citation=_CITATION,
24
+ )