https://github.com/hengfeiyang/simhash
a Golang implementation of Simhash Algorithm
https://github.com/hengfeiyang/simhash
simhash
Last synced: 11 months ago
JSON representation
a Golang implementation of Simhash Algorithm
- Host: GitHub
- URL: https://github.com/hengfeiyang/simhash
- Owner: hengfeiyang
- License: mit
- Created: 2018-08-02T12:09:10.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-02T12:25:37.000Z (almost 8 years ago)
- Last Synced: 2025-02-28T08:44:19.869Z (over 1 year ago)
- Topics: simhash
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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))
}
```