DimaPhil commited on
Commit ·
8ae77e9
1
Parent(s): be764b4
Add debug message
Browse files- wine-quality.py +1 -2
wine-quality.py
CHANGED
|
@@ -12,13 +12,12 @@ class WineQuality(GeneratorBasedBuilder):
|
|
| 12 |
)
|
| 13 |
|
| 14 |
def _split_generators(self, dl_manager):
|
| 15 |
-
print(f"Builder config name: {self.config.name}")
|
| 16 |
if self.config.name == "red":
|
| 17 |
return [datasets.SplitGenerator(name="red", gen_kwargs={"filepath": os.path.join(dl_manager.dataset_dir, "winequality-red.csv")})]
|
| 18 |
elif self.config.name == "white":
|
| 19 |
return [datasets.SplitGenerator(name="white", gen_kwargs={"filepath": os.path.join(dl_manager.dataset_dir, "winequality-white.csv")})]
|
| 20 |
else:
|
| 21 |
-
raise NotImplementedError("This builder config is not implemented.")
|
| 22 |
|
| 23 |
def _generate_examples(self, filepath):
|
| 24 |
df = pd.read_csv(filepath_path, delimiter=";")
|
|
|
|
| 12 |
)
|
| 13 |
|
| 14 |
def _split_generators(self, dl_manager):
|
|
|
|
| 15 |
if self.config.name == "red":
|
| 16 |
return [datasets.SplitGenerator(name="red", gen_kwargs={"filepath": os.path.join(dl_manager.dataset_dir, "winequality-red.csv")})]
|
| 17 |
elif self.config.name == "white":
|
| 18 |
return [datasets.SplitGenerator(name="white", gen_kwargs={"filepath": os.path.join(dl_manager.dataset_dir, "winequality-white.csv")})]
|
| 19 |
else:
|
| 20 |
+
raise NotImplementedError(f"This builder config is not implemented: {self.config.name}")
|
| 21 |
|
| 22 |
def _generate_examples(self, filepath):
|
| 23 |
df = pd.read_csv(filepath_path, delimiter=";")
|