Update brwac-clean.py
Browse files- brwac-clean.py +3 -0
brwac-clean.py
CHANGED
@@ -44,10 +44,13 @@ class BrwacClean(datasets.GeneratorBasedBuilder):
|
|
44 |
def _split_generators(self, dl_manager):
|
45 |
files = _BASE_DIR + "file_names.txt"
|
46 |
files = dl_manager.download(files)
|
|
|
47 |
with open(files, encoding="utf-8") as f:
|
48 |
data_filenames = [line.split("\t")[0] for line in f if line]
|
49 |
data_urls = [self.config.base_data_url + data_filename.strip() for data_filename in data_filenames]
|
50 |
downloaded_files = dl_manager.download(data_urls)
|
|
|
|
|
51 |
return [
|
52 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepaths": downloaded_files}),
|
53 |
]
|
|
|
44 |
def _split_generators(self, dl_manager):
|
45 |
files = _BASE_DIR + "file_names.txt"
|
46 |
files = dl_manager.download(files)
|
47 |
+
print(files)
|
48 |
with open(files, encoding="utf-8") as f:
|
49 |
data_filenames = [line.split("\t")[0] for line in f if line]
|
50 |
data_urls = [self.config.base_data_url + data_filename.strip() for data_filename in data_filenames]
|
51 |
downloaded_files = dl_manager.download(data_urls)
|
52 |
+
print(downloaded_files)
|
53 |
+
exit()
|
54 |
return [
|
55 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepaths": downloaded_files}),
|
56 |
]
|