Skip to content

Instantly share code, notes, and snippets.

@mbilokonsky
Created January 18, 2016 08:46
Show Gist options
  • Save mbilokonsky/28bbc001b0962a20ade1 to your computer and use it in GitHub Desktop.
Save mbilokonsky/28bbc001b0962a20ade1 to your computer and use it in GitHub Desktop.
I seeded a markov chain generator with lyrics I assembled from various places of the following artists:
- David Bowie
- Leonard Cohen
- Nick Cave
- Nine Inch Nails
- Nirvana
- Tom Waits
- Britney Spears
and, using a markov chain library I found on NPM (thanks, @substack), fed David Bowie's "Blackstar"
in line-by-line to generate responses per line. This needs work, but I'm super happy with the tone and
overall effect of this first pass.
(when I built the corpus I didn't have this response idea in mind - was just trying to build a corpus that would
be fun and interesting. It seems weird to include Bowie in a response to Bowie, but also maybe appropriate? It takes a
pretty long time to seed the markov chain generator from 47k lines of lyrics, so I'm slow to pivot on this, but I will.)
(blackstar lyrics here: http://genius.com/David-bowie-blackstar-lyrics)
(blackstar video - if you haven't seen this, it's pretty incredible: https://www.youtube.com/watch?v=kszLwBaC4Sw)
------
up I woke morning when Is she in the
until you build
to fade starts, starts it all
percival? to sir you related David are
to see a role for him and me, level I´m up on the
Calvary hill called on a my word offer you Lord I kneel and
her shoulder laid on the hand I will icecream in be there at the
Open and closed within Your eyes
peace When here path of was love in the
known Sometimes the have never world is sounds you full of colours, smells,
Everybody's coming round to Chelsea Hotel, my place in the
your eyes
lie swindled from them on the throttle and church I'm standin' on the
drum you're always On your gonna be a meter
of noone in need be one, 'Ah will
Freak out town. in a real straight
hand in your mergin here I'm a
of fools the eyes spit in She could crying but She was Running like an angel,
me you call, times did Tell me How many
and I'll river scatter them into the
rush I'm a
oneman band I'm a
gonna crack I'm not
tomorrow dreams 'till borrow somebody's She's often inclined to
of wheel the kind I'm not
church and the any sailor, can ask and you laughing Gnome I'm a
The world worry in Not a
drawn Face is And your
see trying to I'm not
one I'm the
the stage, He jumps up on
I see
tree my christmas me underneath just for I want
I am man unarmed!" the pusher i'm a
Why you tell your boys you'll blind be back on the
hip And its on your gonna be a meter
He sat of cards there received new deck the immaculate and a fix. And a priest since he was himself
on taking you I'm a
by pass you I can't
Cry want to But I
Lucky" girl named About a I think fool, but Intoxicate me I'm a
When the Time was running wild
with shame that rhymes another word "Here is of guyaVoice dreaming kind I'm a
mean motherhubbard I'm a
Hold me, strings that the only I know I'm not
leading man After all, I'm a
red barn in the
Ah ah ah, ah
heart You're the my broken fan that bottom of won't work at the
air. smooth music on the
Ah ah
baby, In your You've got it all
Zane, Zane, ah Zane ah ah ah ah ah ah ah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment