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
What exactly must be the format of the something? I tried putting a string of a word, putting a tuple with the word, putting a list with the word. Despite trying a lot of formats i keep getting this error
line 213, in make_sentence
words = prefix + self.chain.walk(init_state)
File "C:\Users\JGC\AppData\Local\Programs\Python\Python37\lib\site-packages\markovify\chain.py", line 137, in walk
return list(self.gen(init_state))
File "C:\Users\JGC\AppData\Local\Programs\Python\Python37\lib\site-packages\markovify\chain.py", line 126, in gen
next_word = self.move(state)
File "C:\Users\JGC\AppData\Local\Programs\Python\Python37\lib\site-packages\markovify\chain.py", line 112, in move
choices, weights = zip(*self.model[state].items())
KeyError: 'was'
I'm using markovify 0.8.0 on a python 3.7 environment.
The text was updated successfully, but these errors were encountered:
But i have noticed the error: only make_sentence has a parameter init_state, this parameter doesn't exists inside make_short_sentence, hence the error. So i guess i will need to override this method to introduce a new parameter.
What exactly must be the format of the something? I tried putting a string of a word, putting a tuple with the word, putting a list with the word. Despite trying a lot of formats i keep getting this error
I'm using markovify 0.8.0 on a python 3.7 environment.
The text was updated successfully, but these errors were encountered: