Explore the fascinating intersection of poetry and programming in this PyCon US talk. Discover how to leverage Python's Natural Language Toolkit (NLTK) and Markov chain random text generation to create poems with both rhyme and meter. Learn the fundamentals of poetry, including rhyme schemes and meter, and see how these concepts can be implemented in code. Follow along as the speaker demonstrates the process of generating random text based on source material, enhancing it with NLTK, and ultimately producing a computer-generated Shakespearean sonnet. Gain insights into this beginner-friendly project that offers ample opportunities for creativity and further exploration. Access the accompanying slides and code on GitHub to dive deeper into the world of computational poetry.
Overview
Syllabus
Introduction
Poetry 101
Markov Chain Generation
Natural Language Toolkit
Rhyme
Meter
Live demo
Taught by
PyCon US