Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 4 new columns ({'gutenberg_id', 'text', 'author', 'book'}) and 5 missing columns ({'license', 'bytes', 'id', 'authors', 'file'}).

This happened while the json dataset builder was generating data using

hf://datasets/Alogotron/poetry-corpus/poetry_corpus.jsonl (at revision 0a6dd53367bc91eb52a4670a8d35a94ab90d4474), ['hf://datasets/Alogotron/poetry-corpus@0a6dd53367bc91eb52a4670a8d35a94ab90d4474/gutenberg_manifest.json', 'hf://datasets/Alogotron/poetry-corpus@0a6dd53367bc91eb52a4670a8d35a94ab90d4474/poetry_corpus.jsonl', 'hf://datasets/Alogotron/poetry-corpus@0a6dd53367bc91eb52a4670a8d35a94ab90d4474/qc_report.json'], ['hf://datasets/Alogotron/poetry-corpus@0a6dd53367bc91eb52a4670a8d35a94ab90d4474/gutenberg_manifest.json', 'hf://datasets/Alogotron/poetry-corpus@0a6dd53367bc91eb52a4670a8d35a94ab90d4474/poetry_corpus.jsonl', 'hf://datasets/Alogotron/poetry-corpus@0a6dd53367bc91eb52a4670a8d35a94ab90d4474/qc_report.json']

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1848, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 765, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 773, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              title: string
              author: string
              book: string
              gutenberg_id: int64
              text: string
              to
              {'id': Value('int64'), 'title': Value('string'), 'authors': List(Value('string')), 'file': Value('string'), 'bytes': Value('int64'), 'license': Value('string')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1850, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
                  ...<4 lines>...
                  )
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 4 new columns ({'gutenberg_id', 'text', 'author', 'book'}) and 5 missing columns ({'license', 'bytes', 'id', 'authors', 'file'}).
              
              This happened while the json dataset builder was generating data using
              
              hf://datasets/Alogotron/poetry-corpus/poetry_corpus.jsonl (at revision 0a6dd53367bc91eb52a4670a8d35a94ab90d4474), ['hf://datasets/Alogotron/poetry-corpus@0a6dd53367bc91eb52a4670a8d35a94ab90d4474/gutenberg_manifest.json', 'hf://datasets/Alogotron/poetry-corpus@0a6dd53367bc91eb52a4670a8d35a94ab90d4474/poetry_corpus.jsonl', 'hf://datasets/Alogotron/poetry-corpus@0a6dd53367bc91eb52a4670a8d35a94ab90d4474/qc_report.json'], ['hf://datasets/Alogotron/poetry-corpus@0a6dd53367bc91eb52a4670a8d35a94ab90d4474/gutenberg_manifest.json', 'hf://datasets/Alogotron/poetry-corpus@0a6dd53367bc91eb52a4670a8d35a94ab90d4474/poetry_corpus.jsonl', 'hf://datasets/Alogotron/poetry-corpus@0a6dd53367bc91eb52a4670a8d35a94ab90d4474/qc_report.json']
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

id
int64
title
string
authors
list
file
string
bytes
int64
license
string
3,011
The Lady of the Lake
[ "Scott, Walter" ]
3011_the_lady_of_the_lake.txt
479,250
public domain
2,002
Sonnets from the Portuguese
[ "Browning, Elizabeth Barrett" ]
2002_sonnets_from_the_portuguese.txt
32,601
public domain
2,147
The Works of Edgar Allan Poe — Volume 1
[ "Poe, Edgar Allan" ]
2147_the_works_of_edgar_allan_poe_volume_1.txt
576,929
public domain
15,272
Spenser's The Faerie Queene, Book I
[ "Spenser, Edmund" ]
15272_spenser_s_the_faerie_queene_book_i.txt
474,481
public domain
20
Paradise Lost
[ "Milton, John" ]
20_paradise_lost.txt
462,770
public domain
1,934
Songs of Innocence and of Experience
[ "Blake, William" ]
1934_songs_of_innocence_and_of_experience.txt
31,373
public domain
5,131
Childe Harold's Pilgrimage
[ "Byron, George Gordon Byron, Baron" ]
5131_childe_harold_s_pilgrimage.txt
225,638
public domain
1,041
Shakespeare's Sonnets
[ "Shakespeare, William" ]
1041_shakespeare_s_sonnets.txt
97,497
public domain
26
Paradise Lost
[ "Milton, John" ]
26_paradise_lost.txt
460,862
public domain
12,242
Poems by Emily Dickinson, Three Series, Complete
[ "Dickinson, Emily" ]
12242_poems_by_emily_dickinson_three_series_co.txt
175,134
public domain
21,262
The Works of Christopher Marlowe, Vol. 3 (of 3)
[ "Marlowe, Christopher" ]
21262_the_works_of_christopher_marlowe_vol_3_o.txt
456,511
public domain
25,609
A Child's Garden of Verses
[ "Stevenson, Robert Louis" ]
25609_a_child_s_garden_of_verses.txt
59,816
public domain
45,315
The Marriage of Heaven and Hell
[ "Blake, William" ]
45315_the_marriage_of_heaven_and_hell.txt
25,926
public domain
1,057
Poems, with The Ballad of Reading Gaol
[ "Wilde, Oscar" ]
1057_poems_with_the_ballad_of_reading_gaol.txt
237,014
public domain
12,843
Poems: Household Edition
[ "Emerson, Ralph Waldo" ]
12843_poems_household_edition.txt
337,006
public domain
25,153
Tales of a Wayside Inn
[ "Longfellow, Henry Wadsworth" ]
25153_tales_of_a_wayside_inn.txt
176,482
public domain
22,717
Lundy's Lane, and Other Poems
[ "Scott, Duncan Campbell" ]
22717_lundy_s_lane_and_other_poems.txt
95,737
public domain
10,031
The Complete Poetical Works of Edgar Allan Poe: Including Essays on Poetry
[ "Poe, Edgar Allan" ]
10031_the_complete_poetical_works_of_edgar_all.txt
378,017
public domain
9,622
Lyrical Ballads, With a Few Other Poems (1798)
[ "Coleridge, Samuel Taylor", "Wordsworth, William" ]
9622_lyrical_ballads_with_a_few_other_poems_1.txt
129,727
public domain
23,684
Keats: Poems Published in 1820
[ "Keats, John" ]
23684_keats_poems_published_in_1820.txt
251,640
public domain
8,601
The Early Poems of Alfred Lord Tennyson
[ "Tennyson, Alfred Tennyson, Baron" ]
8601_the_early_poems_of_alfred_lord_tennyson.txt
589,306
public domain
2,428
An Essay on Man; Moral Essays and Satires
[ "Pope, Alexander" ]
2428_an_essay_on_man_moral_essays_and_satires.txt
262,331
public domain
9,800
The Rape of the Lock, and Other Poems
[ "Pope, Alexander" ]
9800_the_rape_of_the_lock_and_other_poems.txt
340,139
public domain
610
Idylls of the King
[ "Tennyson, Alfred Tennyson, Baron" ]
610_idylls_of_the_king.txt
483,582
public domain
25,617
A Child's Garden of Verses
[ "Stevenson, Robert Louis" ]
25617_a_child_s_garden_of_verses.txt
42,860
public domain
27,494
The Patriotic Poems of Walt Whitman
[ "Whitman, Walt" ]
27494_the_patriotic_poems_of_walt_whitman.txt
174,561
public domain
79,071
Samphire
[ "Powys, John Cowper" ]
79071_samphire.txt
26,246
public domain
151
The Rime of the Ancient Mariner
[ "Coleridge, Samuel Taylor" ]
151_the_rime_of_the_ancient_mariner.txt
23,548
public domain
15,390
Evangeline: with Notes and Plan of Study
[ "Longfellow, Henry Wadsworth" ]
15390_evangeline_with_notes_and_plan_of_study.txt
145,621
public domain
19
The Song of Hiawatha
[ "Longfellow, Henry Wadsworth" ]
19_the_song_of_hiawatha.txt
189,485
public domain
2,151
The Works of Edgar Allan Poe — Volume 5
[ "Poe, Edgar Allan" ]
2151_the_works_of_edgar_allan_poe_volume_5.txt
475,420
public domain
19,188
Poems
[ "Rossetti, Christina Georgina" ]
19188_poems.txt
425,867
public domain
25,611
A Child's Garden of Verses
[ "Stevenson, Robert Louis" ]
25611_a_child_s_garden_of_verses.txt
55,299
public domain
13
The Hunting of the Snark: An Agony in Eight Fits
[ "Carroll, Lewis" ]
13_the_hunting_of_the_snark_an_agony_in_eig.txt
34,167
public domain
22,535
Rubáiyát of Omar Khayyám, and Salámán and Absál: Together with a Life of Edward Fitzgerald and an Essay on Persian Poetry by Ralph Waldo Emerson
[ "Omar Khayyam", "Emerson, Ralph Waldo", "Jami" ]
22535_rub_iy_t_of_omar_khayy_m_and_sal_m_n_and.txt
131,870
public domain
2,490
Lamia
[ "Keats, John" ]
2490_lamia.txt
34,645
public domain
17,192
The Raven
[ "Poe, Edgar Allan" ]
17192_the_raven.txt
45,579
public domain
4,010
Marmion: A Tale Of Flodden Field
[ "Scott, Walter" ]
4010_marmion_a_tale_of_flodden_field.txt
256,210
public domain
38,877
Poems
[ "Yeats, W. B. (William Butler)" ]
38877_poems.txt
218,905
public domain
5,428
A Defence of Poetry and Other Essays
[ "Shelley, Percy Bysshe" ]
5428_a_defence_of_poetry_and_other_essays.txt
169,741
public domain
24,280
Endymion: A Poetic Romance
[ "Keats, John" ]
24280_endymion_a_poetic_romance.txt
192,510
public domain
7,409
An Essay on Criticism
[ "Pope, Alexander" ]
7409_an_essay_on_criticism.txt
54,881
public domain
21,777
The Years Between
[ "Kipling, Rudyard" ]
21777_the_years_between.txt
91,324
public domain
23,545
Songs of Childhood
[ "De la Mare, Walter" ]
23545_songs_of_childhood.txt
71,293
public domain
59,824
Selected Poems
[ "Frost, Robert" ]
59824_selected_poems.txt
114,095
public domain
13,650
Nonsense Books
[ "Lear, Edward" ]
13650_nonsense_books.txt
188,520
public domain
79,019
The poetical works of Edgar Allan Poe
[ "Poe, Edgar Allan" ]
79019_the_poetical_works_of_edgar_allan_poe.txt
209,164
public domain
28,041
Selections from the Poems and Plays of Robert Browning
[ "Browning, Robert" ]
28041_selections_from_the_poems_and_plays_of_r.txt
670,128
public domain
2,619
The Home Book of Verse — Volume 1
[ "Stevenson, Burton Egbert" ]
2619_the_home_book_of_verse_volume_1.txt
662,011
public domain
262
The Collected Poems of Rupert Brooke
[ "Brooke, Rupert" ]
262_the_collected_poems_of_rupert_brooke.txt
152,115
public domain
9,413
The Poetical Works of Alexander Pope, Volume 1
[ "Pope, Alexander" ]
9413_the_poetical_works_of_alexander_pope_vol.txt
550,666
public domain
2,621
The Home Book of Verse — Volume 3
[ "Stevenson, Burton Egbert" ]
2621_the_home_book_of_verse_volume_3.txt
608,220
public domain
260
An Introduction to the Study of Robert Browning's Poetry
[ "Browning, Robert", "Corson, Hiram" ]
260_an_introduction_to_the_study_of_robert_b.txt
679,837
public domain
10,219
The Poetical Works of William Wordsworth — Volume 1 (of 8)
[ "Wordsworth, William" ]
10219_the_poetical_works_of_william_wordsworth.txt
687,564
public domain
58,181
Index of the Project Gutenberg works of Robert Louis Stevenson
[ "Stevenson, Robert Louis" ]
58181_index_of_the_project_gutenberg_works_of.txt
39,259
public domain
16,376
Browning's Shorter Poems
[ "Browning, Robert" ]
16376_browning_s_shorter_poems.txt
298,518
public domain
29,345
Mountain Interval
[ "Frost, Robert" ]
29345_mountain_interval.txt
70,354
public domain
1,719
The Ballad of the White Horse
[ "Chesterton, G. K. (Gilbert Keith)" ]
1719_the_ballad_of_the_white_horse.txt
118,709
public domain
27,424
Cautionary Tales for Children
[ "Belloc, Hilaire" ]
27424_cautionary_tales_for_children.txt
18,633
public domain
22,680
The Biglow Papers
[ "Lowell, James Russell" ]
22680_the_biglow_papers.txt
287,684
public domain
1,280
Spoon River Anthology
[ "Masters, Edgar Lee" ]
1280_spoon_river_anthology.txt
211,841
public domain
21,029
The New Morning: Poems
[ "Noyes, Alfred" ]
21029_the_new_morning_poems.txt
109,732
public domain
1,021
The Congo, and Other Poems
[ "Lindsay, Vachel" ]
1021_the_congo_and_other_poems.txt
110,964
public domain
207
The Spell of the Yukon and Other Verses
[ "Service, Robert W. (Robert William)" ]
207_the_spell_of_the_yukon_and_other_verses.txt
76,089
public domain
58
Paradise Regained
[ "Milton, John" ]
58_paradise_regained.txt
91,557
public domain
8,893
Selections from Poe
[ "Poe, Edgar Allan" ]
8893_selections_from_poe.txt
398,074
public domain
258
Poems by Adam Lindsay Gordon
[ "Gordon, Adam Lindsay" ]
258_poems_by_adam_lindsay_gordon.txt
375,598
public domain
791
The Princess
[ "Tennyson, Alfred Tennyson, Baron" ]
791_the_princess.txt
157,133
public domain
56,621
Aurora Leigh
[ "Browning, Elizabeth Barrett" ]
56621_aurora_leigh.txt
547,106
public domain
301
The Ballad of Reading Gaol
[ "Wilde, Oscar" ]
301_the_ballad_of_reading_gaol.txt
63,501
public domain
16,950
Goblin Market, The Prince's Progress, and Other Poems
[ "Rossetti, Christina Georgina" ]
16950_goblin_market_the_prince_s_progress_and.txt
274,780
public domain
3,026
North of Boston
[ "Frost, Robert" ]
3026_north_of_boston.txt
96,870
public domain
56,913
Maud, and Other Poems
[ "Tennyson, Alfred Tennyson, Baron" ]
56913_maud_and_other_poems.txt
81,914
public domain
22,403
Poems of Gerard Manley Hopkins: Now First Published
[ "Hopkins, Gerard Manley" ]
22403_poems_of_gerard_manley_hopkins_now_first.txt
168,538
public domain
13,725
Stories from the Odyssey
[ "Homer", "Havell, H. L. (Herbert Lord)" ]
13725_stories_from_the_odyssey.txt
371,872
public domain
10,119
Adonais
[ "Shelley, Percy Bysshe" ]
10119_adonais.txt
289,703
public domain
3,545
The Complete Poetical Works of Oliver Goldsmith
[ "Goldsmith, Oliver" ]
3545_the_complete_poetical_works_of_oliver_go.txt
522,483
public domain
574
Poems of William Blake
[ "Blake, William" ]
574_poems_of_william_blake.txt
40,044
public domain
3,698
The Task, and Other Poems
[ "Cowper, William" ]
3698_the_task_and_other_poems.txt
253,232
public domain
982
The Book of Nonsense
[ "Lear, Edward" ]
982_the_book_of_nonsense.txt
27,604
public domain
59,122
Index of the Project Gutenberg Works of Lord Byron
[ "Byron, George Gordon Byron, Baron" ]
59122_index_of_the_project_gutenberg_works_of.txt
44,933
public domain
1,568
Poems
[ "Henley, William Ernest" ]
1568_poems.txt
161,849
public domain
2,678
Poems by Emily Dickinson, Series One
[ "Dickinson, Emily" ]
2678_poems_by_emily_dickinson_series_one.txt
49,697
public domain
79,196
Robert Louis Stevenson reader
[ "Stevenson, Robert Louis", "Bryce, Catherine T. (Catherine Turner)" ]
79196_robert_louis_stevenson_reader.txt
59,091
public domain
37,804
The Poetical Works of Robert Bridges, Excluding the Eight Dramas
[ "Bridges, Robert" ]
37804_the_poetical_works_of_robert_bridges_exc.txt
635,724
public domain
19,819
Milton's Comus
[ "Milton, John" ]
19819_milton_s_comus.txt
280,367
public domain
9,601
The Poetical Works of Alexander Pope, Volume 2
[ "Pope, Alexander" ]
9601_the_poetical_works_of_alexander_pope_vol.txt
610,136
public domain
36,308
Songs From Alice in Wonderland and Through the Looking-Glass
[ "Carroll, Lewis" ]
36308_songs_from_alice_in_wonderland_and_throu.txt
22,287
public domain
25,546
Songs of a Sourdough
[ "Service, Robert W. (Robert William)" ]
25546_songs_of_a_sourdough.txt
79,356
public domain
19,722
A Child's Garden of Verses
[ "Stevenson, Robert Louis" ]
19722_a_child_s_garden_of_verses.txt
39,327
public domain
32,233
The Wind Among the Reeds
[ "Yeats, W. B. (William Butler)" ]
32233_the_wind_among_the_reeds.txt
63,521
public domain
1,034
Poems
[ "Owen, Wilfred" ]
1034_poems.txt
45,736
public domain
22,322
A Legend of Old Persia and Other Poems
[ "Tennyson, A. B. S. (Alfred Browning Stanley)" ]
22322_a_legend_of_old_persia_and_other_poems.txt
88,071
public domain
31,184
Poems
[ "Chesterton, G. K. (Gilbert Keith)" ]
31184_poems.txt
103,911
public domain
353
In Flanders Fields, and Other Poems
[ "McCrae, John" ]
353_in_flanders_fields_and_other_poems.txt
164,521
public domain
8,905
Lyrical Ballads, with Other Poems, 1800, Volume 1
[ "Wordsworth, William" ]
8905_lyrical_ballads_with_other_poems_1800_vo.txt
161,586
public domain
8,801
Drum-Taps
[ "Whitman, Walt" ]
8801_drum_taps.txt
90,141
public domain
30,795
The Song of Hiawatha: An Epic Poem
[ "Longfellow, Henry Wadsworth" ]
30795_the_song_of_hiawatha_an_epic_poem.txt
275,400
public domain
55,749
The Raven, and The Philosophy of Composition
[ "Poe, Edgar Allan" ]
55749_the_raven_and_the_philosophy_of_composit.txt
38,602
public domain
1,045
Venus and Adonis
[ "Shakespeare, William" ]
1045_venus_and_adonis.txt
60,003
public domain
End of preview.

poetry-corpus

Clean public-domain English poetry, byte-level ready. Built for training BDH (Baby Dragon Hatchling, vocab=256 raw bytes): every byte counts as one token, stanza breaks preserved, poem boundaries marked.

Files

File Contents
poetry_corpus.txt Byte-level training rendering (TITLE: / AUTHOR: / body / ---)
poetry_corpus.jsonl One JSON record per line with metadata (schema below)

Schema (JSONL)

{"title": str, "author": str, "book": str, "gutenberg_id": int, "text": str}

Text rendering format (.txt):

TITLE: The Raven
AUTHOR: Edgar Allan Poe

Once upon a midnight dreary, while I pondered, weak and weary,
...
(stanza breaks preserved)
---

Sources & licenses

54 books from Project Gutenberg (public domain), fetched via the gutendex API with a curated whitelist of poets who died before 1931 (Shakespeare, Keats, Shelley, Blake, Byron, Tennyson, Browning, Longfellow, Poe, Whitman, Dickinson, Emerson, Rossetti, Hopkins, Frost, Yeats, Kipling, Stevenson, Carroll, Lear, Wilde, Wordsworth, Coleridge, ...). Per-book manifest with Gutenberg IDs: manifest.json in the build repo.

Cleaning

  • Gutenberg boilerplate stripped (START/END markers, tolerant of line-wrap).
  • Librivox audio-catalog pages detected and excluded at fetch time.
  • Junk blocks (license remnants, Language: English metadata lines) and low-verse-ratio blocks (prose prefaces etc.) excluded.
  • Poem splitting: stanza-based; title-like lines (short, no terminal punctuation, Title Case / CAPS / roman-numeral numbering) open a new poem. Books without clean structure are kept as whole-book records.
  • Dedup: exact + near-dup word-3-gram Jaccard ≥ 0.85 across all books (anthology overlap is common).

Known limitations

  • Poem title detection is heuristic; numbered titles (VI, XXXIII) and the occasional editorial heading (VARIANTS ON THE TEXT) survive.
  • A few prose prefaces pass the verse-ratio filter (short-line prose).
  • Public-domain poetry skews pre-1930 by construction.

Reproduction

Full pipeline + scripts: see the create-datasets project repo (scrapers/fetch_gutenberg_poetry.py, scripts/build_poetry_corpus.py, qc/, CORPUS_REPORT.md).

Downloads last month
28