yangwang825
commited on
Commit
•
0d5e602
1
Parent(s):
2e6cfa3
Update MARC.py
Browse files
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 |
-
|
31 |
return [
|
32 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={'filepath': train_filepath}),
|
33 |
-
datasets.SplitGenerator(name=datasets.Split.
|
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):
|