I Forged Emily Dickinson’s Poetry with an RNN
source link: https://towardsdatascience.com/i-forged-emily-dickinsons-poetry-with-an-rnn-8a160ff98cf4?gi=88fe17ba7b8e
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
DATA SCIENCE | MACHINE LEARNING
I Forged Emily Dickinson’s Poetry with an RNN
The end result is the fourth worst poetry in the universe!
I utilized a Recurrent Neural Network trained on the collective works of Emily Dickinson to generate new poetry. It’s not quite as bad as Vogon poetry , but it’s not quite as good as the real deal either.
Profound.
In order to make this happen, I repurposed a demonstration available here on Google Colaboratory and added a few tweaks of my own.
The interesting thing to note is that the network predicts individual characters (including punctuation and return characters) rather than words. The model wasn’t trained on the concept of words, sentences, paragraphs, etc. but appears to have picked up on it.
After training the model on a massive list of Emily Dickinson’s poems, I asked it to predict the next few characters based on the input of \n
(a return character). The example poems below are what the model considered to be the most probable characters in the most probable order.
I used The Complete Project Gutenberg’s Poems to fuel the model’s training data. I fed the model a large single file, but a better approach would be to break each poem out separately before training.
Sample input poem
DESIRE. Who never wanted, — maddest joy Remains to him unknown: The banquet of abstemiousness Surpasses that of wine. Within its hope, though yet ungrasped Desire's perfect goal, No nearer, lest reality Should disenthrall thy soul.
Highlights from the generated poems
Untitled (first attempt)
Smale got wot' lost the blood.Sweec that from though moundered And God, and-beath just are Concomate I lest you, How Itemity.Who lust it glow is tere.The ridet his wait, In privilener through till.Whose badnity what it too! That fluen the seal that? "Revice the atte!I failed of ancont, aganor! Winds thou all take uthingful Of inlit bolnow, — But shall yet in ear, To his these mistrancelf near, In compentecant my little mound Which landly guight be;I the
OH
OHPungred so smides and hold! I doon st is can to chair, abseab, Cancelt to perches of the ais, And you shall not have to take And ofter donther hell On thou the slope would be;If I should disappoint the eyes That hunted take thee? Then dinnar' revel, Of the is lone becad.The grass die wou nettled monnetsmy At Lavid for your theen Berest the heaven haughty. It was not night that way! Sovered solemn when the East With such a pitely children on my father's will.
not aftaing!
not aftaing!Each neighbor zoulled hours, Araugh of surprise, One little host in blaze below That mast and pranor of wine.An oper for meray'mand And anl yet to-day, — Could kingdows hannot a charge To hel she is failed syefest Upon a thought my dairy.Why need insprites the strite; 'T was with I ever canchead," We usselves in her going;Of, fas it Just as that deathous When burness to rest.The say, I shall despaired thread, — A hocome to reat.Caultions
THE GAI HE MAL
THE GAI HE MAL.The old brighatedices chass Carved ther away Serappicabed to be a field, And yet that ore the decture sea, Some natire of lately row, The plead is brigrion Then the hurred strings the one Than head I sailod that ang I South through the streets came a fut Bereath the wing was so nore, As if the room from through poats!
Key things to notice:
- The model appropriately places punctuation at the end of lines.
- The model is adding return characters and indentations to match Emily Dickinson’s style.
- The model capitalizes the first letter on each line.
- The model capitalizes the word “God”.
- The model uses dashes and semicolons heavily.
These are all consequences of Emily Dickinson’s writing style as well as the format of the text file that I provided. There’s a related note from the transcriber:
“As is well documented, Emily Dickinson’s poems were edited in these early editions by her friends, better to fit the conventions of the times. In particular, her dashes, often small enough to appear as dots, became commas and semi-colons.”
Recommend
-
5
Dickinson is back against all odds (odds don’t include viewer numbers), bringing another season of anachronistic anarchy to Apple TV+. Can showrunner Alena Smith keep this bauble from shattering long enough to get to the
-
1
Dickinson rocks the party this week on Apple TV+ as Sue hosts a salon and Emily tries to boost her confidence long enough to be proud of herself in public. The show’s tightrope walk of purposeful frivolity keeps butting up aga...
-
6
September 8, 2021
-
2
Humanist poet Walt Whitman (played by Billy Eichner) witnesses the Civil War's toll.Photo: Apple TV+Emily wonders about her place in the world during the Civil War, and the poet gets a little help from some colleagues — while the Dic...
-
0
What AI Thinks An Emily Dickinson Poem Looks LikeI used a GAN to illustrate “Because I could not stop for Death”
-
11
Gmail accepts forged YouTube emailsGmail accepts forged YouTube emailsThis morning I woke up to an official-looking email from YouTube in my inbox, addressed to an address that isn't mine.
-
4
Art World After More Than 50 Years, Michael Heizer Is Finally Ready to Unveil ‘City,’ His Life’s Work...
-
5
Hello, our name isThey forged enduring friendships from massive, same-name group chatsA 2500-member "Council of Bens," a Web 1.0 hangout for people named "Tahnee," and other exclusive online spaces for p...
-
1
2022-09-21 12:27 链游工作室 Vulcan Forged 完成 800 万美元 A 轮融资,SkyBridge Capital 领投 14.3万 据 PRNewsWire 9 月 21 日消息,区块链游戏工作室、dApp 孵化器和跨链 NFT 市场 Vulcan...
-
2
F.I.S.T.: Forged In Shadow Torch is free to claim on the Epic Games Store today...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK