Skip to content
Generate poetry based on text corpus input
Python HTML JavaScript CSS Makefile
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
static
templates
texts
.gitignore
Makefile
Procfile Download corpora in Heroku Procfile Jan 29, 2016
README.md
app.py
ling.py
requirements.txt
unwords.py
word.py

README.md

poetry-generator

Fountain Out - A Dynamically Generated Poem

View live here

Fountain Out is a dynamically generated poem that eventually converges to one word. It resets about once a day and converges differently each time. You may have to check back every now and then to watch it at different points before it converges, or to see where it converged that day.

Images/GIFs

Before converging: animated GIF

After converging: after converging image still

To run:

  • clone repo
  • run python app.py
  • run pip install -r requirements.txt
  • hit up localhost:5000

Input texts:

  • Gertrude Stein's Tender Buttons
  • You can add or modify as many .txt files as you want within the /texts directory. The text files are used as the training corpus.

General Poem Generation

Sample poem:

their less happy times 
        potentially benefitting
        particularly lonely 

                        and closed his eyes
                                and wavering motion

    a     a     a
                            few nervous steps
                                                    forward
                                                    and stopped

promise

promise said

several wealthy countries
have so far 

less intense more
successful when the

ideal dosage of
his painting influenced by genetics e.g time effort they
are to maintain
their efforts 

but it was difficult
to say what ’s so great

though the city

new york is
interesting is 

that woman ’s love about new york
You can’t perform that action at this time.