summerstay / true_poetry

Poetry generator by gpt-2 with meter and rhyme constraints.
53 stars 9 forks source link

Rhyme dictionary is not defined #5

Open micrem73 opened 1 year ago

micrem73 commented 1 year ago

Hi, thanks for this great project. Do you think that the idea of applying a different language (italian) GPT is doable? For what I can understand at a first glance, I'd need to swap pronounce.txt with a italian pronounciation file at first. And then rebuild ryme, stress and syllable dicts. Any other prerequisite?

Anyway, trying to rebuild them with the original pronounce.txt running /form_making_data_files scripts, i get these errors:

nerd2:for_making_data_files mic$ python3 make_rhyming_tokens.py Traceback (most recent call last): File "/Users/mic/Documents/Phd UniBZ Sineglossa/git/true_poetry/for_making_data_files/make_rhyming_tokens.py", line 13, in for word in rhyme_dictionary: NameError: name 'rhyme_dictionary' is not defined

and

nerd2:for_making_data_files mic$ python3 make_token_dict.py Traceback (most recent call last): File "/Users/mic/Documents/Phd UniBZ Sineglossa/git/true_poetry/for_making_data_files/make_token_dict.py", line 23, in for term in stress_dictionary: NameError: name 'stress_dictionary' is not defined

Any idea? regards