Datasets:
Update csatqa.py
Browse files
csatqa.py
CHANGED
@@ -3,7 +3,9 @@ import os
|
|
3 |
|
4 |
import datasets
|
5 |
import json
|
|
|
6 |
|
|
|
7 |
|
8 |
_CITATION = """\
|
9 |
"""
|
@@ -58,7 +60,7 @@ class CSATQA(datasets.GeneratorBasedBuilder):
|
|
58 |
datasets.SplitGenerator(
|
59 |
name=datasets.Split.TRAIN,
|
60 |
gen_kwargs={
|
61 |
-
"filepath": "./csatqa.json",
|
62 |
"split": "train"
|
63 |
},
|
64 |
),
|
|
|
3 |
|
4 |
import datasets
|
5 |
import json
|
6 |
+
import pandas as pd
|
7 |
|
8 |
+
pd.read_json("data/csatqa.json")
|
9 |
|
10 |
_CITATION = """\
|
11 |
"""
|
|
|
60 |
datasets.SplitGenerator(
|
61 |
name=datasets.Split.TRAIN,
|
62 |
gen_kwargs={
|
63 |
+
"filepath": "./data/csatqa.json",
|
64 |
"split": "train"
|
65 |
},
|
66 |
),
|