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
Getting rhyme scheme.
67%|███████████████████████████████████████████████████████▎ | 8/12 [00:04<00:02, 1.64it/s]
Traceback (most recent call last):
File "rhyme.py", line 244, in
poem.get_rhyme_scheme_text()
File "rhyme.py", line 215, in get_rhyme_scheme_text
self.rhyme_scheme = [stanza.scheme_to_text(stanza_num=i) for i, stanza in enumerate(self.stanzas)]
File "rhyme.py", line 215, in
self.rhyme_scheme = [stanza.scheme_to_text(stanza_num=i) for i, stanza in enumerate(self.stanzas)]
File "rhyme.py", line 172, in scheme_to_text
rhyme_blocks = self.get_rhyming_blocks()
File "rhyme.py", line 103, in get_rhyming_blocks
self.get_rhyme_scheme()
File "rhyme.py", line 83, in get_rhyme_scheme
if self.does_rhyme(preceding_word, word):
File "rhyme.py", line 57, in does_rhyme
pair = self.prepare_pair(word1, word2)
File "rhyme.py", line 40, in prepare_pair
int_seq = self.get_char_to_int(seq)
File "rhyme.py", line 30, in get_char_to_int
int_list = [corpus.char_to_int[char] for char in word]
File "rhyme.py", line 30, in
int_list = [corpus.char_to_int[char] for char in word]
KeyError: 'â'
The text was updated successfully, but these errors were encountered:
I'm getting the following error.
Getting rhyme scheme.
67%|███████████████████████████████████████████████████████▎ | 8/12 [00:04<00:02, 1.64it/s]
Traceback (most recent call last):
File "rhyme.py", line 244, in
poem.get_rhyme_scheme_text()
File "rhyme.py", line 215, in get_rhyme_scheme_text
self.rhyme_scheme = [stanza.scheme_to_text(stanza_num=i) for i, stanza in enumerate(self.stanzas)]
File "rhyme.py", line 215, in
self.rhyme_scheme = [stanza.scheme_to_text(stanza_num=i) for i, stanza in enumerate(self.stanzas)]
File "rhyme.py", line 172, in scheme_to_text
rhyme_blocks = self.get_rhyming_blocks()
File "rhyme.py", line 103, in get_rhyming_blocks
self.get_rhyme_scheme()
File "rhyme.py", line 83, in get_rhyme_scheme
if self.does_rhyme(preceding_word, word):
File "rhyme.py", line 57, in does_rhyme
pair = self.prepare_pair(word1, word2)
File "rhyme.py", line 40, in prepare_pair
int_seq = self.get_char_to_int(seq)
File "rhyme.py", line 30, in get_char_to_int
int_list = [corpus.char_to_int[char] for char in word]
File "rhyme.py", line 30, in
int_list = [corpus.char_to_int[char] for char in word]
KeyError: 'â'
The text was updated successfully, but these errors were encountered: