8000 GitHub - suryanshu-09/simhash: Golang Implementation of Simhash Algorithm
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Golang Implementation of Simhash Algorithm

License

Notifications You must be signed in to change notification settings

suryanshu-09/simhash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Implementation of Simhash Algorithm

A golang translation of 1e0ng/simhash written in python

Written for we-go-wayback: a golang rewrite of wayback-discover-diff.

Installation

go get github.com/suryanshu-09/Simhash

Usage

Find a Simhash

package main

import (
  "fmt"

  s "github.com/suryanshu-09/simhash"
)

func main(){
  features := []string{"abc", "def"}
  simhash := s.NewSimhash(features)

  fmt.Println(simhash)

  simhash2 := s.NewSimhash(features, s.WithF(128))

  distance := simhash.Distance(simhash2)

  fmt.Println(distance)

}

Docs available @ pkg.go.dev/github.com/suryanshu-09/simhash

This is a Go port of the original 1e0ng/simhash by 1e0ng, originally written in Python and licensed under the MIT License.

About

Golang Implementation of Simhash Alg 5325 orithm

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0