Update brwac-clean.py
Browse files- brwac-clean.py +1 -0
brwac-clean.py
CHANGED
@@ -43,6 +43,7 @@ class BrwacClean(datasets.GeneratorBasedBuilder):
|
|
43 |
|
44 |
def _split_generators(self, dl_manager):
|
45 |
files = _BASE_DIR + "file_names.txt"
|
|
|
46 |
with open(files, encoding="utf-8") as f:
|
47 |
data_filenames = [line.split("\t")[0] for line in f if line]
|
48 |
data_urls = [self.config.base_data_url + data_filename.strip() for data_filename in data_filenames]
|
|
|
43 |
|
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]
|