戈马科夫 去实现文本数据的马尔可夫链。 您可以和 找到有关马尔可夫链的更多信息 用法 package main import ( "github.com/mb-14/gomarkov" "fmt" "strings" "io/ioutil" "encoding/json" ) func main () { //Create a chain of order 2 chain := gomarkov . NewChain ( 2 ) //Feed in training data chain . Add ( strings . Split ( "I want a cheese