forked from an/flokati
markov.go: more debugging
This commit is contained in:
parent
84e0f661c8
commit
ea01cd063e
|
@ -174,6 +174,7 @@ func (c *MarkovChain) Write(in string) (int, error) {
|
||||||
c.MarkovChain[key] = append(c.MarkovChain[key], s)
|
c.MarkovChain[key] = append(c.MarkovChain[key], s)
|
||||||
c.mu.Unlock()
|
c.mu.Unlock()
|
||||||
xlog.Debug("Chain len: %d, learned [%s] [%s]", len(c.MarkovChain), key, s)
|
xlog.Debug("Chain len: %d, learned [%s] [%s]", len(c.MarkovChain), key, s)
|
||||||
|
fmt.Println(c.MarkovChain[key])
|
||||||
p.Shift(s)
|
p.Shift(s)
|
||||||
}
|
}
|
||||||
return len(in), nil
|
return len(in), nil
|
||||||
|
|
Loading…
Reference in New Issue