-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
How can I take the distance and compute a percentage of similarity? For instance, if given this example
a := []byte("this is a test for results")
aHash := simhash.Simhash(simhash.NewWordFeatureSet(a))
b := []byte("this is a test for cats")
bHash := simhash.Simhash(simhash.NewWordFeatureSet(b))
c := simhash.Compare(aHash, bHash)
fmt.Println(c)
I get an output of 7. But I would like to see that these are 90% similar (or whatever the exact amount is). Thank you.
Metadata
Metadata
Assignees
Labels
No labels