Need help with gosimhash?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

yanyiwu
148 Stars 28 Forks 17 Commits 6 Opened issues

Description

中文文档simhash值计算

Services available

!
?

Need anything else?

Contributors list

# 18,338
C++
Go
Redis
s3
14 commits
# 11,943
autohot...
ahk
bitwise...
Nette
1 commit

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 里面有写死的字典相对路径。

客服

Bitdeli Badge

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.