Skip to content

Go efficient text segmentation ; Go 语言高性能分词, binding other language.

License

Notifications You must be signed in to change notification settings

vcaesar/gse-bind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gse-bind

Go efficient text segmentation, binding other language.

简体中文

Install gse

npm install gse

example

var gse = require('gse');

gse.loadDict();
console.log(gse.cut("我在大雨刚停的夜晚", true));

Build from source code:

Install gse

go get -u github.com/go-ego/gse
git clone https://github.com/vcaesar/gse-bind
go get -v github.com/vcaesar/gocs

Building

cd gse-bind
gocs -n gse

Install npm modules

npm install

python

pip install cffi
import sys

sys.path.append("..")
import gse

# load
gse.loadDict()
print(gse.cut('我在大雨刚停的夜晚', True))

About

Go efficient text segmentation ; Go 语言高性能分词, binding other language.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published