markov.go: more debugging

This commit is contained in:
an 2019-08-25 14:33:45 +02:00
parent 84e0f661c8
commit ea01cd063e
1 changed files with 1 additions and 0 deletions

View File

@ -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