From ea01cd063eb798e0e84ae6d9a46e3d989b1e80c3 Mon Sep 17 00:00:00 2001 From: an Date: Sun, 25 Aug 2019 14:33:45 +0200 Subject: [PATCH] markov.go: more debugging --- modules/markov.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/markov.go b/modules/markov.go index 64f4f9a..02e5532 100644 --- a/modules/markov.go +++ b/modules/markov.go @@ -174,6 +174,7 @@ func (c *MarkovChain) Write(in string) (int, error) { c.MarkovChain[key] = append(c.MarkovChain[key], s) c.mu.Unlock() xlog.Debug("Chain len: %d, learned [%s] [%s]", len(c.MarkovChain), key, s) + fmt.Println(c.MarkovChain[key]) p.Shift(s) } return len(in), nil