Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/euskadi31/go-tokenizer

A Text Tokenizer library for Golang
https://github.com/euskadi31/go-tokenizer

go golang golang-library machine-learning nlp text tokenizer

Last synced: 23 days ago
JSON representation

A Text Tokenizer library for Golang

Awesome Lists containing this project

README

        

# Text Tokenizer for Golang ![Last release](https://img.shields.io/github/release/euskadi31/go-tokenizer.svg)

[![Go Report Card](https://goreportcard.com/badge/github.com/euskadi31/go-tokenizer)](https://goreportcard.com/report/github.com/euskadi31/go-tokenizer)

| Branch | Status | Coverage |
| ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| master | [![Go](https://github.com/euskadi31/go-tokenizer/actions/workflows/go.yml/badge.svg)](https://github.com/euskadi31/go-tokenizer/actions/workflows/go.yml) | [![Coveralls](https://img.shields.io/coveralls/euskadi31/go-tokenizer/master.svg)](https://coveralls.io/github/euskadi31/go-tokenizer?branch=master) |

```go
import (
"fmt"

"github.com/euskadi31/go-tokenizer"
)

func main() {
t := tokenizer.New()

tokens := t.Tokenize("I believe life is an intelligent thing: that things aren't random.")

fmt.Print(tokens) // []string{"I", "believe", "life", "is", "an", "intelligent", "thing", "that", "things", "aren't", "random"}
}

```

## License

go-tokenizer is licensed under [the MIT license](LICENSE.md).