An open API service indexing awesome lists of open source software.

https://github.com/vcaesar/gse-bind

Go efficient text segmentation ; Go 语言高性能分词, binding other language.
https://github.com/vcaesar/gse-bind

binding go golang gse javascript jieba node pyhton

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# gse-bind

Go efficient text segmentation, binding other language.

[简体中文](https://github.com/vcaesar/gse-bind/blob/master/README_zh.md)

## Install gse
```
npm install gse
```

## example

```js
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](http://github.com/vcaesar/gocs)
```
go get -v github.com/vcaesar/gocs
```

### Building

```
cd gse-bind
```

```
gocs -n gse
```

### Install npm modules

```
npm install
```

### python

```
pip install cffi
```

```python
import sys

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

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