A small poetry machine
Second-order Markov transitions assemble new lines one word at a time, with the previous two words as context.
Try the method
Interactive explainerHow it works.
Read the corpus
The original Python project learns transition counts from Robert Frost's poetry.
Continue in the source.
Open the source notebook in Jupyter, Colab, or the environment described in the README. Data and model downloads may be required.
git clone https://github.com/eforus-overseer/poetry_generation.gitRead the setup and requirements ↗Project artifacts.
Source links point to the original public repository. Credit belongs to the project authors and the dependencies credited there.