Dataset Viewer
Auto-converted to Parquet Duplicate
title
stringlengths
4
331
text
stringlengths
30
61.5k
id
stringlengths
9
9
paragraphs
int64
1
50
articles
int64
1
10
words
int64
4
9.7k
Constitución de Corea del Sur Shillong Lajong Football Club Fiódor Vólkov Capitanía general de Chile
La Constitución de la República de Corea (en hangul, 대한민국 헌법; en hanja, 大韓民國憲法; romanización revisada del coreano, Daehanminguk heonbeob; McCune-Reischauer, Taehanmin'guk hŏnbŏp; Yale, Tayhanminkwuk henpep), es el texto constitucional básico de la República de Corea, cuya primera edición fue promulgada y firmada el 17 ...
S0-000000
50
4
3,708
Congreso de Tacna Baby Rasta & Gringo Universidad de Bari George Johnston Marisela Carrasco Microcnemum coralloides
El Congreso de Tacna fue un congreso de nueve plenipotenciarios de los Estados integrantes de la Confederación Perú-Boliviana (la República de Bolivia, el Estado Sud-Peruano y el Estado Nor-Peruano). Su misión fue aprobar la Ley fundamental de la Confederación Perú-Boliviana, más conocido como el Pacto de Tacna, docume...
S0-000001
50
6
2,730
Matt Helm, agente muy especial St Martin's Ampleforth Federación de Fútbol de la Unión Soviética Haplopappus diplopappus Otoño en mi corazón Lito Álvarez Hugo Bryan Monte Kaka de Luxe
Matt Helm, agente muy especial es una película estadounidense de 1966, del género de espías, dirigida por Henry Levin, protagonizada por Dean Martin, Ann-Margret, Karl Malden, Camilla Sparv, y James Gregory en los papeles principales. Es la segunda película de la serie de cuatro sobre el agente Matt Helm. Las otras son...
S0-000002
35
8
1,583
Otte Brahe Microrregión de Carira Kitáb-i-Aqdas Frisby (empresa) Autobiografía
Otte Brahe (2 de octubre de 1518 - Helsingborg, 9 de mayo de 1571) fue un reconocido oficial luterano de la Milicia Real danesa además de haber pertenecido al Rigsraadet. Brahe fue el padre del famoso astrónomo Tycho Brahe. En repetidas ocasiones Brahe viajó a Alemania, España e Italia y, en el año 1599 estuvo en Roma,...
S0-000003
50
5
3,443
Sakuranetina Río Bistrița Pascuala Calonge Díez Harvest Moon: Tree of Peace
Sakuranetin es una flavanona, un tipo de flavonoide. Se puede encontrar en Polymnia fruticosa y en el arroz, donde actúa como una fitoalexina contra la germinación de esporas de Pyricularia oryzae. Sakuranin es el -O-glucósido de sakuranetin. Naringenin 7-O-methyltransferasa usa naringenina para producir sakuranetin, c...
S0-000004
26
4
1,439
Quebrada Caroata Kingsman: The Secret Service Duna
La Quebrada Caroata en la actualidad esta quebrada corre hoy en su mayor parte embaulada por debajo de la urbanización el Silencio y el casco central de la ciudad de Caracas. Se origina en el ramal de la cordillera llamado Catia donde recibe las aguas de diversas quebradas como son: Agua Salada, Agua Salud y El Polvorí...
S0-000005
50
3
4,350
Hipótesis fagotrófica Irish Albums Chart Corregimiento de Potosí
La hipótesis fagotrófica postula que el origen de la célula eucariota o eucariogénesis fue conducido por la capacidad de ingerir presas. Según esta hipótesis, la conversión de la rígida pared bacteriana de peptidoglicano en una superficie celular flexible de glicoproteínas permitió por primera vez en la historia de la ...
S0-000006
50
3
2,976
El abate Julio Neoplasia Allah-Taala Batalla de Araviana Río Ocoña
El abate Julio (en francés L'Abbé Jules) es una novela del escritor anarquista francés Octave Mirbeau, publicada por la editorial Charpentier el 13 de marzo de 1888, después de una anterior publicación como folletín en el Gil Blas. La última edición, con prólogo de Pierre Michel, apareció en febrero de 2010 en las edic...
S0-000007
29
5
1,554
Peter Frederik Suhm Canthium coromandelicum Grus americana Antonia Olivares Frontón Deportivo La isla deshabitada (Traetta) Represión política Sharon Nicholson
Peter Frederik Suhm (Copenhague 18 de octubre de 1728 – Øverød 7 de septiembre de 1798) fue un historiador danés. Tomó parte en la conjuración que derrocó del poder al ministro Struensee en 1772; se mostró favorable a las reformas y protegió las letras. Poseedor de una biblioteca de 100.000 volúmenes, ponía esta inmens...
S0-000008
50
8
3,239
Kenryaku Tour de Omán 2022
Kenryaku (建暦) era un nombre de la era japonesa (年号, nengō,, lit. "nombre del año") después de Jōgen y antes de Kempo. Este período comenzó en marzo de 1211 y terminó en diciembre de 1213. El emperador reinante era Juntoku-tennō (順徳天皇). La 11.ª edición del Tour de Omán se disputó entre el 10 y el 15 de febrero de 2022 ...
S0-000009
7
2
264
Pier Minor Earth Major Sky Ruta Nacional 7 (Argentina)
Pier es una banda de rock de Argentina. Está formada por Ramiro Cerezo en voz, Agustín Cerezo en guitarra, Juan Cruz Copes en bajo y Roy Quiroga en batería. Editaron trece trabajos discográficos, dos DVD y un vinilo hasta la fecha. Los miembros de la banda son originarios del barrio porteño de Palermo. Son considerados...
S0-000010
50
3
3,012
End of preview. Expand in Data Studio

Wikipedia Articles (Spanish)

This dataset contains segmented articles from the Spanish Wikipedia. Each example includes structural and textual information designed for tasks such as text classification, segmentation, and sentence similarity.

The dataset is divided into three subsets:

  • wikipedia-es-A000: Suggested train dataset; 26510 groups of articles.
  • wikipedia-es-A001: Suggested validation dataset; 3336 groups of articles.
  • wikipedia-es-A002: Suggested test dataset; 6557 groups of articles.

Each record contains the following fields:

Field Description
title Title or subtitle of the article (List[str])
text Paragraphs or sentences in the segment (List[str])
id Unique segment ID
paragraphs Number of paragraphs
articles Number of articles spanned
words Total word count

🔍 The train.parquet file is a flattened version (for visualization only), where title and text have been converted to plain strings.


📦 How to Use

🔹 Load the full dataset (with structured fields)

To load the dataset for training or processing:

git lfs install
git clone https://huggingface.co/datasets/Alverciito/wikipedia_articles_es
from datasets import load_from_disk

ds = load_from_disk("wikipedia-es-A000")  # or A001 / A002

🔧 Dataset Construction Pipeline

This dataset was generated in two main stages:

1️⃣ Wikipedia Article Extraction (ZIM-based)

Raw articles are extracted directly from an offline Wikipedia ZIM file using a custom extractor. Download the Spanish Wikipedia ZIM file here.

The extraction process:

  • Randomly samples Wikipedia articles by internal index
  • Parses HTML content using BeautifulSoup
  • Extracts clean paragraph-level text
  • Optionally follows internal Wikipedia links (relation recursion)
  • Assigns unique document IDs

Each extracted article contains:

  • title
  • text (list of paragraphs)
  • internal references (used only during extraction)

This approach ensures:

  • No dependency on the live Wikipedia API
  • Full reproducibility from a fixed ZIM snapshot
  • High-throughput extraction suitable for large-scale datasets

2️⃣ Segmentation into Multi-Article Samples

Extracted articles are converted into segmented documents using a controlled aggregation strategy.

Segmentation rules:

  • Each sample contains 1 to 10 articles
  • Articles are concatenated until a maximum paragraph limit is reached
  • Paragraphs are preserved as coherent textual units
  • Metadata is accumulated per segment

Resulting metadata per sample:

  • paragraphs: total number of paragraphs
  • words: total word count
  • articles: number of Wikipedia articles combined
  • title: list of article titles
  • text: list of paragraph blocks (order preserved)

This structure is designed for:

  • document-level classification
  • segmentation boundary detection
  • long-context language modeling
  • sentence and paragraph similarity tasks

📊 Dataset Statistics

Each sample provides both local and global structural information:

  • Document length in paragraphs and words
  • Number of source articles per segment
  • Explicit title grouping for multi-article samples

This enables models to reason about structure and scale, not just raw text.


🔍 Article Overlap & Data Leakage Analysis

To assess potential cross-split contamination, we measure the article-level overlap rate between dataset splits.
Overlap is defined as the percentage of unique Wikipedia article titles that appear in more than one split, regardless of segmentation or grouping.

Methodology

  • Titles are extracted from the title field (List[str]) of each sample.
  • Titles are flattened and deduplicated per split.
  • Overlap is computed as the set intersection between splits, normalized by the size of the compared split.

Results

 (A000) ∩  (A001):      1.64%
 (A000) ∩  (A002):      3.26%
 (A001) ∩  (A002):      1.77%

🧪 Visualization & Exploration

A Gradio-based dataset explorer is included for interactive inspection.

Features:

  • Browse samples by index
  • View full segmented text with paragraph numbering
  • Inspect per-sample statistics
  • Visualize global distributions:
    • Paragraph counts
    • Word counts
    • Articles per segment

Typical use cases:

  • Dataset sanity checking
  • Length distribution analysis
  • Manual validation of segmentation quality

▶️ Running the data Visualizer

python bin/visualizer.py

You will be prompted for the dataset path, for example:

Enter dataset path: /home/example_user/data/wikipedia-es-A000

🔁 Reproducibility Notes

Dataset generation is fully reproducible given:

  • the same Wikipedia ZIM file
  • the same random seed

No heuristic filtering is applied beyond:

  • HTML parsing
  • whitespace normalization
  • reference deduplication during extraction

This makes the dataset suitable for:

  • research benchmarks
  • controlled experiments
  • regeneration with alternative segmentation policies

⚠️ Known Limitations

  • Some articles may be short or partially extracted due to Wikipedia formatting
  • Titles are stored as lists (one per article) rather than flattened strings
  • Internal references are not included in the final dataset (used only during extraction)

📜 License & Attribution

  • License: MIT
  • Source: Spanish Wikipedia (offline ZIM snapshot)
  • Author: Alberto Palomo Alonso
  • Institution: Universidad de Alcalá – Escuela Politécnica Superior

Wikipedia content is redistributed under its original license terms.

Downloads last month
18

Collection including Alverciito/wikipedia_articles_es