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 or multiple lines from the poem, and then provide the next line in the poem. The model will be trained to predict the next line in the poem given the previous lines.
There is a generate_data.py script that can be used to generate the dataset. The script takes a text file of the poem and generates a dataset in the format described above.
It keeps some formatting. After each poem title, there is a double newline character. Each block of a poem is also separated by a double newline character.
Every line in a block is separated by a single newline character. Tabs are used as poetic indentations. Overall the original formatting is kept but made more machine readable.
Usage
python generate_data.py