Commit
·
13934e6
1
Parent(s):
1f070bf
Update paranames.py
Browse files- paranames.py +2 -6
paranames.py
CHANGED
@@ -8,7 +8,7 @@ from typing import Dict, Iterable
|
|
8 |
import datasets
|
9 |
from datasets import DatasetDict, DownloadManager, load_dataset
|
10 |
|
11 |
-
|
12 |
|
13 |
VERSION = datasets.Version("0.0.1")
|
14 |
|
@@ -17,7 +17,7 @@ AVAILABLE_DATASETS = {
|
|
17 |
}
|
18 |
|
19 |
|
20 |
-
class ParanamesDataset(datasets.GeneratorBasedBuilder
|
21 |
"""ParanamesDataset dataset."""
|
22 |
|
23 |
BUILDER_CONFIGS = [
|
@@ -27,10 +27,6 @@ class ParanamesDataset(datasets.GeneratorBasedBuilder, DataLoaderBase):
|
|
27 |
for data_name in AVAILABLE_DATASETS
|
28 |
]
|
29 |
|
30 |
-
@staticmethod
|
31 |
-
def load(data_name_config: str = "paranames") -> DatasetDict:
|
32 |
-
ds = load_dataset(__file__, data_name_config)
|
33 |
-
return ds
|
34 |
|
35 |
def _info(self) -> datasets.DatasetInfo:
|
36 |
return datasets.DatasetInfo(
|
|
|
8 |
import datasets
|
9 |
from datasets import DatasetDict, DownloadManager, load_dataset
|
10 |
|
11 |
+
|
12 |
|
13 |
VERSION = datasets.Version("0.0.1")
|
14 |
|
|
|
17 |
}
|
18 |
|
19 |
|
20 |
+
class ParanamesDataset(datasets.GeneratorBasedBuilder):
|
21 |
"""ParanamesDataset dataset."""
|
22 |
|
23 |
BUILDER_CONFIGS = [
|
|
|
27 |
for data_name in AVAILABLE_DATASETS
|
28 |
]
|
29 |
|
|
|
|
|
|
|
|
|
30 |
|
31 |
def _info(self) -> datasets.DatasetInfo:
|
32 |
return datasets.DatasetInfo(
|