Skip to content

char-by-char generation of rap lyrics using LSTM and CMU pronunciation dictionary

License

Notifications You must be signed in to change notification settings

raghavgupta0296/eminemWithin

Repository files navigation

Rap-Generation #eminemWithin

char-by-char generation of rap lyrics using LSTM and CMU pronunciation dictionary. Trained on Eminem and Dr. Dre lyrics.

Data Collection

scraped lyrics all songs of eminem from AZlyrics using Beautiful Soup. since I required more data, scraped lyrics of Dr. Dre too as he is the inspiration of eminem and their rapping style is similar.

Data Manipulation

removed special characters to make the model just learn characters and their sequences. kept '\n' as it will learn when to end a single line rap.
reversed characters of each line in data to make the model learn reverse english. this way the last word (after predicting the word char-by-char), the rhyming word can be selected and the rest of the sentence can be formed of the basis of that word.

Model

2 LSTM layers of 512 nodes each followed by a fully connected layer to predict a character.
Categorical cross entropy loss, Adam Optimizer

Output

Some extracted lyrics generated by the model:

living beels ringing
birds singing
it's like the mattress and sleaners and aophones clinging
so please don't make me but i don't need it again
so i just give me one of the tines at home in a ten
but i got it harred feelings like my name is just
and try to tell me that i don't know what hit it dust
and you aingt got looking at me cause it's not to readjust
it's like my name is where the things that would not have it
but i don't want to do 'cause me and that shits
and i just look at the way that i thought i was calling on that fit
and it's time for me to come at me here i quit
cause i can't make it just to get
it was supposed to be just like me i can't forget
and you aingt got looking at me cause i stopped to the cigarette
and i don't know what you got to kiss my ass
and i don't know what it was right before you get the surpass
me for me to take it while i bust it 'cause i want it that's what i wanna talk about the shit the beat me in the sea
don't make me with it let me stilk about it like a vip
and i'm not looking at me 
but you won't let it pee 
don't you make me but you're just like me i used to be just like me you love me that i did not out me out thase friemds are just like me 
and i'm not looking at me cause once again im the d - r - e 
and you can't take me
it's taking me is looking at me cause it's the bee 
there's no guarantee 
it's like me and jay - z
don't make me it's to degree 
don't take me 
but i got it here with me ni
and don't do it ainit shit shit cause i guarantee
but i was just like that come with me 
i've been waiting on me and it's a slaomed at me
my name is where the shit ho plea
and it's time for me to blow we
and it's time for me to come and just leave me to the three
but i aingt trying to get it but i need each other jolie
and make me on the streets in me but it's just another dee
you know about me is looking at me with me in your brother re
but i just cones to be just like me and that's a smother yea
cause you love me so ouch you'd rather ga
don't leave me you don't let your becole of you gather nah
but it was supposed to tell me what you say yeah ha
mamous just like you got popped out my gras
to make this home that he looked at me in these changes we rely das
but the sure that i was in that glass
and i'm leaning on these bitches right here cones
before you put me in the fucking out your tones
but that's what you know about me here bones
but my dick is out and put me in the stones
and out your bacies in each other moans
i've been to jones
and you didn't have to sease me
and it's time for me to come out the tennessee
your mothers eyes just like the pines of a lie phone number dial
it's like it's all the time for the denial
i'll make sure that hit me out no more
but i love it you can't take it to the bore
it's like my name is where the ones that means no more
cause i can't take it and it's time for me to just give me a wore
but you're gonna fuck around and get dropped and put it on swore
but before you get it before
you have it to me 'cause you love me when i got war
i shouldn't have to tell me what yot did he wrapped me in the prayer
and just take it home that he stuck me in the tear
but i shouldn't have to tell me where
my name is where the come in wit
to get up in that shit fucked up out of my shits
and so call me transmit
but it's time for me to get kit
and just know that i'm supposed to have it
it's like the busiless mureer knit
but it's time for me to get lit
and when me and just give me that shit
but i won't sit
but i shouldn't have to tell me that i got to make it before i just admit
cause i got it's not to get it hitt
but it's just each one of the tile that i bet
but it's time for me to get down to elles and regret
but now here we met
'cause you're went where for me to wet
cause here i come to the quintet
me to leave me the more that i git in the hut
cause i got no one tond me you give me that i didn't do it let's come rut
but i shouldn't have to tell me that i got a strut
cause it's just it but
i can't take these tines on these bitches on the bitches wit
but it's just it
but i can't take it while this time for this shits
cause i got the same telking ast kit
'cause all i wanna do is just to make it hitt
it's like he's going back at it
that's what he tried to leave me beast
you are he's going back at it that's what i'm deceased

About

char-by-char generation of rap lyrics using LSTM and CMU pronunciation dictionary

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages