Skip to content

aryahadii/ngram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

n-gram

Build Status
Go implementation of n-gram

Installation

$ go get -u github.com/aryahadii/ngram

Usage

res, err := ngram.Get("ABCD", 2)
// res == [ "AB", "BC", "CD" ]

res, err = ngram.GetFrequency("ABBBB", 3)
// res == { "ABB": 1, "BBB": 2 }

License

This project is MIT licensed.

Releases

No releases published

Packages

No packages published

Languages