Markov: remove inaccurate debug logging

This commit is contained in:
Brian S. Stephan 2012-07-29 15:41:36 -05:00
parent 0386603d93
commit ad1de23a7c
1 changed files with 0 additions and 3 deletions

View File

@ -443,14 +443,11 @@ class Markov(Module):
# otherwise, pick a random result
if len(gen_words) < min_size + 2 and len(filter(lambda a: a != self.stop, key_hits)) > 0:
found_word = random.choice(filter(lambda a: a != self.stop, key_hits))
self.log.debug("added '{0:s}' to gen_words".format(found_word))
return found_word
elif len(key_hits) <= 0:
self.log.debug("no hits found, appending stop")
return self.stop
else:
found_word = random.choice(key_hits)
self.log.debug("added '{0:s}' to gen_words".format(found_word))
return found_word
def _retrieve_chains_for_key(self, k1, k2, context_id):