Update RDD_2020.py
Browse files- RDD_2020.py +5 -4
RDD_2020.py
CHANGED
@@ -79,7 +79,8 @@ class RDD2020_Dataset(datasets.GeneratorBasedBuilder):
|
|
79 |
}
|
80 |
|
81 |
downloaded_files = {
|
82 |
-
|
|
|
83 |
for name, url in urls_to_download.items()
|
84 |
}
|
85 |
|
@@ -87,10 +88,10 @@ class RDD2020_Dataset(datasets.GeneratorBasedBuilder):
|
|
87 |
# ls /root/.cache/huggingface/datasets/downloads/extracted/da17428e8597064d3819cfa1c73686f8876572f681a1b577a2fe8a68c885806a
|
88 |
#ls /root/.cache/huggingface/datasets/downloads/extracted/8391428f7cc3295c41551812c745861c0fa9ffe588cccef4cd4f618f92e6333f
|
89 |
# ls /root/.cache/huggingface/datasets/downloads/extracted/037a5dd551ee4ecb710b7ea376f03a5a3031aa9555aff200c7b758b066b1981d
|
90 |
-
directory_path = '/root/.cache/huggingface/datasets/downloads/extracted/da17428e8597064d3819cfa1c73686f8876572f681a1b577a2fe8a68c885806a'
|
91 |
|
92 |
-
files_and_directories = os.listdir(directory_path)
|
93 |
-
print(files_and_directories)
|
94 |
|
95 |
return [
|
96 |
datasets.SplitGenerator(
|
|
|
79 |
}
|
80 |
|
81 |
downloaded_files = {
|
82 |
+
# name: dl_manager.download_and_extract(url)
|
83 |
+
name: dl_manager.download(url)
|
84 |
for name, url in urls_to_download.items()
|
85 |
}
|
86 |
|
|
|
88 |
# ls /root/.cache/huggingface/datasets/downloads/extracted/da17428e8597064d3819cfa1c73686f8876572f681a1b577a2fe8a68c885806a
|
89 |
#ls /root/.cache/huggingface/datasets/downloads/extracted/8391428f7cc3295c41551812c745861c0fa9ffe588cccef4cd4f618f92e6333f
|
90 |
# ls /root/.cache/huggingface/datasets/downloads/extracted/037a5dd551ee4ecb710b7ea376f03a5a3031aa9555aff200c7b758b066b1981d
|
91 |
+
# directory_path = '/root/.cache/huggingface/datasets/downloads/extracted/da17428e8597064d3819cfa1c73686f8876572f681a1b577a2fe8a68c885806a'
|
92 |
|
93 |
+
# files_and_directories = os.listdir(directory_path)
|
94 |
+
# print(files_and_directories)
|
95 |
|
96 |
return [
|
97 |
datasets.SplitGenerator(
|