Markov: remove inaccurate debug logging
This commit is contained in:
parent
0386603d93
commit
ad1de23a7c
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue