Skip to content

crackcell/gonlpir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Sep 3, 2016
9fccb7e · Sep 3, 2016

History

27 Commits
Aug 6, 2015
Mar 10, 2015
Mar 10, 2015
Nov 7, 2015
Nov 5, 2015
Sep 5, 2015
Mar 10, 2015
Jul 7, 2015
Jul 20, 2015
Sep 3, 2016
Jul 6, 2015
Mar 10, 2015

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published