Skip to content

Instantly share code, notes, and snippets.

@aparrish
Last active December 26, 2018 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aparrish/d5b254a466c2529c392cfaf3f12800b2 to your computer and use it in GitHub Desktop.
Save aparrish/d5b254a466c2529c392cfaf3f12800b2 to your computer and use it in GitHub Desktop.
rewriting "The Road Not Taken" using a recurrent neural network conditioned on averaged word vectors of ~50k lines of poetry. (original left, rewrite on right)
01 Two roads diverged in a yellow wood, The sides sea through the sea a pard
strong the surparded stare,
02 And sorry I could not travel both And many thing all who was not the sad
will say
03 And be one traveler, long I stood I see when I was and long weel,
04 And looked down one as far as I could As I see as the sea and seemed as the
maid
05 To where it bent in the undergrowth; Where the cloud in the sward to the
sweet;
06
07 Then took the other, as just as fair, As wealth as the sea, she said the sea,
and sails
08 And having perhaps the better claim, The world wearing the children and the
sand their beautiful bride,
09 Because it was grassy and wanted wear; Where they say and side was brown;
10 Though as for that the passing there That the sea that fall that the man for
the sea
11 Had worn them really about the same, The silent wave the soldier waves the
scare,
12
13 And both that morning equally lay And she wake all that one dear saints
did one
14 In leaves no step had trodden black. The mood blame in pride starts in
shadow learned in the gray.
15 Oh, I kept the first for another day! I see the share of the bright, I am the
salm the lee.
16 Yet knowing how way leads on to way, To see health who are sign their sunset
wear,
17 I doubted if I should ever come back. I'll I say I see where I cause I say.
18
19 I shall be telling this with a sigh With the ship with I shall sea with a
shadow with a shade with this
20 Somewhere ages and ages hence: And many all their saints and their
faith:
21 Two roads diverged in a wood, and I— And stare the soldier thoughts that the
salm, and took the shade se
22 I took the one less travelled by, The stared was sea all the store,
23 And that has made all the difference. And that the sad warm what was blames
that the world.
01 Two roads diverged in a yellow wood, The steed that the sweet sadly starly,
02 And sorry I could not travel both And who all who was sail
03 And be one traveler, long I stood I was stayed who was said,
04 And looked down one as far as I could As as as so seemed as I see as as down
05 To where it bent in the undergrowth; In the lord in the shade;
06
07 Then took the other, as just as fair, As the sad as the beauty said,
08 And having perhaps the better claim, And the resigh the face and fair,
09 Because it was grassy and wanted wear; And they there was said their silent;
10 Though as for that the passing there Sails the sea for the sad that the
seems for the like as the change
11 Had worn them really about the same, The still the world the world were made
the song,
12
13 And both that morning equally lay And that one belied all mortal bead
14 In leaves no step had trodden black. In every store hair common a line.
15 Oh, I kept the first for another day! I said the sad of the day, I saying the
longer!
16 Yet knowing how way leads on to way, While their sign on their grave, where
come
17 I doubted if I should ever come back. I'll I never I cause I say.
18
19 I shall be telling this with a sigh I though with her I shall with her with
a change of her shake with
20 Somewhere ages and ages hence: And many all believe them comes:
21 Two roads diverged in a wood, and I— Throated one stare and stares the
speed,
22 I took the one less travelled by, I was seemed the song on the silent
saint,
23 And that has made all the difference. And that the warmer which the parts and
the that were been.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment