Julia Moska
commited on
Commit
•
8af70ea
1
Parent(s):
0ae3740
loader script fix
Browse files- test_parquet.py +11 -1
test_parquet.py
CHANGED
@@ -9,10 +9,20 @@ logger = datasets.utils.logging.get_logger(__name__)
|
|
9 |
_URLS = { "train": "https://huggingface.co/datasets/moska/test_parquet/resolve/main/data/example.parquet" }
|
10 |
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
class ParquetDataset(datasets.ArrowBasedBuilder):
|
14 |
BUILDER_CONFIGS = [
|
15 |
-
|
|
|
16 |
version=datasets.Version(version="0.0.1"),
|
17 |
description=f"test_parquet dataset.",
|
18 |
)
|
|
|
9 |
_URLS = { "train": "https://huggingface.co/datasets/moska/test_parquet/resolve/main/data/example.parquet" }
|
10 |
|
11 |
|
12 |
+
class ParquetDatasetConfig(datasets.BuilderConfig):
|
13 |
+
"""BuilderConfig """
|
14 |
+
|
15 |
+
def __init__(self, **kwargs):
|
16 |
+
"""BuilderConfig.
|
17 |
+
Args:
|
18 |
+
**kwargs: keyword arguments forwarded to super.
|
19 |
+
"""
|
20 |
+
super(ParquetDatasetConfig, self).__init__(**kwargs)
|
21 |
|
22 |
class ParquetDataset(datasets.ArrowBasedBuilder):
|
23 |
BUILDER_CONFIGS = [
|
24 |
+
ParquetDatasetConfig(
|
25 |
+
name="parquet",
|
26 |
version=datasets.Version(version="0.0.1"),
|
27 |
description=f"test_parquet dataset.",
|
28 |
)
|