Commit
·
362d32e
1
Parent(s):
7b7e598
Update MultiLegalNeg.py
Browse files- MultiLegalNeg.py +13 -2
MultiLegalNeg.py
CHANGED
@@ -33,11 +33,11 @@ _ENGLISH = [
|
|
33 |
"sherlock", "bioscope", "sfu"
|
34 |
]
|
35 |
|
36 |
-
|
37 |
"dev", "test_cardboard_GOLD", "test_circle_GOLD", "training"
|
38 |
]
|
39 |
|
40 |
-
|
41 |
"abstracts", "full_papers"
|
42 |
]
|
43 |
|
@@ -116,6 +116,17 @@ class MultiLegalNeg(datasets.GeneratorBasedBuilder):
|
|
116 |
split_generators.append(
|
117 |
datasets.SplitGenerator(name="sherlock", gen_kwargs={'filepaths': filepaths})
|
118 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
|
120 |
|
121 |
return split_generators
|
|
|
33 |
"sherlock", "bioscope", "sfu"
|
34 |
]
|
35 |
|
36 |
+
_SHERLOCKS = [
|
37 |
"dev", "test_cardboard_GOLD", "test_circle_GOLD", "training"
|
38 |
]
|
39 |
|
40 |
+
_BIOSCOPES = [
|
41 |
"abstracts", "full_papers"
|
42 |
]
|
43 |
|
|
|
116 |
split_generators.append(
|
117 |
datasets.SplitGenerator(name="sherlock", gen_kwargs={'filepaths': filepaths})
|
118 |
)
|
119 |
+
|
120 |
+
filepaths = []
|
121 |
+
for bio in _BIOSCOPES:
|
122 |
+
try:
|
123 |
+
filepaths.append(dl_manager.download((f'data/english/bioscope_{bio}.jsonl.xz')))
|
124 |
+
except:
|
125 |
+
break
|
126 |
+
|
127 |
+
split_generators.append(
|
128 |
+
datasets.SplitGenerator(name="bioscope", gen_kwargs={'filepaths': filepaths})
|
129 |
+
)
|
130 |
|
131 |
|
132 |
return split_generators
|