Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 818 Bytes

README.md

File metadata and controls

67 lines (48 loc) · 818 Bytes

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))