Datasets:
Update csatqa.py
Browse files
csatqa.py
CHANGED
@@ -5,8 +5,6 @@ import datasets
|
|
5 |
import json
|
6 |
import pandas as pd
|
7 |
|
8 |
-
pd.read_json("data/csatqa.json")
|
9 |
-
|
10 |
_CITATION = """\
|
11 |
"""
|
12 |
|
@@ -55,12 +53,13 @@ class CSATQA(datasets.GeneratorBasedBuilder):
|
|
55 |
)
|
56 |
|
57 |
def _split_generators(self, dl_manager):
|
58 |
-
|
|
|
59 |
return [
|
60 |
datasets.SplitGenerator(
|
61 |
name=datasets.Split.TRAIN,
|
62 |
gen_kwargs={
|
63 |
-
"filepath":
|
64 |
"split": "train"
|
65 |
},
|
66 |
),
|
|
|
5 |
import json
|
6 |
import pandas as pd
|
7 |
|
|
|
|
|
8 |
_CITATION = """\
|
9 |
"""
|
10 |
|
|
|
53 |
)
|
54 |
|
55 |
def _split_generators(self, dl_manager):
|
56 |
+
|
57 |
+
train_path = dl_manager.download_and_extract("./data/csatqa.json")
|
58 |
return [
|
59 |
datasets.SplitGenerator(
|
60 |
name=datasets.Split.TRAIN,
|
61 |
gen_kwargs={
|
62 |
+
"filepath": train_path,
|
63 |
"split": "train"
|
64 |
},
|
65 |
),
|