go-mecab: simple low-level bindings for mecab library
Go
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
dictionaryinfo.go
lattice.go
mecab.go
mecab_test.go
model.go
node.go
path.go
tagger.go

README.md

go-mecab: low-level mecab bindings for Go

go-mecab provides simple low-level bindings for mecab, japanese morphological analyzer.

Requirement

  • mecab-v0.996
  • mecab-ipa-dictionary

Install

$ go get github.com/shinpei/go-mecab

Build

Modify library path in src/github.com/shinpei/mecab/mecab.go

$ go bulid github.com/shinpei/go-mecab
$ go install github.com/shinpei/go-mecab
$ go build # to build exmaple
$ ./go-mecab # to execute example

Example

 import "github.com/shinpei/go-mecab"
 import "fmt"

 tagger := mecab.Create();
 str := "こんにちは、世界";
 ret := tagger.Parse(str);
 fmt.Println(ret);

Lisences, contact info, contribute

It's under ASL2.0. If you find bug or improvement request, please contact me through twitter, @shinpeintk. And always welcoming heartful pull request.

cheers, 🍶 🗿