Datasets:
Upload german.py
Browse files
german.py
CHANGED
@@ -205,7 +205,7 @@ class German(datasets.GeneratorBasedBuilder):
|
|
205 |
]
|
206 |
|
207 |
def _generate_examples(self, filepath: str):
|
208 |
-
if self.config.name not in
|
209 |
raise ValueError(f"Unknown config: {self.config.name}")
|
210 |
|
211 |
elif self.config.name == "encoding":
|
|
|
205 |
]
|
206 |
|
207 |
def _generate_examples(self, filepath: str):
|
208 |
+
if self.config.name not in features_per_config:
|
209 |
raise ValueError(f"Unknown config: {self.config.name}")
|
210 |
|
211 |
elif self.config.name == "encoding":
|