Update E3C.py
Browse files
E3C.py
CHANGED
@@ -53,7 +53,7 @@ class E3C(datasets.GeneratorBasedBuilder):
|
|
53 |
if self.config.name == "default":
|
54 |
self.config.name = self.DEFAULT_CONFIG_NAME
|
55 |
|
56 |
-
if self.config.name.
|
57 |
|
58 |
features = datasets.Features(
|
59 |
{
|
@@ -68,7 +68,7 @@ class E3C(datasets.GeneratorBasedBuilder):
|
|
68 |
}
|
69 |
)
|
70 |
|
71 |
-
elif self.config.name.
|
72 |
|
73 |
features = datasets.Features(
|
74 |
{
|
@@ -94,7 +94,7 @@ class E3C(datasets.GeneratorBasedBuilder):
|
|
94 |
|
95 |
data_dir = dl_manager.download_and_extract(_URL)
|
96 |
|
97 |
-
if self.config.name.
|
98 |
|
99 |
return [
|
100 |
datasets.SplitGenerator(
|
@@ -120,7 +120,7 @@ class E3C(datasets.GeneratorBasedBuilder):
|
|
120 |
),
|
121 |
]
|
122 |
|
123 |
-
elif self.config.name.
|
124 |
|
125 |
return [
|
126 |
datasets.SplitGenerator(
|
@@ -253,7 +253,7 @@ class E3C(datasets.GeneratorBasedBuilder):
|
|
253 |
|
254 |
key += 1
|
255 |
|
256 |
-
if self.config.name.
|
257 |
|
258 |
if split != "test":
|
259 |
|
@@ -279,7 +279,7 @@ class E3C(datasets.GeneratorBasedBuilder):
|
|
279 |
for r in all_res:
|
280 |
yield r["id"], r
|
281 |
|
282 |
-
elif self.config.name.
|
283 |
|
284 |
ids = [r["id"] for r in all_res]
|
285 |
|
|
|
53 |
if self.config.name == "default":
|
54 |
self.config.name = self.DEFAULT_CONFIG_NAME
|
55 |
|
56 |
+
if self.config.name.find("clinical") != -1:
|
57 |
|
58 |
features = datasets.Features(
|
59 |
{
|
|
|
68 |
}
|
69 |
)
|
70 |
|
71 |
+
elif self.config.name.find("temporal") != -1:
|
72 |
|
73 |
features = datasets.Features(
|
74 |
{
|
|
|
94 |
|
95 |
data_dir = dl_manager.download_and_extract(_URL)
|
96 |
|
97 |
+
if self.config.name.find("clinical") != -1:
|
98 |
|
99 |
return [
|
100 |
datasets.SplitGenerator(
|
|
|
120 |
),
|
121 |
]
|
122 |
|
123 |
+
elif self.config.name.find("temporal") != -1:
|
124 |
|
125 |
return [
|
126 |
datasets.SplitGenerator(
|
|
|
253 |
|
254 |
key += 1
|
255 |
|
256 |
+
if self.config.name.find("clinical") != -1:
|
257 |
|
258 |
if split != "test":
|
259 |
|
|
|
279 |
for r in all_res:
|
280 |
yield r["id"], r
|
281 |
|
282 |
+
elif self.config.name.find("temporal") != -1:
|
283 |
|
284 |
ids = [r["id"] for r in all_res]
|
285 |
|