File size: 1,217 Bytes
2f34d96
 
 
90a0ba9
2f34d96
 
 
 
 
 
 
 
 
 
 
b601214
2f34d96
b601214
 
2f34d96
 
 
 
 
 
 
 
 
 
 
 
47d1111
 
7c1a9b9
47d1111
 
 
 
 
7c1a9b9
47d1111
 
 
 
 
 
 
 
 
 
 
 
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
---
language:
- fr
license: mit
size_categories:
- 1M<n<10M
task_categories:
- text-generation
pretty_name: Tiny Molière
dataset_info:
  features:
  - name: text
    dtype: string
  splits:
  - name: train
    num_bytes: 2387600
    num_examples: 1
  download_size: 2387600
  dataset_size: 2387600
configs:
- config_name: default
  data_files:
  - split: train
    path: data/tinymoliere.txt
tags:
- literature
- french-literature
- moliere
- classical-text
- character-level
---
# tiny-moliere

A dataset repo generating `tinymoliere.txt` containing Molière's complete work.

Inspired by [tinyshakespeare](https://github.com/karpathy/char-rnn/blob/master/data/tinyshakespeare/input.txt) by Andrej Karpathy, this project provides a consolidated small text corpus ideal for training and learning with small transformer models.

## What it does

Downloads Molière's complete works from public PDFs, processes them to remove headers/footers and table of contents, then outputs a single clean text file suitable for machine learning tasks.

## Usage

```bash
uv sync
uv run python main.py
```

This will:
1. Download the source PDFs to `data/` directory
2. Process and clean the text
3. Generate `data/tinymoliere.txt`