Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rhyme with last 3 characters #25

Open
ulizellbeck opened this issue Nov 25, 2018 · 0 comments
Open

Rhyme with last 3 characters #25

ulizellbeck opened this issue Nov 25, 2018 · 0 comments

Comments

@ulizellbeck
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant