Skip to content

yourchanges/cwsharp-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CWSharp-Go

Go中文分词库,支持中英文,混合词组,自定义字典。CWSharp的Golang版本.

安装&运行

go get github.com/zhengchun/cwsharp-go

go run test.go

说明

  • StandardTokenizer.go - 基于词典的分词类

  • BigramTokenizer.go - 二元分词类

  • StopwordTokenizer.go - 扩展类,提供过滤词的分词

  • WordUtil.go - 提供字典管理帮助类

使用帮助可以查看对应的测试用例。

About

Golang中文分词库

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages