test
Browse files
test.py
CHANGED
@@ -63,7 +63,7 @@ class Test(datasets.GeneratorBasedBuilder):
|
|
63 |
|
64 |
def _split_generators(self, dl_manager):
|
65 |
data_dir = dl_manager.manual_dir or "./"
|
66 |
-
|
67 |
return [
|
68 |
datasets.SplitGenerator(
|
69 |
name=datasets.Split.TRAIN,
|
@@ -80,6 +80,7 @@ class Test(datasets.GeneratorBasedBuilder):
|
|
80 |
]
|
81 |
|
82 |
def _generate_examples(self, filepath):
|
|
|
83 |
with open(filepath, encoding="utf-8") as f:
|
84 |
df = pd.read_csv(filepath, index_col=0)
|
85 |
for id_, item in df.iterrows():
|
|
|
63 |
|
64 |
def _split_generators(self, dl_manager):
|
65 |
data_dir = dl_manager.manual_dir or "./"
|
66 |
+
data_dir = os.path.join(data_dir, self.config.name)
|
67 |
return [
|
68 |
datasets.SplitGenerator(
|
69 |
name=datasets.Split.TRAIN,
|
|
|
80 |
]
|
81 |
|
82 |
def _generate_examples(self, filepath):
|
83 |
+
set_trace()
|
84 |
with open(filepath, encoding="utf-8") as f:
|
85 |
df = pd.read_csv(filepath, index_col=0)
|
86 |
for id_, item in df.iterrows():
|