Ngram for Golang 

Branch |
Status |
Coverage |
master |
 |
 |
an n-gram is a contiguous sequence of n items from a given sequence of text or speech.
import (
"fmt"
"github.com/euskadi31/go-ngram"
)
func main() {
tokens := ngram.New("Hello", ngram.Bigram).Tokenize()
fmt.Printf("%v\n", tokens) // ["He", "el", "ll", "lo"]
}
License
go-ngram is licensed under the MIT license.