Awesome
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
Build-tools
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))