algo

package
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: MIT Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL