Miguel Gómez Prieto
commited on
Commit
·
509e64c
1
Parent(s):
d78eb6b
Parquet dataset
Browse files- dataset.yaml +0 -8
- job_offers_esp.py +0 -51
- train/empleos-espanoles-eures-2025.parquet +3 -0
dataset.yaml
DELETED
|
@@ -1,8 +0,0 @@
|
|
| 1 |
-
configs:
|
| 2 |
-
- config_name: default
|
| 3 |
-
data_files:
|
| 4 |
-
- split: train
|
| 5 |
-
path: tu_archivo.csv
|
| 6 |
-
features: auto
|
| 7 |
-
csv:
|
| 8 |
-
delimiter: ";"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
job_offers_esp.py
DELETED
|
@@ -1,51 +0,0 @@
|
|
| 1 |
-
import csv
|
| 2 |
-
import datasets
|
| 3 |
-
|
| 4 |
-
class JobOffersESP(datasets.GeneratorBasedBuilder):
|
| 5 |
-
VERSION = datasets.Version("1.0.0")
|
| 6 |
-
|
| 7 |
-
def _info(self):
|
| 8 |
-
return datasets.DatasetInfo(
|
| 9 |
-
description="Dataset de ofertas laborales en español extraídas de EURES y fuentes autonómicas.",
|
| 10 |
-
features=datasets.Features(
|
| 11 |
-
{
|
| 12 |
-
"url": datasets.Value("string"),
|
| 13 |
-
"fecha_publicacion": datasets.Value("string"),
|
| 14 |
-
"fecha_limite": datasets.Value("string"),
|
| 15 |
-
"titulo": datasets.Value("string"),
|
| 16 |
-
"empresa": datasets.Value("string"),
|
| 17 |
-
"ocupacion": datasets.Value("string"),
|
| 18 |
-
"descripcion": datasets.Value("string"),
|
| 19 |
-
"pais": datasets.Value("string"),
|
| 20 |
-
"region": datasets.Value("string"),
|
| 21 |
-
"tipo_contrato": datasets.Value("string"),
|
| 22 |
-
}
|
| 23 |
-
),
|
| 24 |
-
supervised_keys=None,
|
| 25 |
-
)
|
| 26 |
-
|
| 27 |
-
def _split_generators(self, dl_manager):
|
| 28 |
-
data_path = dl_manager.download_and_extract("train/empleos-espanoles-eures-2025.csv")
|
| 29 |
-
return [
|
| 30 |
-
datasets.SplitGenerator(
|
| 31 |
-
name=datasets.Split.TRAIN,
|
| 32 |
-
gen_kwargs={"filepath": data_path},
|
| 33 |
-
),
|
| 34 |
-
]
|
| 35 |
-
|
| 36 |
-
def _generate_examples(self, filepath):
|
| 37 |
-
with open(filepath, encoding="utf-8") as f:
|
| 38 |
-
reader = csv.DictReader(f, delimiter=";", quotechar='"')
|
| 39 |
-
for idx, row in enumerate(reader):
|
| 40 |
-
yield idx, {
|
| 41 |
-
"url": row.get("url", ""),
|
| 42 |
-
"fecha_publicacion": row.get("fecha_publicacion", ""),
|
| 43 |
-
"fecha_limite": row.get("fecha_limite", ""),
|
| 44 |
-
"titulo": row.get("titulo", ""),
|
| 45 |
-
"empresa": row.get("empresa", ""),
|
| 46 |
-
"ocupacion": row.get("ocupacion", ""),
|
| 47 |
-
"descripcion": row.get("descripcion", ""),
|
| 48 |
-
"pais": row.get("pais", ""),
|
| 49 |
-
"region": row.get("region", ""),
|
| 50 |
-
"tipo_contrato": row.get("tipo_contrato", ""),
|
| 51 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
train/empleos-espanoles-eures-2025.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ad1e354b0719705dbd33a96495f670a80e95ea79a7a34fb130a0e59a44752dd
|
| 3 |
+
size 2161057
|