From 14fd5721c1eb603ff1e41c0750b54913d8e56539 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sun, 29 Jul 2012 15:44:43 -0500 Subject: [PATCH] Markov: trivial debugging fix --- modules/Markov.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Markov.py b/modules/Markov.py index b35e8f7..258d57c 100644 --- a/modules/Markov.py +++ b/modules/Markov.py @@ -412,7 +412,7 @@ class Markov(Module): if sentence_end[-1] not in eos_punctuation: random.shuffle(eos_punctuation) gen_words[-1] = sentence_end + eos_punctuation.pop() - self.log.debug("monkeyed with end of sentence, it's now: {0:s}".format(gen_words[:-1])) + self.log.debug("monkeyed with end of sentence, it's now: {0:s}".format(gen_words[-1])) new_chain_words = [] # new word 1