Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/euskadi31/go-ngram
an n-gram is a contiguous sequence of n items from a given sequence of text or speech.
https://github.com/euskadi31/go-ngram
go golang golang-library machine-learning ngram ngram-analysis ngrams nlp
Last synced: 30 days ago
JSON representation
an n-gram is a contiguous sequence of n items from a given sequence of text or speech.
- Host: GitHub
- URL: https://github.com/euskadi31/go-ngram
- Owner: euskadi31
- License: mit
- Created: 2018-03-15T20:55:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-05T12:39:22.000Z (3 months ago)
- Last Synced: 2024-08-05T14:32:09.939Z (3 months ago)
- Topics: go, golang, golang-library, machine-learning, ngram, ngram-analysis, ngrams, nlp
- Language: Go
- Homepage:
- Size: 50.8 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-golang-repositories - go-ngram - gram is a contiguous sequence of n items from a given sequence of text or speech. (Repositories)
README
# Ngram for Golang ![Last release](https://img.shields.io/github/release/euskadi31/go-ngram.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/euskadi31/go-ngram)](https://goreportcard.com/report/github.com/euskadi31/go-ngram)
| Branch | Status | Coverage |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| master | [![Go](https://github.com/euskadi31/go-ngram/actions/workflows/go.yml/badge.svg)](https://github.com/euskadi31/go-ngram/actions/workflows/go.yml) | [![Coveralls](https://img.shields.io/coveralls/euskadi31/go-ngram/master.svg)](https://coveralls.io/github/euskadi31/go-ngram?branch=master) |> an **_n_-gram** is a contiguous sequence of _n_ items from a given sequence of text or speech.
```go
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"]
}```
## License
go-ngram is licensed under [the MIT license](LICENSE.md).