You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So it didn't work at all on python 2 so i changed the code a little to make sure it runs on python 3 and after fixing some issues the train mode worked, but when i tried to generate lyrics i ran into a problem File "model3f.py", line 219, in calculate_score
score = 1.0 - (abs((float(desired_syllables) - float(syllables))) + abs((float(desired_rhyme) - float(rhyme)))) - penalty
TypeError: float() argument must be a string or a number, not 'NoneType'
i guess the issue is in rhyme function, it runs into an exception and returns None, not float needed and that causes the problem, but i dont know how to fix it.
Any suggestions? here are model files i use (t is for train and f is for generation mode)
I also changed artist name and all "rap" words to "lyrics" , i guess it doesen't affect anything neural network.zip
The text was updated successfully, but these errors were encountered:
So it didn't work at all on python 2 so i changed the code a little to make sure it runs on python 3 and after fixing some issues the train mode worked, but when i tried to generate lyrics i ran into a problem
File "model3f.py", line 219, in calculate_score
score = 1.0 - (abs((float(desired_syllables) - float(syllables))) + abs((float(desired_rhyme) - float(rhyme)))) - penalty
TypeError: float() argument must be a string or a number, not 'NoneType'
i guess the issue is in rhyme function, it runs into an exception and returns None, not float needed and that causes the problem, but i dont know how to fix it.
Any suggestions? here are model files i use (t is for train and f is for generation mode)
I also changed artist name and all "rap" words to "lyrics" , i guess it doesen't affect anything
neural network.zip
The text was updated successfully, but these errors were encountered: