Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimilarityManager ¶
type SimilarityManager interface {
SimpleDate(value, ref string) (score float64)
Levenshtein(value, ref string) (score float64)
JaroWinkler(value, ref string) (score float64)
Weight(key string) float64
}
func NewSimilarity ¶
func NewSimilarity(opts ...SimilarityOption) SimilarityManager
type SimilarityOption ¶
type SimilarityOption interface {
// contains filtered or unexported methods
}
func WithSimilarityLevenshteinScoringMap ¶
func WithSimilarityLevenshteinScoringMap(scoreMap map[int]float64) SimilarityOption
func WithSimilaritySimpleDateScoringMap ¶
func WithSimilaritySimpleDateScoringMap(scoreMap map[int]float64) SimilarityOption
func WithSimilarityWeightMap ¶
func WithSimilarityWeightMap(weights map[string]float64) SimilarityOption
Click to show internal directories.
Click to hide internal directories.