Update new_dataset_script.py
Browse files- new_dataset_script.py +9 -9
new_dataset_script.py
CHANGED
@@ -48,10 +48,10 @@ _LICENSE = ""
|
|
48 |
# TODO: Add link to the official dataset URLs here
|
49 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
50 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
51 |
-
_URLS = {
|
52 |
-
|
53 |
-
|
54 |
-
}
|
55 |
|
56 |
|
57 |
# TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
|
@@ -71,12 +71,12 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
71 |
# You will be able to load one or the other configurations in the following list with
|
72 |
# data = datasets.load_dataset('my_dataset', 'first_domain')
|
73 |
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
74 |
-
BUILDER_CONFIGS = [
|
75 |
-
|
76 |
-
|
77 |
-
]
|
78 |
|
79 |
-
DEFAULT_CONFIG_NAME = "first_domain" # It's not mandatory to have a default configuration. Just use one if it make sense.
|
80 |
|
81 |
def _info(self):
|
82 |
features = datasets.Features({
|
|
|
48 |
# TODO: Add link to the official dataset URLs here
|
49 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
50 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
51 |
+
# _URLS = {
|
52 |
+
# "first_domain": "https://huggingface.co/great-new-dataset-first_domain.zip",
|
53 |
+
# "second_domain": "https://huggingface.co/great-new-dataset-second_domain.zip",
|
54 |
+
# }
|
55 |
|
56 |
|
57 |
# TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
|
|
|
71 |
# You will be able to load one or the other configurations in the following list with
|
72 |
# data = datasets.load_dataset('my_dataset', 'first_domain')
|
73 |
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
74 |
+
# BUILDER_CONFIGS = [
|
75 |
+
# datasets.BuilderConfig(name="first_domain", version=VERSION, description="This part of my dataset covers a first domain"),
|
76 |
+
# datasets.BuilderConfig(name="second_domain", version=VERSION, description="This part of my dataset covers a second domain"),
|
77 |
+
# ]
|
78 |
|
79 |
+
# DEFAULT_CONFIG_NAME = "first_domain" # It's not mandatory to have a default configuration. Just use one if it make sense.
|
80 |
|
81 |
def _info(self):
|
82 |
features = datasets.Features({
|