Skip to content

It applies the n-gram model to a dataset of txt files. It was tested to generate pseudo-Beatles lyrics.

Notifications You must be signed in to change notification settings

adebiasi/lyrics-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

lyrics-generator

How to run the lyrics-generator

Run:

py ./LyricsImporter.py

The main is:

if __name__ == '__main__':

    lyrics_importer = LyricsImporter()
    lyrics_importer.create_markov_chain_dict_from_folder('./beatles_lyrics')
    lyrics_importer.create_lyrics()

How it works

It applies the n-gram model to a dataset of txt files.

Some generated lyrics

Generated lyrics taking as input the entire production of Beatles songs (retrieved from https://github.com/tylerlewiscook/beatles-lyrics).

Here's one generated lyric:

But they run, yeah-heh yeah yeah
Look what you're gonna lose that went to me, hey hey bop shoo-wop
Better, 'cause I'm kissing you
Burns my blue suede shoes
All together now
Quiet!
Baby, shake it too much, darling
It's driving me a yellow submarine

Here's another one:

Any old enough to heaven
No, 'round
All you
All together now
All together, I sat on, don't sound
Oh, honey, and boy been alone
Love you
Yeah

About

It applies the n-gram model to a dataset of txt files. It was tested to generate pseudo-Beatles lyrics.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages