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(ngram.Bigram).Tokenize("Hello")
fmt.Printf("%v\n", tokens) // ["He", "el", "ll", "lo"]
}
go-ngram is licensed under the MIT license.