This commit is contained in:
Andreas Neue 2019-08-01 15:16:16 +02:00
parent 2c4dc46c53
commit 45ba50b132
1 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,8 @@ import (
"git.dnix.de/an/xlog" "git.dnix.de/an/xlog"
) )
var *markovPrefixLen = 3 var markovPrefixLen *int
var ( var (
//markovPrefixLen = flag.Int("markov_prefix_len", 3, "markov: prefix len") //markovPrefixLen = flag.Int("markov_prefix_len", 3, "markov: prefix len")
markovAnswerLen = flag.Int("markov_answer_len", 10, "markov: answer len") markovAnswerLen = flag.Int("markov_answer_len", 10, "markov: answer len")
@ -37,6 +38,7 @@ var markovChain *MarkovChain
func init() { func init() {
MsgFuncs["markov"] = markovHandleMessage MsgFuncs["markov"] = markovHandleMessage
RunFuncs["markov"] = markovRun RunFuncs["markov"] = markovRun
*markovPrefixLen = 3
} }
func markovHandleMessage(m *Message) { func markovHandleMessage(m *Message) {