~/talk

Pyambic Pentameter: generating rhyming and metered poems

Talkat PyCon US 2020 · 2020-04-15..04-23· [machine-learning]
slides:none on file

Claims an automated pipeline that generates rhyming, metered lines by combining a Markov chain generator with the pronunciation lookup in NLTK CMUdict, slicing pronunciations at the last stressed syllable to group rhymes and enforcing backtracking against a target stress pattern. Code builds a backwards Markov model, picks K rhyming seeds, and backtracks to fit iambic pentameter. A Flask demo generates Beatles-style sonnets and a full fourteen-line Shakespearean sonnet is produced, though output quality depends on source corpus size and word coverage.

AI-written summary · about

  1. 0:00Introduction
  2. 0:33Poetry 101
  3. 3:18Markov Chain Generation
  4. 10:46Natural Language Toolkit
  5. 13:59Rhyme
  6. 16:51Meter
  7. 22:38Live demo
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.