Registry / utility / ekzhu-minhash-lsh

ekzhu-minhash-lsh

JSON →
library0.0.0-20190924033628-faac2c6342f8gogounverified

Implements MinHash and Locality-Sensitive Hashing for approximate nearest neighbor search.

go get github.com/ekzhu/minhash-lsh
INSTALL
IMPORT
SIG · EKZHU-MINHASH-LSH
E
ekzhu-minhash-lsh
utilitygov0.0.0-20190924033628-faac2c6342f8
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.

minhashlsh
github.com/ekzhu/minhash-lsh

Insert a document into the LSH index and query for similar documents.

package main import ( "fmt" "github.com/ekzhu/minhash-lsh" ) func main() { lsh := minhashlsh.NewMinHashLSH(0.5, 128, 1) lsh.Insert("doc1", []string{"a", "b", "c"}) fmt.Println(lsh.Query([]string{"a", "b"})) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20190924033628-faac2c6342f8latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
ekzhu-minhash-lsh — go get ekzhu-minhash-lsh · libregistry