Datasets:
Update diamonds.py
Browse files- diamonds.py +0 -6
diamonds.py
CHANGED
|
@@ -93,9 +93,6 @@ class Diamond(datasets.GeneratorBasedBuilder):
|
|
| 93 |
|
| 94 |
|
| 95 |
def _info(self):
|
| 96 |
-
if self.config.name not in features_per_config:
|
| 97 |
-
raise ValueError(f"Unknown configuration: {self.config.name}")
|
| 98 |
-
|
| 99 |
info = datasets.DatasetInfo(description=DESCRIPTION, citation=_CITATION, homepage=_HOMEPAGE,
|
| 100 |
features=features_per_config[self.config.name])
|
| 101 |
|
|
@@ -109,9 +106,6 @@ class Diamond(datasets.GeneratorBasedBuilder):
|
|
| 109 |
]
|
| 110 |
|
| 111 |
def _generate_examples(self, filepath: str):
|
| 112 |
-
if self.config.name not in features_types_per_config:
|
| 113 |
-
raise ValueError(f"Unknown config: {self.config.name}")
|
| 114 |
-
|
| 115 |
if self.config.name == "encoding":
|
| 116 |
data = self.encoding_dics()
|
| 117 |
else:
|
|
|
|
| 93 |
|
| 94 |
|
| 95 |
def _info(self):
|
|
|
|
|
|
|
|
|
|
| 96 |
info = datasets.DatasetInfo(description=DESCRIPTION, citation=_CITATION, homepage=_HOMEPAGE,
|
| 97 |
features=features_per_config[self.config.name])
|
| 98 |
|
|
|
|
| 106 |
]
|
| 107 |
|
| 108 |
def _generate_examples(self, filepath: str):
|
|
|
|
|
|
|
|
|
|
| 109 |
if self.config.name == "encoding":
|
| 110 |
data = self.encoding_dics()
|
| 111 |
else:
|