package
1.0.18
Repository: https://github.com/dreamsxin/go-utils.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package simhash implements the simhash document similarity hashing function.

# Functions

CommonPrefix returns the common prefix of the specified strings.
NgramCount returns the n-gram count of the specified size for the provided term.
NgramIntersection returns a map of the n-grams of the specified size found in both terms, along with their frequency.
NgramMap returns a map of all n-grams of the specified size for the provided term, along with their frequency.
Ngrams returns all the n-grams of the specified size for the provided term.
Similarity returns the similarity of a and b, computed using the specified string metric.
SliceContains returns true if terms contains q, or false otherwise.
UniqueSlice returns a slice containing the unique items from the specified string slice.

# Interfaces

StringMetric represents a metric for measuring the similarity between strings.