Update calculations.py
Browse files- calculations.py +4 -12
calculations.py
CHANGED
@@ -1,17 +1,9 @@
|
|
1 |
import json
|
2 |
import datasets
|
3 |
-
from datasets import load_dataset
|
4 |
-
load_dataset("https://github.com/JorntHogema/calculations/blob/main/calculations.py")
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
"title": datasets.Value("string"),
|
10 |
-
"context": datasets.Value("string"),
|
11 |
-
"question": datasets.Value("string"),
|
12 |
-
"answers": datasets.Value("string"),
|
13 |
-
}
|
14 |
-
),
|
15 |
def _info(self):
|
16 |
return datasets.DatasetInfo(
|
17 |
description=_DESCRIPTION,
|
@@ -29,4 +21,4 @@ def _info(self):
|
|
29 |
supervised_keys=None,
|
30 |
homepage="https://rajpurkar.github.io/SQuAD-explorer/",
|
31 |
citation=_CITATION,
|
32 |
-
)
|
|
|
1 |
import json
|
2 |
import datasets
|
|
|
|
|
3 |
|
4 |
+
_URL = "https://github.com/JorntHogema/calculations/blob/e010d348f0c4ac89e154198dbc7bc4d1026e8204/"
|
5 |
+
_URLS = {"train": _URL + "calculations.json"}
|
6 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
def _info(self):
|
8 |
return datasets.DatasetInfo(
|
9 |
description=_DESCRIPTION,
|
|
|
21 |
supervised_keys=None,
|
22 |
homepage="https://rajpurkar.github.io/SQuAD-explorer/",
|
23 |
citation=_CITATION,
|
24 |
+
)
|