中文文档simhash值计算
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
deps
dict
example
.gitignore
.travis.yml
ChangeLog.md
README.md
README_EN.md
simhash.cc
simhash.go
simhash.h
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