text stringlengths 16 836 | source_demo stringclasses 4
values | theme stringclasses 8
values |
|---|---|---|
Más vale tarde que nunca, aunque lo ideal es no llegar tarde jamás. | mini-gpt | refranes |
Quien mucho abarca, poco aprieta, así que hoy toca elegir bien qué estudiar primero. | mini-gpt | refranes |
No hay mal que por bien no venga, ni examen que no termine llegando. | mini-gpt | refranes |
A quien madruga, algo se le pega, aunque sea solo el cansancio de la primera clase. | mini-gpt | refranes |
Perro que ladra no muerde, decía mi abuela, y casi siempre tenía razón. | mini-gpt | refranes |
Más vale pájaro en mano que ciento volando, sobre todo si el ciento son apuntes prestados. | mini-gpt | refranes |
En boca cerrada no entran moscas, ni tampoco entran buenas dudas resueltas. | mini-gpt | refranes |
No por mucho madrugar amanece más temprano, así que mejor dormir bien antes del examen. | mini-gpt | refranes |
Cría fama y échate a dormir, aunque la fama de dormido cuesta mantenerla despierta en clase. | mini-gpt | refranes |
Dime con quién estudias y te diré cuánto café vais a necesitar. | mini-gpt | refranes |
El que no arriesga no aprueba, pero el que se confía tampoco suele aprobar. | mini-gpt | refranes |
Camarón que se duerme en la biblioteca se lo lleva el sueño de la tarde. | mini-gpt | refranes |
A caballo regalado no se le mira el diente, salvo que el ordenador vaya lentísimo. | mini-gpt | refranes |
Agua que no has de beber, déjala correr, y guarda energía para repasar. | mini-gpt | refranes |
No dejes para mañana lo que puedas entregar hoy, salvo ordenar el escritorio. | mini-gpt | refranes |
Del dicho al hecho hay un buen trecho, y del código al resultado final también. | mini-gpt | refranes |
Más vale prevenir que recompilar a las tres de la madrugada. | mini-gpt | refranes |
Quien siembra dudas en clase suele cosechar buenas respuestas del profesor. | mini-gpt | refranes |
Donde hay confianza también hay preguntas tontas que merece la pena hacer. | mini-gpt | refranes |
El que a buen apunte se arrima, buena nota le cobija, aunque hay que saber elegir el apunte. | mini-gpt | refranes |
No todo lo que brilla en la pantalla es código que funciona, algunas veces solo es un error bien maquillado. | mini-gpt | refranes |
Las apariencias engañan, sobre todo cuando el programa compila a la primera. | mini-gpt | refranes |
Cada asignatura con su horario, y cada examen con su repaso adecuado. | mini-gpt | refranes |
Al mal sueño, buena cara, y un café de más por si acaso. | mini-gpt | refranes |
Nunca digas de este lenguaje no programaré, porque el temario siempre encuentra la manera de sorprenderte. | mini-gpt | refranes |
Más vale maña que fuerza, sobre todo cuando el algoritmo no converge. | mini-gpt | refranes |
La tortilla de patatas empieza pelando y cortando las patatas en láminas finas, no demasiado gruesas para que se hagan bien por dentro. | mini-gpt | recetas |
Se fríen a fuego medio en abundante aceite de oliva, removiendo de vez en cuando para que no se peguen ni se doren demasiado rápido. | mini-gpt | recetas |
Mientras tanto se bate el huevo en un bol grande, con una pizca de sal, hasta que quede homogéneo. | mini-gpt | recetas |
Cuando las patatas están blandas se escurren bien y se mezclan con el huevo batido, dejando reposar la mezcla un par de minutos antes de volcarla en la sartén. | mini-gpt | recetas |
El punto de la tortilla depende del gusto de cada uno: unos la prefieren jugosa por dentro y otros más cuajada, lo importante es no tener prisa al darle la vuelta. | mini-gpt | recetas |
Para el arroz con verduras conviene sofreír primero cebolla, pimiento y ajo picados en un poco de aceite, a fuego suave, hasta que estén tiernos y transparentes. | mini-gpt | recetas |
Después se añade el arroz y se remueve un minuto para que se impregne bien del sofrito antes de cubrirlo con caldo caliente. | mini-gpt | recetas |
A partir de ahí se deja cocer sin remover demasiado, comprobando el punto de sal y añadiendo más líquido si hace falta. | mini-gpt | recetas |
Cuando el arroz está en su punto se retira del fuego y se deja reposar tapado unos minutos, que es cuando termina de absorber el sabor. | mini-gpt | recetas |
El pan casero necesita poco más que harina, agua, sal y levadura, aunque el tiempo es el ingrediente que de verdad marca la diferencia. | mini-gpt | recetas |
Amasar bien al principio ayuda a desarrollar el gluten, pero después toca dejar que la masa repose y crezca sin prisas, tapada con un paño en un sitio templado. | mini-gpt | recetas |
Cuando ha doblado su tamaño se le da forma, se deja reposar una segunda vez y se hornea a temperatura alta hasta que la corteza queda dorada y suena hueca al golpearla por debajo. | mini-gpt | recetas |
Una sopa de verduras sencilla se hace sofriendo un poco de cebolla y zanahoria, añadiendo después el resto de verduras troceadas y cubriendo con agua o caldo. | mini-gpt | recetas |
Se deja cocer a fuego lento hasta que todo está tierno, se prueba de sal y, si se quiere más suave, se pasa por la batidora al final. | mini-gpt | recetas |
el perro come mucho | word2vec | animales |
el gato come poco | word2vec | animales |
el pájaro come semillas | word2vec | animales |
el pez come algas | word2vec | animales |
el perro duerme en el jardín | word2vec | animales |
el gato duerme todo el día | word2vec | animales |
el perro corre por el jardín | word2vec | animales |
el gato corre tras el pájaro | word2vec | animales |
el pájaro vuela por el jardín | word2vec | animales |
el pez nada todo el día | word2vec | animales |
el perro juega en el jardín | word2vec | animales |
el gato juega con el perro | word2vec | animales |
el perro ladra en el jardín | word2vec | animales |
el gato salta sobre el perro | word2vec | animales |
el pájaro salta cerca del perro | word2vec | animales |
el pez nada junto al gato | word2vec | animales |
el perro tiene patas grandes | word2vec | animales |
el gato tiene patas suaves | word2vec | animales |
el pájaro tiene patas finas | word2vec | animales |
el perro corre y salta en el jardín | word2vec | animales |
el gato duerme y come mucho | word2vec | animales |
el pez nada y duerme poco | word2vec | animales |
el pájaro vuela y come | word2vec | animales |
el perro juega y corre mucho | word2vec | animales |
el gato juega y duerme mucho | word2vec | animales |
el pez come y nada despacio | word2vec | animales |
el perro come en el jardín | word2vec | animales |
el gato come en el jardín | word2vec | animales |
el pájaro come en el jardín | word2vec | animales |
el pez vive en el agua | word2vec | animales |
el pez nada en el jardín | word2vec | animales |
el pez juega con el gato | word2vec | animales |
el pez salta y nada | word2vec | animales |
el pájaro salta vuela y juega en el jardín | word2vec | animales |
el gato corre salta y juega | word2vec | animales |
el pez nada come y duerme | word2vec | animales |
el perro duerme corre y juega | word2vec | animales |
el perro tiene patas y corre | word2vec | animales |
el gato tiene patas y salta | word2vec | animales |
el pájaro tiene patas y vuela | word2vec | animales |
el pan sabe rico | word2vec | comida |
el queso sabe rico | word2vec | comida |
el arroz sabe rico | word2vec | comida |
el huevo sabe rico | word2vec | comida |
la sopa sabe rica | word2vec | comida |
la manzana sabe rica | word2vec | comida |
la leche sabe rica | word2vec | comida |
el pan está caliente | word2vec | comida |
la sopa está caliente | word2vec | comida |
el arroz está caliente | word2vec | comida |
la leche está caliente | word2vec | comida |
la manzana está fresca | word2vec | comida |
el queso está fresco | word2vec | comida |
prepara el pan en la cocina | word2vec | comida |
prepara la sopa en la cocina | word2vec | comida |
prepara el arroz en la cocina | word2vec | comida |
prepara el huevo en la cocina | word2vec | comida |
el queso está en el plato | word2vec | comida |
la manzana está en el plato | word2vec | comida |
el pan está en el plato | word2vec | comida |
lab-corpora-es
Five small Spanish corpora, written by hand for a set of browser-based machine learning demos at jmwebsoluciones.com/lab. Each one exists to be trained on, in the browser, in well under a minute, by models with a few thousand to a few hundred thousand parameters — a tokenizer, a 2D word2vec, a tiny GPT, a retrieval index. None of them try to represent Spanish as a language; they are deliberately tiny and deliberately narrow.
Dataset Summary
These are the source corpora behind four interactive labs: a byte-pair tokenizer trained live in the browser, a skip-gram word2vec model that animates its own training, a mini-GPT with three model-size presets, and an extractive RAG pipeline. All four demos train or index text on the client side, with no server involved, so the corpora had to be small enough for that to be instant and repeatable, and structured enough that a tiny model has a visible chance of learning something from them.
This dataset collects those corpora in one place, split into five themed
configurations plus a combined default config with everything concatenated.
Supported Tasks
- Tokenization / subword modeling (
vida-estudiante,refranes,recetas): byte-pair encoding and character-level language modeling on short, repetitive Spanish text. - Word embeddings (
campos-semanticos): skip-gram / word2vec-style training, where the point is that four semantic fields with no shared vocabulary should separate into distinguishable clusters. - Small causal language modeling (
refranes,recetas): training a from-scratch mini-GPT (32-64 embedding dimensions) to complete short Spanish sentences. - Extractive question answering / retrieval (
guia-plantas): chunking a document, embedding the chunks, and answering questions by retrieving and quoting real sentences from the source text.
Languages
Spanish (es) only, in every configuration. The sentences use plain,
everyday vocabulary — no regional slang beyond what is common in Madrid,
no code-switching, no technical jargon outside a handful of machine-learning
terms that show up because the topic itself is machine learning.
Dataset Structure
Data Fields
Every row across every configuration has the same three fields:
text(string): one sentence, one recipe step, or one paragraph, depending on the configuration (see below).source_demo(string): the slug of the lab demo the text was written for — one ofmini-gpt,word2vec,rag,bpe.theme(string): the semantic or topical grouping inside that demo — one ofrefranes,recetas,animales,comida,lugares,clima,guia-plantas,vida-estudiante.
Configurations
| config | rows | granularity | source_demo | theme(s) |
|---|---|---|---|---|
default |
237 | — | all of the below, concatenated in the order listed | all |
refranes |
26 | one proverb per row | mini-gpt |
refranes |
recetas |
14 | one recipe sentence per row | mini-gpt |
recetas |
campos-semanticos |
145 | one short sentence per row | word2vec |
animales, comida, lugares, clima |
guia-plantas |
12 | one paragraph per row | rag |
guia-plantas |
vida-estudiante |
40 | one sentence per row | bpe |
vida-estudiante |
Data Instances
refranes:
{"text": "Más vale tarde que nunca, aunque lo ideal es no llegar tarde jamás.", "source_demo": "mini-gpt", "theme": "refranes"}
recetas:
{"text": "La tortilla de patatas empieza pelando y cortando las patatas en láminas finas, no demasiado gruesas para que se hagan bien por dentro.", "source_demo": "mini-gpt", "theme": "recetas"}
campos-semanticos:
{"text": "el perro come mucho", "source_demo": "word2vec", "theme": "animales"}
{"text": "el pan sabe rico", "source_demo": "word2vec", "theme": "comida"}
guia-plantas:
{"text": "El riego es donde más plantas he perdido, casi siempre por exceso, no por defecto. La regla que uso ahora es meter el dedo dos nudillos en la tierra: si sale seco, riego; si sale húmedo, espero unos días más.", "source_demo": "rag", "theme": "guia-plantas"}
vida-estudiante:
{"text": "el gradiente descendente parece magia hasta que lo programas tú mismo", "source_demo": "bpe", "theme": "vida-estudiante"}
Loading
from datasets import load_dataset
# everything combined
ds = load_dataset("delcenjo/lab-corpora-es")
# one themed configuration
refranes = load_dataset("delcenjo/lab-corpora-es", "refranes")
Curation Rationale
Every corpus here is small and repetitive on purpose. The demos train in the browser, on the visitor's own device, with no backend — a tokenizer or a mini-GPT has to converge to something visibly interesting in tens of thousands of steps, not millions, and a 2-dimensional word2vec model has to separate four topics with only a few hundred sentences to learn from.
campos-semanticos is the clearest case: it is built from four fields
(animals, food, city life, weather) that share almost no vocabulary, not even
verbs. That is not an oversight — it is what lets a 2-dimensional embedding,
trained live with no PCA and no projection, visibly split into four clusters
within a few seconds of animation. A more naturally varied corpus of the same
size would not separate as cleanly, which would defeat the point of the demo.
refranes and recetas exist because a from-scratch character-level mini-GPT
with 32 to 64 embedding dimensions needs text with strong local patterns —
proverbs and recipe steps both repeat sentence shapes and vocabulary far more
than natural prose does, which gives a tiny model something learnable inside
a training run a visitor will actually sit through.
guia-plantas is the one exception to "repetitive": it needed to be a real,
coherent piece of writing, long enough to be split into overlapping chunks
and searched, with specific enough claims (watering intervals, symptoms,
plant names) that an extractive retrieval demo has clearly right and clearly
wrong chunks to retrieve for a given question.
vida-estudiante gives the tokenizer demo a different register again —
diary-like sentences about studying and living in Madrid — so a visitor
training BPE on it sees merges form around a different vocabulary than the
proverbs or the recipes.
Source Data
Initial Data Collection and Curation
All five corpora were written by hand by the dataset's author, specifically
for these demos. Nothing here was scraped, downloaded, or adapted from a
third-party corpus, book, or website, and no text was generated by a language
model. refranes restates well-known, public-domain Spanish proverbs with an
added clause about studying or coding, rather than quoting any single
author's wording. recetas and vida-estudiante describe ordinary cooking
and student life in general terms. guia-plantas is the author's own
practical notes on keeping houseplants alive in a small flat, written from
memory and not copied from any care guide.
Personal and Sensitive Information
None. No names, locations more specific than "Madrid" as a city in general,
dates, or any other information that identifies a real, private individual.
The habits described in guia-plantas and vida-estudiante are written in
generic first person and are not tied to any identifiable person, place, or
event.
Where each corpus lives
refranesandrecetas— selectable corpus presets in the mini-GPT lab: jmwebsoluciones.com/mini-gpt. Therefranestext is also the default corpus of the single-block transformer demo at jmwebsoluciones.com/lab/entrena-transformer (kept identical on purpose, so a checkpoint trained in either demo starts from the same text).campos-semanticos— the live-training word map at jmwebsoluciones.com/lab/word2vec.guia-plantas— the sample document of the extractive RAG demo at jmwebsoluciones.com/lab/rag.vida-estudiante— the default training corpus of the byte-pair encoding demo at jmwebsoluciones.com/lab/bpe.
Limitations
This is not a general-purpose Spanish corpus and should not be used to evaluate or represent the Spanish language as a whole:
- It is tiny — 237 rows and under 15,000 characters combined across every configuration. Any model trained on it will overfit quickly; that is expected, since the corresponding demos are built to show exactly that happening in real time, not to produce a useful language model.
- It is heavily biased toward one person's life: a student in Madrid, studying machine learning, who cooks and keeps houseplants. Vocabulary, register, and subject matter all reflect that single perspective. This narrowness is a deliberate feature of the source material (see Curation Rationale above), not an attempt at representativeness.
campos-semanticossentences are template-generated combinations of a small set of nouns and verbs within each field, not naturally occurring text — they exist to be learnable, not to be realistic.refranesrestates common proverbs rather than quoting a single attributable source, so it should not be treated as a proverb-collection reference corpus.- No validation or test split is provided. These corpora were built for live, visitor-driven training runs in a browser tab, not for benchmarking.
Licensing Information
Released under CC BY 4.0. Attribution: delcenjo.
Citation Information
@misc{lab-corpora-es,
author = {delcenjo},
title = {lab-corpora-es: small hand-written Spanish corpora for browser ML demos},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/datasets/delcenjo/lab-corpora-es}}
}
- Downloads last month
- 64