File size: 1,811 Bytes
294ea5b
 
021c00b
 
 
 
 
 
 
 
 
 
294ea5b
4b9805b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
472942b
 
 
4b9805b
 
 
 
 
 
 
 
 
 
 
472942b
 
 
4b9805b
 
 
0033a50
 
 
 
4b9805b
 
d1c15ac
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
---
license: cc-by-sa-3.0
task_categories:
- text-generation
language:
- fr
tags:
- wikipedia
- wiki
- fr.wikipedia.org
size_categories:
- 1M<n<10M
---

# French Wikipedia Dataset

## Overview

This dataset is a curated collection of approximately 1.1 million French Wikipedia articles, scraped directly from the [official French Wikipedia site](https://fr.wikipedia.org/) on September 24, 2023. It aims to address issues with existing Wikipedia datasets, such as poorly parsed text missing essential information like dates and locations.

## Format

- **Type**: Text
- **File Extension**: `.txt`

## Structure

The dataset is divided into the following splits:

- `train.txt`: 3.48 GB - 1,810,000 rows - 90%
- `test.txt` : 194 MB  - 100,500 rows   - 5%
- `valid.txt`: 194 MB  - 100,500 rows   - 5%

Each article in the dataset exceeds 1200 characters in length.

## Data Cleaning and Preprocessing

The following elements have been excluded from the dataset:

- H1 - H4 Headings
- Lists
- Tables
- Sources and References
- Info box
- Banners
- LaTeX code

The text has been standardized for consistent formatting and line length. Additionally, the dataset has been filtered using the `langid` library to include only text in French. Some quotations or short terms in other languages, including non-Latin languages, may still be present.

## Exploring the Dataset

You can use the `explore_dataset.py` script to explore the dataset by randomly displaying a certain number of lines from it. The script creates and saves an index based on the line breaks, enabling faster data retrieval and display.

## Additional Information

This dataset is a subset of a larger 10GB French dataset, which also contains several thousand books and theses in French, as well as several hundred thousand Francophone news articles.