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.
- Host: GitHub
- URL: https://github.com/vcaesar/gse-bind
- Owner: vcaesar
- License: apache-2.0
- Created: 2019-03-18T18:46:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-04T17:41:58.000Z (over 4 years ago)
- Last Synced: 2025-03-24T08:15:44.503Z (about 1 year ago)
- Topics: binding, go, golang, gse, javascript, jieba, node, pyhton
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
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))
```