paladini / pink-floyd-lyric-generator

A simple (and terrible) Pink Floyd lyric generator.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pink-floyd-lyric-generator

A simple and terrible Pink Floyd lyrics generator based on Markov chains (and written in Python).

The used lyrics (available under lyrics/ folder) were parsed from Vagalume.com.br through the vagalume-download-lyrics project. Note that the lyrics are not very clean, containing some dirty words/characters (I'll try to fix that soon). The lyrics are used for studying purposes only (about how to generate lyrics based on the Markov chains approach), no copyright infringement intended.

The current results are quite bad, but I'll try to improve this repository until the project can generate (and really generate) good lyrics (and of course, similar to Pink Floyd lyrics).

Dependencies

Usage

The program expects the following arguments:

python3 pink-floyd-lyric-generator.py <number_of_phrases_to_generate>

For example, if you want to generate 10 sentences:

python3 pink-floyd-lyric-generator.py 10

When I ran the script, I got the following output:

So ya
We don't need no education
But now he's resigned to his fate
All of this temptation, it turned my faith to lies
Corporal Clegg had a big pin, a little place of their lives
And starts to climb
Does anybody else in here tonight
Don't be afraid to care
Rise And Shine
Just the basic facts

If you want to reset the database, just run the following:

chmod +x clean_db.sh
./clean_db.sh

How it works?

This's my second experiment with lyrics generation using Markov chains, but I've read some texts and a lot of examples before creating it. In order to understand how can I generate lyrics, please check the following links:

And here you can check some projects on Github that helped me:

About

The pink-floyd-lyric-generator was created by Fernando Paladini on 01-22-2016, but it was heavily based on another open-source projects you can find at the web. If you have any issue, doubt, problem or suggestion, please feel free to create a new Issue or even contact me at fnpaladini at gmail dot com.

About

A simple (and terrible) Pink Floyd lyric generator.

License:MIT License


Languages

Language:Python 97.9%Language:Shell 2.1%