Commit
·
ad4e0fb
1
Parent(s):
680c9fc
loading script created
Browse files- 123_test.py +5 -3
123_test.py
CHANGED
@@ -45,11 +45,12 @@ _LICENSE = "Apache 2.0"
|
|
45 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
46 |
|
47 |
_URLS = {
|
48 |
-
"data_0": "https://huggingface.co/datasets/JeremyAlain/123_test/
|
49 |
-
"data_1": "https://huggingface.co/datasets/JeremyAlain/123_test/
|
50 |
-
"data_2": "https://huggingface.co/datasets/JeremyAlain/123_test/
|
51 |
|
52 |
}
|
|
|
53 |
|
54 |
|
55 |
class FewshotPretraining(datasets.GeneratorBasedBuilder):
|
@@ -111,6 +112,7 @@ class FewshotPretraining(datasets.GeneratorBasedBuilder):
|
|
111 |
# It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
|
112 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
113 |
urls = _URLS[self.config.name]
|
|
|
114 |
data_dir = dl_manager.download_and_extract(urls)
|
115 |
return datasets.SplitGenerator(
|
116 |
name=datasets.Split.TRAIN,
|
|
|
45 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
46 |
|
47 |
_URLS = {
|
48 |
+
"data_0": "https://huggingface.co/datasets/JeremyAlain/123_test/raw/main/data/0/file_0.jsonl",
|
49 |
+
"data_1": "https://huggingface.co/datasets/JeremyAlain/123_test/raw/main/data/1/file_0.jsonl",
|
50 |
+
"data_2": "https://huggingface.co/datasets/JeremyAlain/123_test/raw/main/data/2/file_0.jsonl",
|
51 |
|
52 |
}
|
53 |
+
logger = datasets.logging.get_logger(__name__)
|
54 |
|
55 |
|
56 |
class FewshotPretraining(datasets.GeneratorBasedBuilder):
|
|
|
112 |
# It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
|
113 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
114 |
urls = _URLS[self.config.name]
|
115 |
+
|
116 |
data_dir = dl_manager.download_and_extract(urls)
|
117 |
return datasets.SplitGenerator(
|
118 |
name=datasets.Split.TRAIN,
|