yangwang825 commited on
Commit
0d5e602
1 Parent(s): 2e6cfa3

Update MARC.py

Browse files
Files changed (1) hide show
  1. MARC.py +2 -2
MARC.py CHANGED
@@ -27,10 +27,10 @@ class MARC(datasets.GeneratorBasedBuilder):
27
  def _split_generators(self, dl_manager: datasets.DownloadManager) -> tp.List[datasets.SplitGenerator]:
28
  path = os.getcwd()
29
  train_filepath = os.path.join(path, 'train.json')
30
- test_filepath = os.path.join(path, 'test.json')
31
  return [
32
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={'filepath': train_filepath}),
33
- datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={'filepath': test_filepath}),
34
  ]
35
 
36
  def _generate_examples(self, filepath):
 
27
  def _split_generators(self, dl_manager: datasets.DownloadManager) -> tp.List[datasets.SplitGenerator]:
28
  path = os.getcwd()
29
  train_filepath = os.path.join(path, 'train.json')
30
+ dev_filepath = os.path.join(path, 'dev.json')
31
  return [
32
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={'filepath': train_filepath}),
33
+ datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={'filepath': dev_filepath}),
34
  ]
35
 
36
  def _generate_examples(self, filepath):