Markov: off by one while counting up to min_size
This commit is contained in:
parent
7b2e3fa9aa
commit
9ec74d0e35
@ -409,7 +409,7 @@ class Markov(Module):
|
||||
self.log.debug("gen_words: {0:s}".format(" ".join(gen_words)))
|
||||
|
||||
# tack a new chain onto the list and resume if we're too short
|
||||
if gen_words[-1] == self.stop and len(gen_words) < min_size + 2:
|
||||
if gen_words[-1] == self.stop and len(gen_words) < min_size + 3:
|
||||
self.log.debug("starting a new chain on end of old one")
|
||||
|
||||
# chop off the end text, if it was the keyword indicating an end of chain
|
||||
|
Loading…
Reference in New Issue
Block a user