katlings / pyambic-pentameter

Home Page:https://poems.katlings.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyambic-pentameter

A webapp that Markov-generates poems from plaintext.


Setup:

Drop plain text sources in /generate/data/ as SOURCE_NAME.txt.

pip install -r requirements.txt (Virtualenv recommended.)

You will need to download the pronunciation dictionary once with python -c "import nltk; nltk.download('cmudict')" or you will get the runtime error Resource cmudict not found.

Run with flask run.

(May require some futzing with relative/absolute imports depending on setup.)

Browse to http://localhost:5000 to read poems!

About

https://poems.katlings.net/

License:MIT License


Languages

Language:Python 71.8%Language:HTML 27.8%Language:CSS 0.4%