amphora commited on
Commit
83884fc
1 Parent(s): b0dec8d

Update csatqa.py

Browse files
Files changed (1) hide show
  1. csatqa.py +3 -4
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
- #data_dir = "csatqa/data"
 
59
  return [
60
  datasets.SplitGenerator(
61
  name=datasets.Split.TRAIN,
62
  gen_kwargs={
63
- "filepath": "./data/csatqa.json",
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
  ),