Registry / utility / mfonda-simhash

mfonda-simhash

JSON →
library0.0.0-20151007195837-79f94a1100d6gogounverified

Implements Charikar's simhash algorithm to generate a 64-bit fingerprint of a document, enabling similarity detection via Hamming distance.

go get github.com/mfonda/simhash
INSTALL
IMPORT
SIG · MFONDA-SIMHASH
M
mfonda-simhash
utilitygov0.0.0-20151007195837-79f94a1100d6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

simhash
github.com/mfonda/simhash

Compute simhash fingerprints and their Hamming distance

package main import ( "fmt" "github.com/mfonda/simhash" ) func main() { fp1 := simhash.Simhash(simhash.NewWordFeatureSet("hello world")) fp2 := simhash.Simhash(simhash.NewWordFeatureSet("hello world!")) distance := simhash.HammingDistance(fp1, fp2) fmt.Println(distance) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20151007195837-79f94a1100d6latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mfonda-simhash — go get mfonda-simhash · libregistry