metadata
license: mit
task_categories:
- question-answering
- text-generation
language:
- en
tags:
- art
pretty_name: Leaves of Grass
size_categories:
- 10K<n<100K
leaves of grass
The following is a dataset for training a model to generate text in the style of Walt Whitman's "Leaves of Grass".
The idea with this dataset is to provide a single line (input) and then provide the next lines (1 to 10 lines) of the poem as output.
A model can then be trained to generate lines of poems given a single line of input.
There is a generate_data.py script that can be used to generate the dataset.
It keeps some formatting. New lines may be indented by a single tab or no tab.
Every line in the "output" is separated by a single newline character.
Overall the original formatting is kept but made more machine readable.
The original Leaves of Grass file can be found on gutenberg: https://www.gutenberg.org/files/1322/1322-0.txt
Usage
python generate_data.py