Update ESPOSITO.py
Browse files- ESPOSITO.py +2 -26
ESPOSITO.py
CHANGED
@@ -79,32 +79,8 @@ class ESPOSITO(datasets.GeneratorBasedBuilder):
|
|
79 |
def _split_generators(self, dl_manager):
|
80 |
data_dir = dl_manager.download_and_extract(_URL)
|
81 |
task_name = self.config.name
|
82 |
-
return [
|
83 |
-
|
84 |
-
name=datasets.Split.TEST,
|
85 |
-
gen_kwargs={
|
86 |
-
"filepath": os.path.join(
|
87 |
-
data_dir, "test", f"{task_name}_test.csv"
|
88 |
-
),
|
89 |
-
},
|
90 |
-
),
|
91 |
-
datasets.SplitGenerator(
|
92 |
-
name=datasets.Split("val"),
|
93 |
-
gen_kwargs={
|
94 |
-
"filepath": os.path.join(
|
95 |
-
data_dir, "val", f"{task_name}_val.csv"
|
96 |
-
),
|
97 |
-
},
|
98 |
-
),
|
99 |
-
datasets.SplitGenerator(
|
100 |
-
name=datasets.Split("dev"),
|
101 |
-
gen_kwargs={
|
102 |
-
"filepath": os.path.join(
|
103 |
-
data_dir, "dev", f"{task_name}_dev.csv"
|
104 |
-
),
|
105 |
-
},
|
106 |
-
),
|
107 |
-
]
|
108 |
|
109 |
def _generate_examples(self, filepath):
|
110 |
df = pd.read_csv(filepath,encoding="utf-8")
|
|
|
79 |
def _split_generators(self, dl_manager):
|
80 |
data_dir = dl_manager.download_and_extract(_URL)
|
81 |
task_name = self.config.name
|
82 |
+
return []
|
83 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
|
85 |
def _generate_examples(self, filepath):
|
86 |
df = pd.read_csv(filepath,encoding="utf-8")
|