GoJieba English
GoJieba是"结巴"中文分词的Golang语言版本。
- 支持多种分词方式,包括:
- 最大概率模式
- HMM新词发现模式
- 搜索引擎模式
- 全模式
- 核心算法底层由C++实现,性能高效。
- 无缝集成到 bleve 到进行搜索引擎的中文分词功能。
go get github.com/yanyiwu/gojieba
See Details in example/demo.go
go run example/demo.go
输出结果:
DemoJieba
全模式: 我/来到/北京/清华/清华大学/华大/大学
精确模式: 我/来到/北京/清华大学
新词识别: 他/来到/了/网易/杭研/大厦
搜索引擎模式: 小明/硕士/毕业/于/**/**科学院/科学/科学院/学院/计算所/,/后/在/日本/日本京都大学/京都/京都大学/大学/深造
词性标注: 长春市/ns,长春/ns,药店/n
DemoExtract
我是拖拉机学院手扶拖拉机专业的。不用多久,我就会升职加薪,当上CEO,走上人生巅峰。
关键词抽取: CEO/升职/加薪/手扶拖拉机/巅峰
go run example/bleve/bleve_gojieba_demo.go
See Details in example/bleve/bleve_gojieba_demo.go
- Email:
[email protected]
- QQ: 64162451
- WeChat: