File size: 4,104 Bytes
3636c47 07a83e3 3636c47 07a83e3 3636c47 07a83e3 3636c47 07a83e3 3636c47 07a83e3 3636c47 07a83e3 3636c47 07a83e3 3636c47 07a83e3 3636c47 07a83e3 3636c47 07a83e3 3636c47 2600008 3636c47 07a83e3 3636c47 07a83e3 3636c47 2600008 3636c47 07a83e3 3636c47 07a83e3 3636c47 07a83e3 3636c47 07a83e3 3636c47 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
---
language:
- fr
license:
- cc-by-sa-4.0
task_categories:
- text-generation
- fill-mask
task_ids:
- language-modeling
- masked-language-modeling
configs:
- config_name: default
data_files:
- split: train
path: "*/20231201/*.parquet"
- config_name: "fr"
data_files:
- split: train
path: "fr/20231201/*.parquet"
- config_name: "sample"
data_files:
- split: train
path: fr/20231201/train-000000-of-000032.parquet
dataset_info:
- config_name: "fr"
features:
- name: id
dtype: int32
- name: url
dtype: string
- name: title
dtype: string
- name: text
dtype: string
splits:
- name: train
num_bytes: 3274591809
num_examples: 185700
download_size: 1934221408
dataset_size: 3274591809
- config_name: "sample"
features:
- name: id
dtype: int32
- name: url
dtype: string
- name: title
dtype: string
- name: text
dtype: string
splits:
- name: train
num_bytes: 123744195
num_examples: 5803
download_size: 72062489
dataset_size: 123744195
---
# Plain text of Wikisource
* [Dataset Description](#dataset-description)
* [Size](#size)
* [Example use (python)](#example-use-python)
* [Data fields](#data-fields)
* [Notes on data formatting](#notes-on-data-formatting)
* [License](#license)
* [Aknowledgements](#aknowledgements)
* [Citation](#citation)
## Dataset Description
This dataset is a plain text version of pages from [wikisource.org](https://wikisource.org/) in French language.
The text is without HTML tags nor wiki templates.
It just includes markdown syntax for headers, lists and tables.
See [Notes on data formatting](#notes-on-data-formatting) for more details.
It was created by [LINAGORA](https://labs.linagora.com/) and [OpenLLM France](https://openllmfrance.org/)
from the [Wikimedia dumps](https://dumps.wikimedia.org/other/enterprise_html/runs),
using code in [https://github.com/OpenLLM-France/wikiplaintext](https://github.com/OpenLLM-France/wikiplaintext).
### Size
The amount of data for the latest dump (20231201) is:
| | **French** |
| :---------------|--------: |
| # documents | 185 700 |
| # paragraphs | 585 700 |
| # words | 523 310 649 |
| # characters | 3 079 850 209 |
| size on disk | 1.9G |
## Example use (python)
Load the full dataset:
```python
import datasets
ds = datasets.load_dataset("OpenLLM-France/wikisource", streaming=True, split="train")
```
Load only a small subset:
```python
ds = datasets.load_dataset("OpenLLM-France/wikisource", "sample", split="train")
```
A version "`repeated_headers`" of the dataset is available, where headers are repeated before each section
(see https://huggingface.co/datasets/OpenLLM-France/wikipedia#alternative-markdown-syntax).
This dataset can be obtained with:
```python
ds = datasets.load_dataset("OpenLLM-France/wikisource", revision="repeated_headers", split="train")
```
## Data fields
The data fields are the same among all configurations:
- `id` (int): ID of the page.
- `url` (`str`): URL of the page.
- `title` (`str`): Title of the page.
- `text` (`str`): Text content of the page.
## Notes on data formatting
see [OpenLLM-France/wikipedia.fr](https://huggingface.co/datasets/OpenLLM-France/wikipedia)
## License
This dataset is distributed under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/).
## Aknowledgements
This dataset was created by [Jérôme Louradour](https://huggingface.co/Jeronymous) on behalf of
[LINAGORA](https://labs.linagora.com/) and
[OpenLLM France](https://openllmfrance.org/).
Many thanks to the [Wikimedia Foundation](https://wikimediafoundation.org/)
for providing the data and useful advices,
in particular Isaac Johnson, Albert Villanova and Rémy Gerbet.
## Citation
```
@online{wikisource_fr_dump,
author = "Jérôme Louradour, OpenLLM-France, LINAGORA Labs",
title = "Plain text of Wikisource",
url = "https://huggingface.co/datasets/OpenLLM-France/wikisource"
}
```
|