Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hengfeiyang/simhash

a Golang implementation of Simhash Algorithm
https://github.com/hengfeiyang/simhash

simhash

Last synced: about 1 month ago
JSON representation

a Golang implementation of Simhash Algorithm

Awesome Lists containing this project

README

        

# simhash
a Golang implementation of Simhash Algorithm

# demo

```
package main

import (
"fmt"

"github.com/safeie/simhash"
)

func main() {
s1 := simhash.Simhash("this is a project for golang implementation of simhash algorithm")
s2 := simhash.Simhash("this is a project for java implementation of simhash algorithm")

fmt.Println("distance:", simhash.Distance(s1, s2))
fmt.Println("similars:", simhash.Similar(s1, s2))
}
```