ixen / gonlpir

Golang wapper for NLPIR/ICTCLAS2015.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoNLPIR

Build Status

Introduction

GoNLPIR is a Golang wrapper for the famous Chinese word segmenter NLPIR(former ICTCLAS ) with the following interface implemented:

  • ParagraphProcess
  • ParagraphProcessA
  • ImportUserDict

Install

Get code and install dependences

go get github.com/crackcell/gonlpir
make install_deps
go test -v

Example

package main

import (
    "fmt"
    "github.com/crackcell/gonlpir"
)

func main() {
    n, err := gonlpir.NewNLPIR("../", gonlpir.UTF8, "")
    if err != nil {
        panic(err)
    }
    fmt.Println(n.ParagraphProcess("我是**人", true))
    fmt.Println(n.ParagraphProcess("我是**人", false))
    n.Exit()
}

Documents

Misc

About

Golang wapper for NLPIR/ICTCLAS2015.

License:GNU General Public License v2.0


Languages

Language:Go 97.4%Language:Makefile 2.6%