2018-09-09 19:07:08 +08:00
2018-09-09 18:07:37 +08:00
2018-09-09 19:07:08 +08:00

pmlg-poem-generator

This is a poem generator trained with Gated Recurrent Units (GRU) on a corpus of poems including those in:

  • Poems every child should know
  • Some other poems
  • And some more poems

Most of the code comes from Tensorflow's text generation tutorial.

Please refer to the notebook for an overview of the results.

To do next

Short term:

  • Clean the corpus
  • Find more data
  • Try LSTM
  • Train a model based on sequences of words instead of characters

Middle term goals:

  • Create a rhyme generator
  • Train a model backward: from the last word to the first

The idea is to generate the rhymes first, and then write the lines from the last word to the first. This process makes sure that the generated poems rhyme.

  • Learn to count syllables?

Long term goals

  • Generate other kind of text (Haiku, magazines, articles, books...)
S
Description
No description provided
Readme
2.3 MiB
0 Stars 1 Watchers 0 Forks
Languages
Jupyter Notebook 100%