File size: 1,086 Bytes
37b2dbe
 
 
 
 
 
 
 
 
 
 
 
 
847b6c5
 
 
 
 
 
 
 
c47810b
847b6c5
 
 
 
 
 
37b2dbe
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
---
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](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