Datasets:
title stringlengths 1 248 | authors stringlengths 0 938 | identifier int64 1.31k 4.6M | date_created stringdate 2008-07-17 06:30:16 2025-03-17 22:55:27 | wiki_url stringlengths 32 344 | text stringlengths 0 2.05M | quality_signals stringlengths 59 74 | version_id int64 503k 15M |
|---|---|---|---|---|---|---|---|
Port-Royal/Livre 6/12 | Charles Augustin Sainte-Beuve | 4,600,770 | 2025-03-17T12:52:38Z | https://fr.wikisource.org/wiki/Port-Royal/Livre_6/12 | ### **XII**
Dernier répit accordé à Port-Royal. — Visite de M. de Noailles. — Madame de Grammont et les Marlys. — Le chirurgien Maréchal. — Événements du dehors : *le Cas de Conscience*. — Arrestation du Père Quesnel ; saisie de ses papiers. — La bulle *Vineam Domini*. — Certificat demandé aux religieuses : clause qu’e... | {"ccnet_perplexity": 209.9, "num_tokens": 19360, "doc_length": 77646} | 14,995,259 |
Mozart, l’homme et l’artiste (V. Wilder, 1881)/03 | Victor Wilder | 4,600,795 | 2025-03-17T14:51:55Z | https://fr.wikisource.org/wiki/Mozart,_l%E2%80%99homme_et_l%E2%80%99artiste_(V._Wilder,_1881)/03 | ### III En route pour Paris. — Jomelli et Nardini. — Mozart et Gœthe. — Wolfgang à la cour de France. — Les opinions de Léopold Mozart sur notre musique. — Une prédiction fâcheuse.
Le séjour à Salzbourg ne fut pas de longue durée. Le 9 juin de la même année, Léopold Mozart se remettait en route avec sa femme et ses enf... | {"ccnet_perplexity": 181.01, "num_tokens": 3228, "doc_length": 13221} | 14,995,350 |
Fredi à l’école/00 | Max Des Vignons | 4,601,113 | 2025-03-17T18:21:17Z | https://fr.wikisource.org/wiki/Fredi_%C3%A0_l%E2%80%99%C3%A9cole/00 | ## AVANT-PROPOS
*Cette étude est dédiée aux parents et aux éducateurs. Trop souvent, par ignorance, on laisse échapper, durant l’enfance, les premiers symptômes de l’inversion.*
*Évidemment, Fredi, notre héros, est un inverti-type, il en offre immédiatement toutes les manifestations et il n’est pas possible, dans la ré... | {"ccnet_perplexity": 183.39, "num_tokens": 707, "doc_length": 2958} | 14,996,056 |
Fredi à l’école/01 | Max Des Vignons | 4,601,057 | 2025-03-17T18:38:30Z | https://fr.wikisource.org/wiki/Fredi_%C3%A0_l%E2%80%99%C3%A9cole/01 | ## I
Au signal du maître, comme un vol de moineaux, la bande de gamins s’égailla, Fredi demeura le dernier sur les rangs. Les bras pendants, l’air indécis, il considérait ses camarades qui se précipitaient avec de grands cris.
Ils allaient jouer ; et lui ? Il ne savait pas, il n’avait pas envie de jouer, cela lui parai... | {"ccnet_perplexity": 274.91, "num_tokens": 3027, "doc_length": 11900} | 14,996,101 |
Apollonius de Tyane (Gottheil) | Rubens Duval | 4,601,185 | 2025-03-17T19:23:03Z | https://fr.wikisource.org/wiki/Apollonius_de_Tyane_(Gottheil) | **APPOLONIUS DE TYANE.**
Sous ce titre, M. Richard Gottheil publie dans le dernier cahier de la *Zeitschrift der deutschen morg. Gesellschaft*, t. XLVI, p. 466-470, quelques fragments syriaques sur Apollonius de Tyane, connu pour son art de faire des talismans. Il cite sur ce personnage un passage du *Thesaurus syriacu... | {"ccnet_perplexity": 326.56, "num_tokens": 352, "doc_length": 1274} | 14,996,201 |
Fredi à l’école/02 | Max Des Vignons | 4,601,189 | 2025-03-17T19:39:34Z | https://fr.wikisource.org/wiki/Fredi_%C3%A0_l%E2%80%99%C3%A9cole/02 | ## II
Fredi avait été huitième en composition. Il en resta stupéfié durant plusieurs jours. Les camarades riaient et son orgueil saignait. Ce lui avait été comme un coup de massue ; maintenant tout le dégoûtait et amèrement, il se disait : à quoi bon travailler, pour être huitième en version latine ?
Il continuait cepe... | {"ccnet_perplexity": 285.32, "num_tokens": 7838, "doc_length": 30543} | 14,996,252 |
Abrégé de l’histoire générale des voyages/Tome VIII/Seconde partie/Livre IV/Chapitre IV | Jean-François de La Harpe | 2,945,890 | 2019-03-29T19:50:08Z | https://fr.wikisource.org/wiki/Abr%C3%A9g%C3%A9_de_l%E2%80%99histoire_g%C3%A9n%C3%A9rale_des_voyages/Tome_VIII/Seconde_partie/Livre_IV/Chapitre_IV | #### CHAPITRE IV. ambassade russe Observations tirées de Gemelli Carreri et autres voyageurs.
Avant de passer à la description générale de la Chine, nous recueillerons dans ce chapitre quelques observations tirées d’un voyage de Moscou à la Chine par un ambassadeur russe nommé Évérard Ysbrantz Ides, en 1693.
Après s’êt... | {"ccnet_perplexity": 164.05, "num_tokens": 3502, "doc_length": 14453} | 9,532,459 |
Abrégé de l’histoire générale des voyages/Tome X/Seconde partie/Livre IV/Chapitre XI | Jean-François de La Harpe | 3,100,948 | 2019-10-10T16:46:20Z | https://fr.wikisource.org/wiki/Abr%C3%A9g%C3%A9_de_l%E2%80%99histoire_g%C3%A9n%C3%A9rale_des_voyages/Tome_X/Seconde_partie/Livre_IV/Chapitre_XI | "#### CHAPITRE XI. Histoire naturelle de la Chine. Description de la grande muraille.\nLa vaste éte(...TRUNCATED) | {"ccnet_perplexity": 153.72, "num_tokens": 26790, "doc_length": 108274} | 9,950,462 |
Abrégé de l’histoire générale des voyages/Tome X/Seconde partie/Livre IV/Chapitre XII | Jean-François de La Harpe | 3,116,892 | 2019-10-28T08:08:09Z | https://fr.wikisource.org/wiki/Abr%C3%A9g%C3%A9_de_l%E2%80%99histoire_g%C3%A9n%C3%A9rale_des_voyages/Tome_X/Seconde_partie/Livre_IV/Chapitre_XII | "#### CHAPITRE XI. De la Corée.\nCe pays, après avoir essuyé beaucoup de révolutions, et disput(...TRUNCATED) | {"ccnet_perplexity": 154.6, "num_tokens": 22134, "doc_length": 91630} | 9,992,339 |
Abrégé de l’histoire générale des voyages/Tome VIII/Seconde partie/Livre IV/Chapitre I | Jean-François de La Harpe | 2,881,235 | 2019-01-14T17:34:52Z | https://fr.wikisource.org/wiki/Abr%C3%A9g%C3%A9_de_l%E2%80%99histoire_g%C3%A9n%C3%A9rale_des_voyages/Tome_VIII/Seconde_partie/Livre_IV/Chapitre_I | "### LIVRE QUATRIÈME, CONTENANT LA CHINE.\n#### CHAPITRE PREMIER. Précis de différens voyages à (...TRUNCATED) | {"ccnet_perplexity": 163.96, "num_tokens": 30347, "doc_length": 124169} | 9,360,498 |
Wikisource FR Dataset
This dataset provides a cleaned plain-text version of French open texts from fr.wikisource.org. The content is distributed without HTML tags or MediaWiki templates, and only retains minimal Markdown syntax (headers, lists, tables) to facilitate downstream NLP and LLM usage.
The dataset is built using the Wikimedia Enterprise Snapshot APIs which allow retrieving complete Wikimedia projects as a database dumps file.
Dataset Structure
Data Instances
Each record corresponds to a single Wikisource document or work.
Example:
{
'title': ' De la Chasse (Trad. Talbot)/06',
'authors': 'Xénophon',
'identifier': 1608939,
'date_created': ' 2013-11-03T08:40:48Z',
'wiki_url': ' https://fr.wikisource.org/wiki/De_la_Chasse_(Trad._Talbot)/06',
'text': '### CHAPITRE VI.\nDe l’armure des chiens, du temps propre à la quête, du garde-filet, ...',
'quality_signals': '{"ccnet_perplexity": 213.77, "num_tokens": 2455, "doc_length": 9363}',
}
Data Fields
The data fields are consistent across all configurations:
title(str): Title of the text.authors(str): Authors of the text.identifier(int64): ID of the text.wiki_url(str): URL of the text on Wikisource.date_created(str): Date of creation of the text.text(str): Content of the text.quality_signals(str): Quality signals of the text.
Example Usage (Python)
Load the full dataset:
import datasets
ds = datasets.load_dataset("LeMoussel/wikisource_fr", split="train")
Intended Use
Suitable for pretraining French LLMs. This dataset is intended for:
training and pretraining French language models (LLMs, MLMs),
evaluating language models on literary and historical French texts,
NLP research tasks such as text generation, summarization, or segmentation.
It does not contain personal data and is exclusively composed of freely licensed texts from Wikisource.
Dataset Statistics
The following statistics are provided to facilitate LLM pretraining planning. Exact values may slightly vary depending on the tokenizer and preprocessing strategy.
Total size of the dataset (in memory): ~7.43 GB
Total size of the dataset (on disk): ~4.27 GB
Total number of documents: 472 517 texts
Total number of characters: 7 422 890 508
Average document length: ~15 709 characters
Token Statistics
Estimated using sentencepiece tokenizers commonly employed for French LLMs:
- Estimated total tokens: ~1.9B tokens
- Average number of tokens per document: ~4 120 tokens
Quality Signal: CCNet Perplexity
CCNet Perplexity is a linguistic quality indicator used to measure how close a given text is to a high-quality reference corpus, typically Wikipedia.
It is commonly employed in large-scale dataset filtering pipelines for language model training, in order to identify noisy, malformed, or out-of-domain content.
In this dataset, the score is computed using the open-source implementation provided by OpenLLM-France: CCNet Perplexity Library
The value is exposed in the quality_signals field under the key ccnet_perplexity.
Score Interpretation
Low perplexity (~100–300) Text is linguistically close to Wikipedia:
- well-formed syntax
- standard vocabulary
- coherent structure
- low noise level
High perplexity (>1000) Text significantly diverges from the reference corpus:
- poorly formatted content
- potential noise or spam
- OCR artifacts
- or highly specialized vocabulary uncommon in Wikipedia
Lower perplexity indicates that the text is more likely under the Wikipedia-trained language model, and therefore closer to the reference domain.
⚠️ A high perplexity score does not necessarily imply low semantic value, but rather a linguistic distance from the Wikipedia domain.
Observations for the Wikisource FR Dataset
- Median CCNet Perplexity: 298.84
This indicates that the majority of Wikisource documents exhibit a linguistic quality comparable to Wikipedia, which is consistent with the curated and editorial nature of the source.
Extreme values (up to ~183 437) These outliers most likely correspond to:
- documents with highly specialized or archaic vocabulary,
- residual formatting issues,
- atypical content structures (tables, lists, annotations),
- or extraction artifacts.
This signal can be leveraged to:
- filter documents based on quality thresholds,
- weight samples during training,
- or analyze quality distributions within the corpus.
License
The texts originate from Wikisource and are governed by the licenses defined by the Wikimedia Foundation:
Some texts may be available only under the CC BY-SA license or may belong to the public domain. Please refer to Wikimedia Terms of Use for details.
Aknowledgements
Many thanks to the Wikimedia Foundation for providing open access to the data and maintaining a high-quality open knowledge ecosystem.
Citation
@online{wikisource_fr_dump,
author = "LeMoussel Labs",
title = "French plain text of Wikisource",
url = "https://huggingface.co/datasets/LeMoussel/wikisource_fr"
}
- Downloads last month
- 30
