• Stars
    star
    161
  • Rank 233,470 (Top 5 %)
  • Language
    Go
  • Created about 9 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

中文文档simhash值计算

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