Update aclue.py
Browse files
aclue.py
CHANGED
@@ -43,7 +43,7 @@ task_list = ['polysemy_resolution',
|
|
43 |
class ACLUEConfig(datasets.BuilderConfig):
|
44 |
def __init__(self, **kwargs):
|
45 |
super().__init__(version=datasets.Version("1.0.0"), **kwargs)
|
46 |
-
self.
|
47 |
# V1.0.0 Init version
|
48 |
|
49 |
|
@@ -74,12 +74,12 @@ class ACLUE(datasets.GeneratorBasedBuilder):
|
|
74 |
def _split_generators(self, dl_manager):
|
75 |
data_dir = dl_manager.download_and_extract(_URL)
|
76 |
task_name = self.config.name
|
77 |
-
|
78 |
return [
|
79 |
datasets.SplitGenerator(
|
80 |
name=datasets.Split.TEST,
|
81 |
gen_kwargs={
|
82 |
-
"filepath": os.path.join(data_dir, f"{
|
83 |
},
|
84 |
),
|
85 |
]
|
|
|
43 |
class ACLUEConfig(datasets.BuilderConfig):
|
44 |
def __init__(self, **kwargs):
|
45 |
super().__init__(version=datasets.Version("1.0.0"), **kwargs)
|
46 |
+
self.split = split or "test"
|
47 |
# V1.0.0 Init version
|
48 |
|
49 |
|
|
|
74 |
def _split_generators(self, dl_manager):
|
75 |
data_dir = dl_manager.download_and_extract(_URL)
|
76 |
task_name = self.config.name
|
77 |
+
split = self.config.split
|
78 |
return [
|
79 |
datasets.SplitGenerator(
|
80 |
name=datasets.Split.TEST,
|
81 |
gen_kwargs={
|
82 |
+
"filepath": os.path.join(data_dir, f"{split}/{task_name}.csv"),
|
83 |
},
|
84 |
),
|
85 |
]
|