Update brwac-clean.py
Browse files- brwac-clean.py +2 -9
brwac-clean.py
CHANGED
@@ -8,7 +8,7 @@ import datasets
|
|
8 |
|
9 |
logger = datasets.logging.get_logger(__name__)
|
10 |
|
11 |
-
|
12 |
_BASE_DATA_URL = "https://drive.google.com/file/d/"
|
13 |
|
14 |
|
@@ -42,14 +42,7 @@ class BrwacClean(datasets.GeneratorBasedBuilder):
|
|
42 |
)
|
43 |
|
44 |
def _split_generators(self, dl_manager):
|
45 |
-
|
46 |
-
files = dl_manager.download(files)
|
47 |
-
url = "https://drive.google.com/file/d/10YelrSn-sjGptw2ns5uZUEMSa58VNmF1"
|
48 |
-
|
49 |
-
with open(files, encoding="utf-8") as f:
|
50 |
-
data_filenames = [line.split("\t")[0] for line in f if line]
|
51 |
-
#data_urls = [self.config.base_data_url + data_filename.strip() for data_filename in data_filenames]
|
52 |
-
data_urls = [url for data_filename in data_filenames]
|
53 |
downloaded_files = dl_manager.download(data_urls)
|
54 |
|
55 |
return [
|
|
|
8 |
|
9 |
logger = datasets.logging.get_logger(__name__)
|
10 |
|
11 |
+
_FILES = ['10YelrSn-sjGptw2ns5uZUEMSa58VNmF1']
|
12 |
_BASE_DATA_URL = "https://drive.google.com/file/d/"
|
13 |
|
14 |
|
|
|
42 |
)
|
43 |
|
44 |
def _split_generators(self, dl_manager):
|
45 |
+
data_urls = [self.config.base_data_url + data_filename for data_filename in _FILES]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
downloaded_files = dl_manager.download(data_urls)
|
47 |
|
48 |
return [
|