robbiebarrat / rapping-neural-network

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

Rhyme with last 3 characters #25

Open ulizellbeck opened 5 years ago

ulizellbeck commented 5 years ago

Hi, I wanted to use the rhyme for German Lyrics. Therefore it would make sense to use the last 3 characters of the last word for rhyming. What do I need to change? I changed two functions, rhymeindex: rhymeslistends.append(i[-3:]) rhymescheme = word[-3:] and rhyme: rhymeslistends.append(i[-3:]) rhymescheme = word[-3:] When I train the model the file .rhymes has a list of 3 characters. When I run the script for generating the rap it is just empty. The function score returns nan as desired_syllables and desired_rhyme are nan. Could you give me an advice what to change as well? Thanks!