Collaboratively write poetry with your machine, using a simple model and a collection of your favourite poetry.
The model is trained on a sample of your favourite poetry, and provides you with words of inspiration. You use the words to evoke imagery and write the final poetry.
## Get autocomplete module
Available here: https://pypi.python.org/pypi/autocomplete/0.0.104
pip install autocomplete
Create the text file with the poetry you want as inspiration, and point to that file in autocomplete.models.train_bigtxt() The training data set I used is given in this repo as training_set_poetry_plath.txt.
Here's a poem my computer and I co-wrote:
the burning fire as the outsiders entered on the narrowing roads
barrels stacked in the dark shadows
crowds bold and austere
their cries unintelligible, bodies creating an island
the moon coming up, big yellow bulb
the large houses’ windows illuminated
chidren crowded up against the windows
babies fallen asleep upstairs, desultory
among the thump
thump
thump
a top barrel rolls lurches over
clunk
on the ground
and rolls away to the distance