Datasets:
Update README: document humanities+wikitext corpus, 4000 BPE tokenizer
Browse files
README.md
CHANGED
|
@@ -7,59 +7,71 @@ language:
|
|
| 7 |
tags:
|
| 8 |
- philosophy
|
| 9 |
- classical-texts
|
| 10 |
-
-
|
|
|
|
|
|
|
| 11 |
- gpt-training
|
| 12 |
size_categories:
|
| 13 |
-
-
|
| 14 |
-
dataset_info:
|
| 15 |
-
features:
|
| 16 |
-
- name: text
|
| 17 |
-
dtype: string
|
| 18 |
-
splits:
|
| 19 |
-
- name: train
|
| 20 |
-
num_bytes: 20542969
|
| 21 |
-
num_examples: 284485
|
| 22 |
-
- name: validation
|
| 23 |
-
num_bytes: 2273279
|
| 24 |
-
num_examples: 31610
|
| 25 |
-
download_size: 14763402
|
| 26 |
-
dataset_size: 22816248
|
| 27 |
-
configs:
|
| 28 |
-
- config_name: default
|
| 29 |
-
data_files:
|
| 30 |
-
- split: train
|
| 31 |
-
path: data/train-*
|
| 32 |
-
- split: validation
|
| 33 |
-
path: data/validation-*
|
| 34 |
---
|
| 35 |
|
| 36 |
-
# Philosophy Corpus
|
| 37 |
|
| 38 |
-
|
| 39 |
|
| 40 |
-
##
|
| 41 |
|
| 42 |
-
|
|
| 43 |
-
|---|---|---|
|
| 44 |
-
| **
|
| 45 |
-
| **
|
| 46 |
-
| **Stoics** | Marcus Aurelius Meditations, Epictetus Discourses & Enchiridion, Seneca Moral Essays | 4 |
|
| 47 |
-
| **Roman** | Lucretius On the Nature of Things, Cicero (On Duties, Nature of Gods, On Friendship) | 4 |
|
| 48 |
-
| **Early Modern** | Descartes (Method, Meditations), Kant Critique of Pure Reason, Spinoza Ethics, Hobbes Leviathan, Locke Second Treatise, Bacon Essays | 6 |
|
| 49 |
-
| **Enlightenment/19th c.** | Hume, Rousseau, Nietzsche (x2), Mill (x2), Machiavelli, Emerson, Thoreau, Montaigne, Schopenhauer | 10 |
|
| 50 |
-
| **Other** | Boethius Consolation, Diogenes/Epicurus, Latin Grammar | 6 |
|
| 51 |
|
| 52 |
-
##
|
| 53 |
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
- **data/full_corpus.txt** - Full concatenated corpus with original casing (~26 MB)
|
| 57 |
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
-
|
| 61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
## Usage
|
| 64 |
|
| 65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
tags:
|
| 8 |
- philosophy
|
| 9 |
- classical-texts
|
| 10 |
+
- humanities
|
| 11 |
+
- wikitext
|
| 12 |
+
- bpe-tokenizer
|
| 13 |
- gpt-training
|
| 14 |
size_categories:
|
| 15 |
+
- 1M<n<10M
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
---
|
| 17 |
|
| 18 |
+
# Philosophy & Humanities Corpus
|
| 19 |
|
| 20 |
+
Combined humanities and Wikipedia corpus for training small language models.
|
| 21 |
|
| 22 |
+
## Dataset
|
| 23 |
|
| 24 |
+
| Split | Lines | Size | Description |
|
| 25 |
+
|-------|-------|------|-------------|
|
| 26 |
+
| **train.txt** | 3.0M | 549 MB | Humanities (368K lines) + WikiText-103 (2.6M lines) |
|
| 27 |
+
| **val.txt** | 315K | 57 MB | Matching validation split |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
+
## Sources
|
| 30 |
|
| 31 |
+
### Humanities (368K lines, 66 MB)
|
| 32 |
+
54 classical philosophy and humanities texts:
|
|
|
|
| 33 |
|
| 34 |
+
| Category | Works |
|
| 35 |
+
|---|---|
|
| 36 |
+
| **Plato** | Republic, Apology, Symposium, Phaedo, Crito, Meno, Phaedrus, Timaeus, Laws, Gorgias, Protagoras, Theaetetus |
|
| 37 |
+
| **Aristotle** | Categories, Ethics, Rhetoric, Physics, Metaphysics, Poetics, Politics, On the Soul, On the Heavens, Prior/Posterior Analytics, Topics, On Generation & Corruption |
|
| 38 |
+
| **Stoics** | Marcus Aurelius Meditations, Epictetus Discourses & Enchiridion, Seneca Moral Essays |
|
| 39 |
+
| **Roman** | Lucretius, Cicero (On Duties, Nature of Gods, On Friendship) |
|
| 40 |
+
| **Early Modern** | Descartes, Kant, Spinoza, Hobbes, Locke, Bacon |
|
| 41 |
+
| **Enlightenment/19th c.** | Hume, Rousseau, Nietzsche, Mill, Machiavelli, Emerson, Thoreau, Montaigne, Schopenhauer |
|
| 42 |
+
| **Other** | Boethius, Diogenes/Epicurus, Aeschylus, Latin Grammar, Euclid Elements |
|
| 43 |
+
|
| 44 |
+
Sources: [Project Gutenberg](https://www.gutenberg.org/), [MIT Internet Classics Archive](http://classics.mit.edu/)
|
| 45 |
+
|
| 46 |
+
### WikiText-103 (2.6M lines, 481 MB)
|
| 47 |
+
Wikipedia articles from [Salesforce/wikitext](https://huggingface.co/datasets/Salesforce/wikitext) (wikitext-103-v1). Cleaned, chunked, and deduplicated.
|
| 48 |
|
| 49 |
+
## Tokenizer
|
| 50 |
+
|
| 51 |
+
**tokenizer.json** — BPE tokenizer (4000 vocab) trained on the combined corpus.
|
| 52 |
+
- Format: HuggingFace tokenizers JSON (GPT-2 ByteLevel BPE)
|
| 53 |
+
- Special tokens: `<|pad|>` (id=0), `<|eos|>` (id=1)
|
| 54 |
+
|
| 55 |
+
## Files
|
| 56 |
+
|
| 57 |
+
| File | Description |
|
| 58 |
+
|------|-------------|
|
| 59 |
+
| `train.txt` | Combined training data (one chunk per line) |
|
| 60 |
+
| `val.txt` | Combined validation data |
|
| 61 |
+
| `tokenizer.json` | BPE tokenizer (vocab_size=4000) |
|
| 62 |
+
| `data/*.txt` | Individual source text files |
|
| 63 |
+
| `train_enriched.jsonl` | Enriched training data with metadata |
|
| 64 |
+
| `train_trivium.txt` | Trivium-phase subset |
|
| 65 |
+
| `train_quadrivium.txt` | Quadrivium-phase subset |
|
| 66 |
+
| `train_philosophy.txt` | Philosophy-phase subset |
|
| 67 |
|
| 68 |
## Usage
|
| 69 |
|
| 70 |
+
Training data for [JuliaGPT](https://github.com/DavinciDreams/JuliaGPT) — small transformer language models in Julia (Flux.jl).
|
| 71 |
+
|
| 72 |
+
```julia
|
| 73 |
+
# Auto-downloaded by juliadistill.ipynb
|
| 74 |
+
hf_download("LisaMegaWatts/philosophy-corpus", "train.txt"; repo_type="dataset")
|
| 75 |
+
hf_download("LisaMegaWatts/philosophy-corpus", "val.txt"; repo_type="dataset")
|
| 76 |
+
hf_download("LisaMegaWatts/philosophy-corpus", "tokenizer.json"; repo_type="dataset")
|
| 77 |
+
```
|