robbiebarrat / rapping-neural-network

Rap song writing recurrent neural network trained on Kanye West's entire discography
1.04k stars 167 forks source link

Clean up and safety code. #15

Closed testfile2 closed 6 years ago

testfile2 commented 6 years ago

Things done: Removed unused import statements. Added 2 spaces for inline comments. 2 new lines after function's. made the if's more python with 'not' instead of !=. Added check to make sure word on line 42 is not empty. (The lyric "You want me to fix up lyrics while the President gets his dick sucked?" from Eminem's - Who Knew causes this error) Removed unused parameter in generate_lyrics Removed unused variable in build_dataset Removed multiple empty lines in vectors_into_song, line 235. Added safety code for lyric file being to small. Added python style entry point.