gosimhash

by yanyiwu

yanyiwu / gosimhash

中文文档simhash值计算

134 Stars 26 Forks Last release: Not found 17 Commits 2 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

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.