中文文档simhash值计算
Go C++ C
Latest commit 4c933c1 Apr 2, 2016 @yanyiwu Update README.md
Permalink
Failed to load latest commit information.
deps upgrade [simhash] to v0.10.1 Mar 22, 2016
dict
example go test Oct 18, 2015
.gitignore go test Oct 18, 2015
.travis.yml
ChangeLog.md upgrade [simhash] to v0.10.1 Mar 22, 2016
README.md
README_EN.md
simhash.cc
simhash.go
simhash.h init simhash Oct 18, 2015
simhash_test.go

README.md

GoSimhash: Simhash Lib Powered by Golang English

Build Status Author GoDoc Coverage Status License

logo

简介

GoSimhash 是 中文 simhash 去重算法库,Golang版本。

用法

go get github.com/yanyiwu/gosimhash

示例代码请见 example/demo.go

cd example
go build

./example -help

# Usage of ./example:
#     -sentence="我来到北京清华大学":
#     -top_n=5:

./example

# 我来到北京清华大学 simhash: feb6372a8750eb1d

./example -sentence="南京市长江大桥" -top_n=5

# 南京市长江大桥 simhash: b2c6a622481d8eb2

之所以需要先 cd 到 example 目录下,是因为 demo.go 里面有写死的字典相对路径。

客服

  • Email: i@yanyiwu.com
  • QQ: 64162451
  • WeChat: image

Bitdeli Badge