Update edgar_corpus.py
Browse files- edgar_corpus.py +4 -1
edgar_corpus.py
CHANGED
@@ -82,7 +82,8 @@ class EdgarCorpus(datasets.GeneratorBasedBuilder):
|
|
82 |
|
83 |
# Add test/train/validate files to url bases
|
84 |
urls = {k+'_'+item: v+item+'.jsonl' for item in ['train', 'test', 'validate'] for k, v in urls.items()}
|
85 |
-
|
|
|
86 |
# We have the unzipped files by directory.
|
87 |
data_dir = dl_manager.download_and_extract(urls)
|
88 |
|
@@ -92,6 +93,8 @@ class EdgarCorpus(datasets.GeneratorBasedBuilder):
|
|
92 |
"train": {k: v for k, v in data_dir.items() if 'train' in k},
|
93 |
"validate": {k: v for k, v in data_dir.items() if 'validate' in k},
|
94 |
}
|
|
|
|
|
95 |
|
96 |
return [
|
97 |
datasets.SplitGenerator(
|
|
|
82 |
|
83 |
# Add test/train/validate files to url bases
|
84 |
urls = {k+'_'+item: v+item+'.jsonl' for item in ['train', 'test', 'validate'] for k, v in urls.items()}
|
85 |
+
|
86 |
+
print(urls)
|
87 |
# We have the unzipped files by directory.
|
88 |
data_dir = dl_manager.download_and_extract(urls)
|
89 |
|
|
|
93 |
"train": {k: v for k, v in data_dir.items() if 'train' in k},
|
94 |
"validate": {k: v for k, v in data_dir.items() if 'validate' in k},
|
95 |
}
|
96 |
+
|
97 |
+
print(filepaths)
|
98 |
|
99 |
return [
|
100 |
datasets.SplitGenerator(
|