amphora commited on
Commit
42ace1b
·
1 Parent(s): 4481e68

Update csatqa.py

Browse files
Files changed (1) hide show
  1. csatqa.py +3 -4
csatqa.py CHANGED
@@ -53,17 +53,16 @@ class CSATQA(datasets.GeneratorBasedBuilder):
53
  )
54
 
55
  def _split_generators(self, dl_manager):
 
56
  return [
57
  datasets.SplitGenerator(
58
  name=datasets.Split.TRAIN,
59
- # These kwargs will be passed to _generate_examples
60
  gen_kwargs={
61
- "filepath": "./data/data.jsonl",
62
- "split": "train",
63
  },
64
  ),
65
  ]
66
-
67
  def _generate_examples(self, filepath, split):
68
  with open(filepath, encoding="utf-8") as f:
69
  for key, row in enumerate(f):
 
53
  )
54
 
55
  def _split_generators(self, dl_manager):
56
+ data_dir = "data"
57
  return [
58
  datasets.SplitGenerator(
59
  name=datasets.Split.TRAIN,
 
60
  gen_kwargs={
61
+ "filepath": os.path.join(data_dir, "data.jsonl"),
 
62
  },
63
  ),
64
  ]
65
+
66
  def _generate_examples(self, filepath, split):
67
  with open(filepath, encoding="utf-8") as f:
68
  for key, row in enumerate(f):