Markov: increase the default max length from 25 words to 100 words.

it's expected that, usually, the chain will have hit an end before this.
This commit is contained in:
Brian S. Stephan 2011-01-19 18:32:15 -06:00
parent c4ade3cbca
commit 176ca25c68
1 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,7 @@ class Markov(Module):
# cap the end of the chain
self.brain.setdefault((w1, w2), []).append(self.stop)
def _reply(self, size=25):
def _reply(self, size=100):
"""Generate a totally random string from the chains, of specified limit of words."""
# if the limit is too low, there's nothing to do
@ -189,7 +189,7 @@ class Markov(Module):
return ' '.join(gen_words)
def _reply_to_line(self, line, size=25):
def _reply_to_line(self, line, size=100):
"""Reply to a line, using some text in the line as a point in the chain."""
# if the limit is too low, there's nothing to do