wics commited on
Commit
fd3d0bb
·
1 Parent(s): c016a97

Update ceval.py

Browse files
Files changed (1) hide show
  1. ceval.py +4 -4
ceval.py CHANGED
@@ -26,7 +26,7 @@ _HOMEPAGE = ""
26
  _LICENSE = ""
27
 
28
  _URLS = {
29
- "val": "https://raw.githubusercontent.com/wicsaax/ceval/main/ceval_val.jsonl",
30
  }
31
 
32
 
@@ -59,14 +59,14 @@ class ceval(datasets.GeneratorBasedBuilder):
59
 
60
  def _split_generators(self, dl_manager):
61
  urls = {
62
- "val": _URLS["val"]
63
  }
64
  data_dir = dl_manager.download_and_extract(urls)
65
  return [
66
  datasets.SplitGenerator(
67
- name=datasets.Split.VAL,
68
  # These kwargs will be passed to _generate_examples
69
- gen_kwargs={"filepath": data_dir["val"], "split": "val"},
70
  )
71
  ]
72
 
 
26
  _LICENSE = ""
27
 
28
  _URLS = {
29
+ "validation": "https://raw.githubusercontent.com/wicsaax/ceval/main/ceval_val.jsonl",
30
  }
31
 
32
 
 
59
 
60
  def _split_generators(self, dl_manager):
61
  urls = {
62
+ "validation": _URLS["validation"]
63
  }
64
  data_dir = dl_manager.download_and_extract(urls)
65
  return [
66
  datasets.SplitGenerator(
67
+ name=datasets.Split.VALIDATION,
68
  # These kwargs will be passed to _generate_examples
69
+ gen_kwargs={"filepath": data_dir["validation"], "split": "validation"},
70
  )
71
  ]
72