“True_poetry: Poetry Generator by GPT-2 With Meter and Rhyme Constraints”, 2020-05-08 (; backlinks; similar):
Just run
true_poetry.pyand type or paste in some text as a prompt and it will generate a sonnet, limerick, couplets or a ballad…You can modify the meter or rhyme scheme however you want.There is still some work to be done. It likes short, one-token words too much. Sometimes the rhyming word is grammatically incorrect. The longer the poem goes, the more likely it is to degenerate…
You can choose between limerick, ballad, or sonnet, or create your own rhyme scheme with a little editing of the code.
A few random samples. I have touched up just the punctuation by hand a bit:
Ballad:
And then with voice as sweet and small
as falling drops she said:
The night will come, it always comes,
with clouds, to change my bed
to snow. But in the night the moon
will put aside the stars,
and in the snow of clouds I will
be buried as you are.Sonnet:
The mixture should continue beating when
you fold in half. The batter will be thick.
You can increase the speed by half and then
increase it further with the beat on stick.
The mixture will continue beating when
you fold in half and then begin to fold
in alternating thirds. You should begin
to notice little peaks, that seem to hold
the mixture from becoming soft. You will
be looking for to lift, or curt but still.Sonnet:
I see, and with my hand I touch the blade,
and feel the steel, and stab myself, and go.
I see, and I confess, that, having played,
I am the fool I was; But that below,
which promised such delight And such despair,
is nothing: it was all: the world and all,
and nothing, I confess, is. For, compare,
that other world of sense; That shining ball,
the soul and senses call; Of this we are,
I hope, in health considered; so afar.Other:
The snow began a little thick and white
and then a little loath; and then, the night,
The wind, and then again the snow; until
The sky above, a dark and endless, still
and empty sky: a sky, a sky. The night,
The moon and wind, the moon, and wind and, white.Other:
The children run, but cannot find
The house’s ghosts; the ghost behind
The curtain calls, the ghost before
The curtains pull apart—The door,
The window open flies. But no—
The windows shut, and blinds below.Limerick:
The Maximus army were led
by Megatron Prime with his red,
mechanical arm,
at fist and forearm,
and he had his fire-flies redLimerick:
And then, as in dreams, she began
to move to her side: and the man
was dumbfounded. He
could sense each degree
of freedom in movement. I canLimerick:
And there was an Englishman who
had married his ex. and so grew
to hate and resent
his wife; And she went
to see that he lived. And the twoLimerick:
There was a young lady aboard
a steamship. The sea? She ignored
the sea, she ignored
the sails, for on board
she saw, in the galley, my lord.