Datasets:
add dataset configs to readme
Browse files- README.md +254 -0
- configs.py +30 -0
README.md
CHANGED
@@ -5,11 +5,265 @@ task_categories:
|
|
5 |
- multiple-choice
|
6 |
language:
|
7 |
- eu
|
|
|
8 |
tags:
|
9 |
- legal
|
10 |
pretty_name: Oposizioak
|
11 |
size_categories:
|
12 |
- 10K<n<100K
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
---
|
14 |
|
15 |
# Dataset Card for Oposizioak
|
|
|
5 |
- multiple-choice
|
6 |
language:
|
7 |
- eu
|
8 |
+
- es
|
9 |
tags:
|
10 |
- legal
|
11 |
pretty_name: Oposizioak
|
12 |
size_categories:
|
13 |
- 10K<n<100K
|
14 |
+
configs:
|
15 |
+
- config_name: eu_opeosakiadmineu
|
16 |
+
data_files:
|
17 |
+
- split: test
|
18 |
+
path: "eu/opeosaki/opeosakiadmineu.jsonl"
|
19 |
+
- config_name: eu_opeosakiauxenfeu
|
20 |
+
data_files:
|
21 |
+
- split: test
|
22 |
+
path: "eu/opeosaki/opeosakiauxenfeu.jsonl"
|
23 |
+
- config_name: eu_opeosakiauxeu
|
24 |
+
data_files:
|
25 |
+
- split: test
|
26 |
+
path: "eu/opeosaki/opeosakiauxeu.jsonl"
|
27 |
+
- config_name: eu_opeosakiceladoreu
|
28 |
+
data_files:
|
29 |
+
- split: test
|
30 |
+
path: "eu/opeosaki/opeosakiceladoreu.jsonl"
|
31 |
+
- config_name: eu_opeosakienfeu
|
32 |
+
data_files:
|
33 |
+
- split: test
|
34 |
+
path: "eu/opeosaki/opeosakienfeu.jsonl"
|
35 |
+
- config_name: eu_opeosakijuridicoeu
|
36 |
+
data_files:
|
37 |
+
- split: test
|
38 |
+
path: "eu/opeosaki/opeosakijuridicoeu.jsonl"
|
39 |
+
- config_name: eu_opeosakioperarioeu
|
40 |
+
data_files:
|
41 |
+
- split: test
|
42 |
+
path: "eu/opeosaki/opeosakioperarioeu.jsonl"
|
43 |
+
- config_name: eu_opeosakitecnicoeu
|
44 |
+
data_files:
|
45 |
+
- split: test
|
46 |
+
path: "eu/opeosaki/opeosakitecnicoeu.jsonl"
|
47 |
+
- config_name: eu_opeosakivarioseu
|
48 |
+
data_files:
|
49 |
+
- split: test
|
50 |
+
path: "eu/opeosaki/opeosakivarioseu.jsonl"
|
51 |
+
- config_name: eu_opegasteizkoudala
|
52 |
+
data_files:
|
53 |
+
- split: test
|
54 |
+
path: "eu/opegasteiz/opegasteizkoudala.jsonl"
|
55 |
+
- config_name: eu_opeehuadmineu
|
56 |
+
data_files:
|
57 |
+
- split: test
|
58 |
+
path: "eu/opeehu/opeehuadmineu.jsonl"
|
59 |
+
- config_name: eu_opeehuauxeu
|
60 |
+
data_files:
|
61 |
+
- split: test
|
62 |
+
path: "eu/opeehu/opeehuauxeu.jsonl"
|
63 |
+
- config_name: eu_opeehubiblioeu
|
64 |
+
data_files:
|
65 |
+
- split: test
|
66 |
+
path: "eu/opeehu/opeehubiblioeu.jsonl"
|
67 |
+
- config_name: eu_opeehuderechoeu
|
68 |
+
data_files:
|
69 |
+
- split: test
|
70 |
+
path: "eu/opeehu/opeehuderechoeu.jsonl"
|
71 |
+
- config_name: eu_opeehueconomicaseu
|
72 |
+
data_files:
|
73 |
+
- split: test
|
74 |
+
path: "eu/opeehu/opeehueconomicaseu.jsonl"
|
75 |
+
- config_name: eu_opeehuempresarialeseu
|
76 |
+
data_files:
|
77 |
+
- split: test
|
78 |
+
path: "eu/opeehu/opeehuempresarialeseu.jsonl"
|
79 |
+
- config_name: eu_opeehusubalternoeu
|
80 |
+
data_files:
|
81 |
+
- split: test
|
82 |
+
path: "eu/opeehu/opeehusubalternoeu.jsonl"
|
83 |
+
- config_name: eu_opeehutecnicoeu
|
84 |
+
data_files:
|
85 |
+
- split: test
|
86 |
+
path: "eu/opeehu/opeehutecnicoeu.jsonl"
|
87 |
+
- config_name: eu_opeehuteknikarib
|
88 |
+
data_files:
|
89 |
+
- split: test
|
90 |
+
path: "eu/opeehu/opeehuteknikarib.jsonl"
|
91 |
+
- config_name: eu_ejadministrari
|
92 |
+
data_files:
|
93 |
+
- split: test
|
94 |
+
path: "eu/ope/ejadministrari.jsonl"
|
95 |
+
- config_name: eu_ejlaguntza
|
96 |
+
data_files:
|
97 |
+
- split: test
|
98 |
+
path: "eu/ope/ejlaguntza.jsonl"
|
99 |
+
- config_name: eu_ejlaguntzaile
|
100 |
+
data_files:
|
101 |
+
- split: test
|
102 |
+
path: "eu/ope/ejlaguntzaile.jsonl"
|
103 |
+
- config_name: eu_ejteknikari
|
104 |
+
data_files:
|
105 |
+
- split: test
|
106 |
+
path: "eu/ope/ejteknikari.jsonl"
|
107 |
+
- config_name: eu_osakidetza1e
|
108 |
+
data_files:
|
109 |
+
- split: test
|
110 |
+
path: "eu/osakidetza/osakidetza1e.jsonl"
|
111 |
+
- config_name: eu_osakidetza2e
|
112 |
+
data_files:
|
113 |
+
- split: test
|
114 |
+
path: "eu/osakidetza/osakidetza2e.jsonl"
|
115 |
+
- config_name: eu_osakidetza3e
|
116 |
+
data_files:
|
117 |
+
- split: test
|
118 |
+
path: "eu/osakidetza/osakidetza3e.jsonl"
|
119 |
+
- config_name: eu_osakidetza5e
|
120 |
+
data_files:
|
121 |
+
- split: test
|
122 |
+
path: "eu/osakidetza/osakidetza5e.jsonl"
|
123 |
+
- config_name: eu_osakidetza6e
|
124 |
+
data_files:
|
125 |
+
- split: test
|
126 |
+
path: "eu/osakidetza/osakidetza6e.jsonl"
|
127 |
+
- config_name: eu_osakidetza7e
|
128 |
+
data_files:
|
129 |
+
- split: test
|
130 |
+
path: "eu/osakidetza/osakidetza7e.jsonl"
|
131 |
+
- config_name: eu_opebilbaoeu
|
132 |
+
data_files:
|
133 |
+
- split: test
|
134 |
+
path: "eu/opebilbao/opebilbaoeu.jsonl"
|
135 |
+
- config_name: es_opeosakiadmin
|
136 |
+
data_files:
|
137 |
+
- split: test
|
138 |
+
path: "es/opeosaki/opeosakiadmin.jsonl"
|
139 |
+
- config_name: es_opeosakiaux
|
140 |
+
data_files:
|
141 |
+
- split: test
|
142 |
+
path: "es/opeosaki/opeosakiaux.jsonl"
|
143 |
+
- config_name: es_opeosakiauxenf
|
144 |
+
data_files:
|
145 |
+
- split: test
|
146 |
+
path: "es/opeosaki/opeosakiauxenf.jsonl"
|
147 |
+
- config_name: es_opeosakicelador
|
148 |
+
data_files:
|
149 |
+
- split: test
|
150 |
+
path: "es/opeosaki/opeosakicelador.jsonl"
|
151 |
+
- config_name: es_opeosakienf
|
152 |
+
data_files:
|
153 |
+
- split: test
|
154 |
+
path: "es/opeosaki/opeosakienf.jsonl"
|
155 |
+
- config_name: es_opeosakijuridico
|
156 |
+
data_files:
|
157 |
+
- split: test
|
158 |
+
path: "es/opeosaki/opeosakijuridico.jsonl"
|
159 |
+
- config_name: es_opeosakioperario
|
160 |
+
data_files:
|
161 |
+
- split: test
|
162 |
+
path: "es/opeosaki/opeosakioperario.jsonl"
|
163 |
+
- config_name: es_opeosakitecnico
|
164 |
+
data_files:
|
165 |
+
- split: test
|
166 |
+
path: "es/opeosaki/opeosakitecnico.jsonl"
|
167 |
+
- config_name: es_opeosakivarios
|
168 |
+
data_files:
|
169 |
+
- split: test
|
170 |
+
path: "es/opeosaki/opeosakivarios.jsonl"
|
171 |
+
- config_name: es_opeayuntamientovitoria
|
172 |
+
data_files:
|
173 |
+
- split: test
|
174 |
+
path: "es/opegasteiz/opeayuntamientovitoria.jsonl"
|
175 |
+
- config_name: es_opeehuadmin
|
176 |
+
data_files:
|
177 |
+
- split: test
|
178 |
+
path: "es/opeehu/opeehuadmin.jsonl"
|
179 |
+
- config_name: es_opeehuaux
|
180 |
+
data_files:
|
181 |
+
- split: test
|
182 |
+
path: "es/opeehu/opeehuaux.jsonl"
|
183 |
+
- config_name: es_opeehubiblio
|
184 |
+
data_files:
|
185 |
+
- split: test
|
186 |
+
path: "es/opeehu/opeehubiblio.jsonl"
|
187 |
+
- config_name: es_opeehuderecho
|
188 |
+
data_files:
|
189 |
+
- split: test
|
190 |
+
path: "es/opeehu/opeehuderecho.jsonl"
|
191 |
+
- config_name: es_opeehueconomicas
|
192 |
+
data_files:
|
193 |
+
- split: test
|
194 |
+
path: "es/opeehu/opeehueconomicas.jsonl"
|
195 |
+
- config_name: es_opeehuempresariales
|
196 |
+
data_files:
|
197 |
+
- split: test
|
198 |
+
path: "es/opeehu/opeehuempresariales.jsonl"
|
199 |
+
- config_name: es_opeehusubalterno
|
200 |
+
data_files:
|
201 |
+
- split: test
|
202 |
+
path: "es/opeehu/opeehusubalterno.jsonl"
|
203 |
+
- config_name: es_opeehutecnico
|
204 |
+
data_files:
|
205 |
+
- split: test
|
206 |
+
path: "es/opeehu/opeehutecnico.jsonl"
|
207 |
+
- config_name: es_opeehutecnicob
|
208 |
+
data_files:
|
209 |
+
- split: test
|
210 |
+
path: "es/opeehu/opeehutecnicob.jsonl"
|
211 |
+
- config_name: es_ejadministrativo
|
212 |
+
data_files:
|
213 |
+
- split: test
|
214 |
+
path: "es/ope/ejadministrativo.jsonl"
|
215 |
+
- config_name: es_ejauxiliar
|
216 |
+
data_files:
|
217 |
+
- split: test
|
218 |
+
path: "es/ope/ejauxiliar.jsonl"
|
219 |
+
- config_name: es_ejsubalterno
|
220 |
+
data_files:
|
221 |
+
- split: test
|
222 |
+
path: "es/ope/ejsubalterno.jsonl"
|
223 |
+
- config_name: es_ejtecnico
|
224 |
+
data_files:
|
225 |
+
- split: test
|
226 |
+
path: "es/ope/ejtecnico.jsonl"
|
227 |
+
- config_name: es_osakidetza1c
|
228 |
+
data_files:
|
229 |
+
- split: test
|
230 |
+
path: "es/osakidetza/osakidetza1c.jsonl"
|
231 |
+
- config_name: es_osakidetza2c
|
232 |
+
data_files:
|
233 |
+
- split: test
|
234 |
+
path: "es/osakidetza/osakidetza2c.jsonl"
|
235 |
+
- config_name: es_osakidetza3c
|
236 |
+
data_files:
|
237 |
+
- split: test
|
238 |
+
path: "es/osakidetza/osakidetza3c.jsonl"
|
239 |
+
- config_name: es_osakidetza4c
|
240 |
+
data_files:
|
241 |
+
- split: test
|
242 |
+
path: "es/osakidetza/osakidetza4c.jsonl"
|
243 |
+
- config_name: es_osakidetza5c
|
244 |
+
data_files:
|
245 |
+
- split: test
|
246 |
+
path: "es/osakidetza/osakidetza5c.jsonl"
|
247 |
+
- config_name: es_osakidetza6c
|
248 |
+
data_files:
|
249 |
+
- split: test
|
250 |
+
path: "es/osakidetza/osakidetza6c.jsonl"
|
251 |
+
- config_name: es_osakidetza7c
|
252 |
+
data_files:
|
253 |
+
- split: test
|
254 |
+
path: "es/osakidetza/osakidetza7c.jsonl"
|
255 |
+
- config_name: es_osakidetza8c
|
256 |
+
data_files:
|
257 |
+
- split: test
|
258 |
+
path: "es/osakidetza/osakidetza8c.jsonl"
|
259 |
+
- config_name: es_osakidetza9c
|
260 |
+
data_files:
|
261 |
+
- split: test
|
262 |
+
path: "es/osakidetza/osakidetza9c.jsonl"
|
263 |
+
- config_name: es_opebilbao
|
264 |
+
data_files:
|
265 |
+
- split: test
|
266 |
+
path: "es/opebilbao/opebilbao.jsonl"
|
267 |
---
|
268 |
|
269 |
# Dataset Card for Oposizioak
|
configs.py
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import re
|
3 |
+
|
4 |
+
folder_path = "data"
|
5 |
+
langs = ["eu", "es"]
|
6 |
+
output = "configs:\n"
|
7 |
+
|
8 |
+
for lang in langs:
|
9 |
+
for root, dirs, files in os.walk(f"{folder_path}/{lang}"):
|
10 |
+
for file in sorted(files):
|
11 |
+
file_path = os.path.join(root, file)
|
12 |
+
rel_path = os.path.relpath(file_path, folder_path)
|
13 |
+
output += (
|
14 |
+
f"- config_name: {lang}_{os.path.splitext(file)[0]}\n data_files:\n"
|
15 |
+
)
|
16 |
+
output += f' - split: test\n path: "{rel_path}"\n'
|
17 |
+
|
18 |
+
# read existing contents of README.md
|
19 |
+
with open("README.md", "r") as f:
|
20 |
+
readme_content = f.read()
|
21 |
+
|
22 |
+
# find end of YAML header using regular expressions
|
23 |
+
yaml_end = re.search(r"---\n\n", readme_content).start()
|
24 |
+
|
25 |
+
# insert generated YAML output after YAML header
|
26 |
+
readme_content = readme_content[:yaml_end] + output + readme_content[yaml_end:]
|
27 |
+
|
28 |
+
# write updated contents to README.md
|
29 |
+
with open("README.md", "w") as f:
|
30 |
+
f.write(readme_content)
|