Commit
·
a9a6f01
1
Parent(s):
8b1e67e
Update the_legal_pile_preprocessed.py
Browse files
the_legal_pile_preprocessed.py
CHANGED
|
@@ -38,8 +38,8 @@ class LegalPileConfig(datasets.BuilderConfig):
|
|
| 38 |
def __init__(self, name, n_files, **kwargs):
|
| 39 |
super(LegalPileConfig, self).__init__(**kwargs)
|
| 40 |
self.name = name
|
| 41 |
-
self.filepath = f'https://huggingface.co/datasets/lexlms/the_legal_pile_preprocessed/
|
| 42 |
-
f'resolve/main/{self.name}.jsonl.tar.xz'
|
| 43 |
self.n_files = n_files
|
| 44 |
|
| 45 |
|
|
@@ -122,7 +122,7 @@ class LegalPile(datasets.GeneratorBasedBuilder):
|
|
| 122 |
)
|
| 123 |
|
| 124 |
def _split_generators(self, dl_manager):
|
| 125 |
-
train_data_dir = dl_manager.download([self.config.filepath.replace('.jsonl.xz', f'_train_{idx+1}.jsonl.xz')
|
| 126 |
for idx in range(self.config.n_files)])
|
| 127 |
# test_data_dir = dl_manager.download([self.config.filepath.replace('.jsonl.xz', 'test.jsonl.xz')])
|
| 128 |
|
|
|
|
| 38 |
def __init__(self, name, n_files, **kwargs):
|
| 39 |
super(LegalPileConfig, self).__init__(**kwargs)
|
| 40 |
self.name = name
|
| 41 |
+
self.filepath = f'https://huggingface.co/datasets/lexlms/the_legal_pile_preprocessed/' \
|
| 42 |
+
f'resolve/main/data_files/{self.name}.jsonl.tar.xz'
|
| 43 |
self.n_files = n_files
|
| 44 |
|
| 45 |
|
|
|
|
| 122 |
)
|
| 123 |
|
| 124 |
def _split_generators(self, dl_manager):
|
| 125 |
+
train_data_dir = dl_manager.download([self.config.filepath.replace('.jsonl.tar.xz', f'_train_{idx+1}.jsonl.tar.xz')
|
| 126 |
for idx in range(self.config.n_files)])
|
| 127 |
# test_data_dir = dl_manager.download([self.config.filepath.replace('.jsonl.xz', 'test.jsonl.xz')])
|
| 128 |
|